-------------------
RSTB = Resource Size Table file.
This was reposted with yakuzadeso's permission, as he no longer has time to update it and provide fixes for it
Installation for TOTKRSTB_Scripts_AIO.bat
- Download this fork of the tool TotkRSTB
- Download the script from the files tab here
- Drop TOTKRSTB's files and TOTKRSTB_Scripts_AIO.bat into a folder, you can name that TotkRSTB or anything you want
- Drop the ResourceSizeTable files you want to edit or merge
Explanation of ResourceSizeTable files
Many mods come with some files called ResourceSizeTable.Product.112.rsizetable.zs, ResourceSizeTable.Product.111.rsizetable.zs etc. (112 for game version 1.1.2, 111 for game version 1.1.1).
These files are located in NameOfMod/romfs/System/Resource/.
These modified files contain data that the game needs in order to launch with the mods. Sometimes it launches but crashes on the first loading screen.
If you have two different mods with the same ResourceSizeTable files they are going to overwrite each other which results in crashes.
So what you need to do is to either merge or patch these files and use only one of them that contains the necessary data for every mod.
Overview of TOTKRSTB_Scripts_AIO.bat
After installing it you can run it by double clicking it.
Contains 5 different scripts. You can start each procedure by typing its number and pressing ENTER:
1. Merging two different RSTB files. You need to put two different RSTB files in the folder. Rename them so that they do not replace each other. The procedure should be pretty self explanetory. Follow it and you'll end up with a merged RSTB file named "Merged_name.rsizetable.zs". Remove "Merged_" from the file's name, delete the other RSTB files and you're good to go. You can't merge rstb files from different game versions.
2. Batch patching with yaml. Put your RSTB files in the folder. Go through procedure 4 (Convert rsizetable.zs to yaml) to get your yaml files. Go through procedure 2 to patch a selected RSTB file with every yaml file in the folder.
3. Same as procedure 2 but lets you select the yaml file to use for patching instead of using every yaml file in the folder.
4. Converts every rsizetable.zs file in the folder to yaml.
5. Converts every yaml file in the folder to rsizetable.zs.
Notes
Patching will patch RSTB files with yaml files even from other versions of the game. This might make mod compatible with a different game version than the one that the mod was made for but don't expect it to work like this for every mod. A lot of files have changed since 1.0.0.
Credits
Credits to Moonling for their tool TotkRSTB - Simple CMD RSTB editor since this wouldn't be possible without it.
Credits to Yakuzadeso who wrote the code of the original scripts