Open Tiniifan opened 11 months ago
Fixes broken animation loading from Professor Layton VS. Phoenix Wright: Ace Attorney
https://github.com/Ploaj/Metanoia/assets/32779090/8a7bc245-1792-4c2f-b9de-6e1340d493c6
According to this issue
The problem was due to an error in reading the number of frames for a bone. Metanoia can't read an animation with more than 255 frames, because the frame number is set to 2 bytes (the hight byte starts at 0x20 instead of 0x00) and metanoia reads 1 byte.
Hi I tried to improve Metanoia for some L5 files, the code isn't perfect but I think it's a good start: