Metanoia
Metanoia copied to clipboard
Major L5 updates
Hi I tried to improve Metanoia for some L5 files, the code isn't perfect but I think it's a good start:
- remove the restriction from RES to view iego, yokai 3D model
- support XRES from iego
- add mtn3 support for motion
- add mtninf support
- use huffman decompression from kuriimu2 instead of metanoia huffman decompression
- use rle decompression from kuriimu2 instead of metanoia rle decompression
- can import animations from xpck (.xc)
- fix rgb8 decoder
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.