X-Hax / sa_tools

Sonic Adventure Toolset
http://info.sonicretro.org/SA_Tools
112 stars 26 forks source link

SA2 Chaos model crash #22

Open MainMemory opened 6 years ago

MainMemory commented 6 years ago

Splitting and then building the chaos0mdl.prs file will cause the game to crash on a null pointer as soon as the stage loads.

MainMemory commented 6 years ago

So the reason why the game crashes is because Chaos has a texture animation on most of his models, and in order to achieve that, it accesses specific offsets from the poly data of the models. Presumably our tools output the data in such a way that there are more or fewer bytes in the poly data, so the offsets end up pointing to the wrong things and the model is corrupted.