Metanoia icon indicating copy to clipboard operation
Metanoia copied to clipboard

Major L5 updates

Open Tiniifan opened this issue 1 year ago • 2 comments

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

Tiniifan avatar Oct 31 '23 00:10 Tiniifan

Fixes broken animation loading from Professor Layton VS. Phoenix Wright: Ace Attorney

https://github.com/Ploaj/Metanoia/assets/32779090/8a7bc245-1792-4c2f-b9de-6e1340d493c6

in1tiate avatar Nov 13 '23 00:11 in1tiate

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.

Tiniifan avatar Nov 13 '23 12:11 Tiniifan