Kingdom Come Deliverance Nswitch MOD

Gueorgui

New Member
Newbie
Joined
May 19, 2022
Messages
3
Trophies
0
Age
30
Location
Hetzner
XP
78
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,338
Trophies
3
XP
12,181
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
78
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: 17
  • IMG_20240408_220214_080.png
    IMG_20240408_220214_080.png
    20.3 KB · Views: 19

guily6669

GbaTemp is my Drug
Member
Joined
Jun 3, 2013
Messages
2,361
Trophies
1
Age
34
Location
Doomed Island
XP
2,170
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: 15
  • Switch updated config.rar
    507 bytes · Views: 18
Last edited by guily6669,
  • Like
Reactions: WiduraGoez

Gominam1

Member
Newcomer
Joined
Jan 23, 2022
Messages
8
Trophies
0
Age
24
XP
62
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
8
Trophies
0
Age
24
XP
62
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
29
XP
23
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
29
XP
23
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
8
Trophies
0
Age
24
XP
62
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,361
Trophies
1
Age
34
Location
Doomed Island
XP
2,170
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,338
Trophies
3
XP
12,181
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.
  • Xdqwerty @ Xdqwerty:
    @AncientBoi, gonna block you for real if you keep being like that
  • AncientBoi @ AncientBoi:
    Well.... Go ahead my "friend". If it makes you happy :mellow:
  • BigOnYa @ BigOnYa:
    Really, blocking him will only hurt you, we will see his messages, but you wont
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, ok i'm not blocking him
  • BigOnYa @ BigOnYa:
    You just got to have thick skin and ignore people online if you don't agree or dislike. The internet is full of clowns.
    +2
  • AncientBoi @ AncientBoi:
    and an 👴 just having fun.
    +1
  • Xdqwerty @ Xdqwerty:
    Brb
  • Xdqwerty @ Xdqwerty:
    Going to the beach
  • AncientBoi @ AncientBoi:
    Cool :D Wait :unsure::unsure::unsure: Did you say Bleach? :O
  • Xdqwerty @ Xdqwerty:
    @AncientBoi, without the l
    +1
  • AncientBoi @ AncientBoi:
    Enjoy
  • SylverReZ @ SylverReZ:
    Enjoy wacking yourself off, old man?
    +1
  • AncientBoi @ AncientBoi:
    Always :D
  • K3Nv2 @ K3Nv2:
    Man bought a $20 a gauge at Amazon that was all fancy digital went to hook it up did t detect shit, then went back and bought an analog worked right away
    +1
  • ZeroT21 @ ZeroT21:
    @K3Nv2 Happens all the time when ordering these iffy things
  • ZeroT21 @ ZeroT21:
    watching xbox direct but the feed keeps getting dc'd, oh well
  • ZeroT21 @ ZeroT21:
    back to MH rise
  • K3Nv2 @ K3Nv2:
    It's AC Pro which is reputable but more a reason why I don't trust digital in cars
    K3Nv2 @ K3Nv2: It's AC Pro which is reputable but more a reason why I don't trust digital in cars