Kingdom Come Deliverance Nswitch MOD

Gueorgui

New Member
Newbie
Joined
May 19, 2022
Messages
3
Trophies
0
Age
30
Location
Hetzner
XP
75
Country
Germany
Then use 7-zip/Windows zip packer as I have stated before.



That's possible since I couldn't figure out exact original compression settings.
Thanks for the reply!

Tried it and got the same error.

Zip; all compression levels: fast, normal, ultra. Deflate and Deflate.64 types. None of the options were successful.

Too bad, because tables.pak gives the biggest scope for modding the game.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,283
Trophies
3
XP
12,052
Country
Poland
Thanks for the reply!

Tried it and got the same error.

Zip; all compression levels: fast, normal, ultra. Deflate and Deflate.64 types. None of the options were successful.

Too bad, because tables.pak gives the biggest scope for modding the game.
Open both original switch pak and new pak with 7-zip, show me what you see first when you open those files, then go to Info menu and show me how many files each pak has.
 

Gueorgui

New Member
Newbie
Joined
May 19, 2022
Messages
3
Trophies
0
Age
30
Location
Hetzner
XP
75
Country
Germany
Open both original switch pak and new pak with 7-zip, show me what you see first when you open those files, then go to Info menu and show me how many files each pak has.

Done. Info differs only in packed size and physical size respectively. Besides, unmodified file has characteristic : "Unsorted_CD" in file properties
Post automatically merged:

Open both original switch pak and new pak with 7-zip

For clarity, I have not made any edits to the original switch file. I only unpacked and packed it with your scripts. A clean environment for testing!
 

Attachments

  • IMG_20240408_220213_982.png
    IMG_20240408_220213_982.png
    21.3 KB · Views: 10
  • IMG_20240408_220214_080.png
    IMG_20240408_220214_080.png
    20.3 KB · Views: 12

guily6669

GbaTemp is my Drug
Member
Joined
Jun 3, 2013
Messages
2,333
Trophies
1
Age
34
Location
Doomed Island
XP
2,105
Country
United States
This is a MUST HAVE MOD (BOW RETICLE):

(click the image to see well the middle reticle). It's stupid that the game has a reticle but as soon as you equip bow it's gone...

I have added below 2 versions of it, one is direct from PC it only has 1 single line in the user.cfg and added a 2nd one with the user.cfg I took from the game update but I don't know if the data inside will be the same as for you, anyway both work fine and the data inside the switch user.cfg seems kinda irrelevant for me.

This is what's inside the game latest update user.cfg:
Code:
r_ShadersAllowCompilation = 0
r_ShadersRemoteCompiler = 0
r_ShaderCompilerDontCache = 0
r_ShaderCompilerServer = 192.168.13.5
r_ShaderCompilerPort = 61456
r_ShadersAsyncCompiling = 0
r_ShadersUserFolder = 0
r_ShadersDebug = 0
wh_pl_showfirecursor=1 (My added line to have the bow reticle)

And this is what the PC user.cfg has:
Code:
wh_pl_showfirecursor=1
(just the code to have the reticle and nothing more).

ps: I have no clue which version should be used and which would be better, but both work...
 

Attachments

  • PC version config.rar
    369 bytes · Views: 8
  • Switch updated config.rar
    507 bytes · Views: 7
Last edited by guily6669,
  • Like
Reactions: WiduraGoez

Gominam1

Member
Newcomer
Joined
Jan 23, 2022
Messages
7
Trophies
0
Age
23
XP
45
Country
United States
1. Unpack ui.pak with my scripts
2. Unpack pak file from mod with 7-zip
3. Copy unpacked files from mod's pak and paste them to unpacked ui.pak files, replacing original ones
4. Pack all unpacked ui.pak files and folders to new ZIP, rename just generated archive back to ui.pak
5. Put new ui.pak to atmosphere/contents/0100650018FE0000/romfs/data
6. Launch game
[/QUOTE]
Sir where I get ui.pak
 

Gominam1

Member
Newcomer
Joined
Jan 23, 2022
Messages
7
Trophies
0
Age
23
XP
45
Country
United States
You may need to use nxdumptool to extraxt the romfs data...I use nxdumptool
Thanks bro, i get the ui.pak now try to mod
Post automatically merged:

This is not a place where game files are stored, it's where mods are stored.
Sorry, its my firtstime try to mod game.
Post automatically merged:

[/QUOTE]
1. Unpack ui.pak with my scripts
2. Unpack pak file from mod with 7-zip
3. Copy unpacked files from mod's pak and paste them to unpacked ui.pak files, replacing original ones
4. Pack all unpacked ui.pak files and folders to new ZIP, rename just generated archive back to ui.pak
5. Put new ui.pak to atmosphere/contents/0100650018FE0000/romfs/data
6. Launch game
[/QUOTE]
Thanks for your guide, i can use mod for my KCD
 
Last edited by Gominam1,
  • Like
Reactions: WiduraGoez

Megoag

Member
Newcomer
Joined
Mar 18, 2024
Messages
7
Trophies
0
Age
28
XP
13
Country
Philippines
This is a MUST HAVE MOD (BOW RETICLE):

(click the image to see well the middle reticle). It's stupid that the game has a reticle but as soon as you equip bow it's gone...

I have added below 2 versions of it, one is direct from PC it only has 1 single line in the user.cfg and added a 2nd one with the user.cfg I took from the game update but I don't know if the data inside will be the same as for you, anyway both work fine and the data inside the switch user.cfg seems kinda irrelevant for me.

This is what's inside the game latest update user.cfg:
Code:
r_ShadersAllowCompilation = 0
r_ShadersRemoteCompiler = 0
r_ShaderCompilerDontCache = 0
r_ShaderCompilerServer = 192.168.13.5
r_ShaderCompilerPort = 61456
r_ShadersAsyncCompiling = 0
r_ShadersUserFolder = 0
r_ShadersDebug = 0
wh_pl_showfirecursor=1 (My added line to have the bow reticle)

And this is what the PC user.cfg has:
Code:
wh_pl_showfirecursor=1
(just the code to have the reticle and nothing more).

ps: I have no clue which version should be used and which would be better, but both work...
where did you put the mod file?
 

Megoag

Member
Newcomer
Joined
Mar 18, 2024
Messages
7
Trophies
0
Age
28
XP
13
Country
Philippines
atmosphere/contents/0100650018FE0000/romfs
one thing when i put the mod ui.pak (unlimited save) in atmosphere/contents/0100650018FE0000/romfs/data and launch the game it chrash( the software was closed because an error occured. but the bow dot reticle works

edit: nevermind, i just figure it out
 
Last edited by Megoag,

Gominam1

Member
Newcomer
Joined
Jan 23, 2022
Messages
7
Trophies
0
Age
23
XP
45
Country
United States
one thing when i put the mod ui.pak (unlimited save) in atmosphere/contents/0100650018FE0000/romfs/data and launch the game it chrash( the software was closed because an error occured. but the bow dot reticle works

edit: nevermind, i just figure it out
Check your ui.pak mod, you must pack all files correctly. Use original ui.pak to compare with
 

guily6669

GbaTemp is my Drug
Member
Joined
Jun 3, 2013
Messages
2,333
Trophies
1
Age
34
Location
Doomed Island
XP
2,105
Country
United States
one thing when i put the mod ui.pak (unlimited save) in atmosphere/contents/0100650018FE0000/romfs/data and launch the game it chrash( the software was closed because an error occured. but the bow dot reticle works

edit: nevermind, i just figure it out
LOL, the mod I posted is already fully ready with the right folders, don't need to do anything at all...

My self I'm using the PC config one and 0 issues so far with it...
 

HoTuan

New Member
Newbie
Joined
Apr 11, 2022
Messages
3
Trophies
0
Age
30
Location
ha noi
XP
28
Country
Vietnam
Nowhere. As I said, any additional PAK is not detected. And I cannot debug this for next weeks because for some reason GDBstub refuses working with my phone hotspot.


1. Unpack ui.pak with my scripts
2. Unpack pak file from mod with 7-zip
3. Copy unpacked files from mod's pak and paste them to unpacked ui.pak files, replacing original ones
4. Pack all unpacked ui.pak files and folders to new ZIP, rename just generated archive back to ui.pak
5. Put new ui.pak to atmosphere/contents/0100650018FE0000/romfs/data
6. Launch game
"1. Unpack ui.pak with my scripts "
i don't know how ?, You can help me step by step
thank.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,283
Trophies
3
XP
12,052
Country
Poland
"1. Unpack ui.pak with my scripts "
i don't know how ?, You can help me step by step
thank.
You can find my script that perfectly fine unpacks whole PAK here:
https://github.com/masagrator/NXGameScripts/tree/main/KingdomComeDeliverance

Tested with Python 3.10
You must download "Unpack_PAK.py", "zipfileKC.py" and "Oodle.exe".
in cmd you must use
Code:
python Unpack_PAK.py [pak_file] [folder_out]
For example
Code:
python Unpack_PAK.py ui.pak ui
 

HoTuan

New Member
Newbie
Joined
Apr 11, 2022
Messages
3
Trophies
0
Age
30
Location
ha noi
XP
28
Country
Vietnam
Then use 7-zip/Windows zip packer as I have stated before.



That's possible since I couldn't figure out exact original compression settings.
1713530757800.png

C:\Users\Dell>python G:\mot\ui\Unpack_PAK.py G:\mot\ui\ui.pak G:\mot\ui\UI
Traceback (most recent call last):
File "G:\mot\ui\Unpack_PAK.py", line 6, in <module>
zf = zipfileKC.ZipFile(sys.argv[1], "r", print_names = True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\mot\ui\zipfileKC.py", line 1325, in __init__
self._RealGetContents()
File "G:\mot\ui\zipfileKC.py", line 1392, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfileKC.BadZipFile: File is not a zip file

I got error like this
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Even my mum slept on that uremum