KillzXGaming / Switch-Toolbox

A tool to edit many video game file formats
GNU General Public License v3.0
968 stars 154 forks source link

Sbfres files export differently depending on what else have been loaded. #284

Open lukinuu opened 4 years ago

lukinuu commented 4 years ago

When exporting a file with modified Texture Pattern Animation files, I got different results depending on what else have been loaded in Toolbox during the session (being the associated .tex1.sbfres file).

I made the experiment with 3 situations :

I haven't tested with unrelated files like other .sbfres models or unrelated .tex1.sbfres files. The stuff above was done in Zelda BoTW.

KillzXGaming commented 4 years ago

I'd imagine this is related to the tex2 files (those are generated aslong as a tex1 is present and saved). This could be related to missing TexInfo.bin (not sure of it's purpose) or the file size changing (bfres generation isn't always perfect) so the rstb causes it to crash.