-
Notifications
You must be signed in to change notification settings - Fork 8
Script & Tool Patching
Using game's own patching method by creating patch files automatically
- Python 3.7.4
- pack_info.py Credits: 3096
- FETH Archive Manager Credits: Raytwo
- Latest game update installed on switch
Mod Filenames
Your mod files can have any name, but the index number MUST be the first that comes in the file name and not altered, unless doing intentional swaps, testing, etc of similar nature. Existing files in the update romfs do not need an index number but MUST have its filename unedited. You can separate the index number of the file with any character besides a number.
How to Run pack_info.py:
If you have ONLY python 3+ versions installed, double-click pack_info.py to run it. If you have another lower version installed, run command prompt by clicking the directory bar in Windows Explorer and type cmd
and press enter. In the command prompt, type py -3 pack_info.py
and press enter to run it.
-
Create a new folder with any desired name with pack_info.py and run it. Ignore the error log, and three new folders,
original_patches
andromfs\mods
, should be created. -
In the
original_patches
folder, create a new folder namedpatch4
. -
Run FETH Archive Manager and click the
Save
button. Save INFO0.bin inoriginal_patches\patch4
. There should be a INFO0.bin and INFO2.bin inoriginal_patches\patch4
. -
Copy your mods you wish to patch to the game to
romfs\mods
. -
Run pack_info.py. In the
romfs
folder, copy eveything to\atmosphere\contents\010055D009F78000\romfs
on your microSD card.
IMPORTANT: If you deleted a file in your mods folder and run pack_info.py again, that file will not be added to the INFO0.bin and will not show up in the game.
- Create a new folder patch4 in
\atmosphere\contents\010055D009F78000\romfs
of your microSD card. Emulate the filepath of the file(s) you edited in\atmosphere\contents\010055D009F78000\romfs
.
Example: The filepath of fixed_classdata.bin is C:\Users\User\patch4\nx\data\fixed_classdata.bin
of the update romfs. To apply the edits, I would have the filepath of fixed_classdata.bin as E:\atmosphere\contents\010055D009F78000\romfs\patch4\nx\data\fixed_classdata.bin
.
- Copy the INFO0.bin and INFO2.bin found in the same update folder where the edited files came from to
atmosphere\contents\010055D009F78000\romfs\patch4
.
-
Create a new folder with any desired name with pack_info.py and run it. Ignore the error log, and three new folders,
original_patches
andromfs\mods
, should be created. -
In the
original_patches
folder, create a new folder namedpatch4
. -
Copy the INFO0.bin and INFO2.bin found in the same update folder where the edited files came from to
original_patches\patch4
. -
Copy your mods you wish to patch to the game to
romfs\mods
. If you edited a file found in the update romfs, emulate the filepath of that file.
Example: The filepath of fixed_classdata.bin is C:\Users\User\patch4\nx\data\fixed_classdata.bin
of the update romfs, and I edited it. To apply the edits, I would have the filepath of fixed_classdata.bin as C:Users\User\MyMods\romfs\mods\nx\data\fixed_classdata.bin
.
- Run pack_info.py. In the
romfs
folder, copy eveything to\atmosphere\contents\010055D009F78000\romfs
on your microSD card.
IMPORTANT: If you deleted a file in your mods folder and run pack_info.py again, that file will not be added to the INFO0.bin and will not show up in the game.
If there's any issues or suggestions for the wiki, submit an issue here
- Home
- Dump & Extract Game
- Patch Methods
- IPS Patching
- Script & Tool Patching
- Hex Patching
- Index & File Format Info
- Guides
- Miscellaneous
- Dawnbomb's 3H Yuzu Modding guide