Thank you so much for your help.. I hope in the future there is a way to convert the additional pak to works with nintendo switchNowhere. 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
Post automatically merged:
If I may ask....is all the unpack ui File That have been unpack put in the switch or just the Mod Replace one..so all the files that not been replace can be delete..just the one that MOD replace ..Then pack..and put in the Nswitch..or all the files that been unpack including the Mod Replace OneNowhere. 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
Post automatically merged:
Post automatically merged:
How do use Pack_PAK.py or what command to pack the filesSwitch game has precompiled XMLs that they call "CryXml" in comparison to PC that has them in readable format.
Post automatically merged:
https://pypi.org/project/scdatatools/
It can convert them to readable format, but not back to CryXML. HappyXML doesn't work.
For now I'm writing Python scripts that can pack to zip files compressed with Oodle. I want to replicate ui.pak 1:1 if possible.
Post automatically merged:
It seems like QuickBMS script doesn't extract all files. This is why game was crashing with repacked ui.pak
So game supports normally zip files packed with Windows builtin zip compressor.
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
For exampleCode:python Unpack_PAK.py [pak_file] [folder_out]
Code:python Unpack_PAK.py ui.pak ui
I have added there also Pack_PAK.py if somebody would like to use Oodle for compression.
Post automatically merged:
Replaced xml files in ui.pak with files from UnlimitedSavingNS mod without converting it to CryXml format.
And they work fine
So only issue comes from the fact that game doesn't load additional pak files.
Post automatically merged:
I Have been following your instructions...and pack the file with 7zp..rename it too ui.pak....install it in nswitch..but when I open the game...its error showing..."The software was closed........"
Last edited by WiduraGoez,