Kingdom Come Deliverance Nswitch MOD

Gueorgui

New Member
Newbie
Joined
May 19, 2022
Messages
3
Trophies
0
Age
30
Location
Hetzner
XP
76
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,284
Trophies
3
XP
12,055
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
76
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,335
Trophies
1
Age
34
Location
Doomed Island
XP
2,108
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,335
Trophies
1
Age
34
Location
Doomed Island
XP
2,108
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,284
Trophies
3
XP
12,055
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
  • BigOnYa @ BigOnYa:
    Is it a free to play bs, pay to get any good weapon/gear
  • K3Nv2 @ K3Nv2:
    Not free to play but $35
  • K3Nv2 @ K3Nv2:
    Inb4 kiiwii gives it a 0/10
  • BigOnYa @ BigOnYa:
    6/10 rating on steam
  • Psionic Roshambo @ Psionic Roshambo:
    I would like a Predator game "Kill Team" it takes place in the Jungle of the first movie, your team is sent to hunt the predator, using current tech drones and a trained team. Set traps use strategy to hunt and trap or kill the predator.
  • BigOnYa @ BigOnYa:
    Ill stick with my Battlefield. Yea a predator hunting game like that would be cool. Esp if you can be Arnold and say "Get to da choppa"
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe Arnold could do a cameo voice acting, he is the one briefing you on the mission
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly surprised they didn't make a tie in game for Predators that movie was awesome
  • Psionic Roshambo @ Psionic Roshambo:
    I was kinda sad the Yakuza guy died sword fighting a predator lol
  • Psionic Roshambo @ Psionic Roshambo:
    The Russian guy went out like a boss
  • Psionic Roshambo @ Psionic Roshambo:
    Double claymores to the face definitely kill a predator lol
  • BigOnYa @ BigOnYa:
    I went today and looked at a motorcycle someone was selling. I get there and the battery on it was dead, so the guy grabbed a battery charger and hooked it up. He plugged it into the wall, and the motorcycle sparked and started smoking. Come to find out the bike uses a 6 volt battery and the guy had the charger set to 12v. I said sorry to the dude and walked away. I felt bad for him tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds like it would be an exciting ride....
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure I would want something on fire between my legs
  • BigOnYa @ BigOnYa:
    He ruined it basically. Sad cause it was a decent old bike. It would take more money to rewire the bike than it was worth tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I'm sure at minimum the starter was fried
  • Psionic Roshambo @ Psionic Roshambo:
    Alternator and battery
  • BigOnYa @ BigOnYa:
    Prob alot of fried parts. It was still smoking when I left.
  • K3Nv2 @ K3Nv2:
    I would've said show me how it rides
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted one of those Smart Cars with a Hyabusa motor in it.
  • K3Nv2 @ K3Nv2:
    I'm getting sick and tired of cheap ass baking pans now
  • BigOnYa @ BigOnYa:
    I think it be cool to have one that would fit in my pickup truck bed, then I could put down ramps n drive it off.
    BigOnYa @ BigOnYa: I think it be cool to have one that would fit in my pickup truck bed, then I could put down...