Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major L5 updates #23

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Major L5 updates #23

wants to merge 6 commits into from

Conversation

Tiniifan
Copy link

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

- target end of line to windows format
- 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 mtn3 loader
- can view splitted animation name from mtn2
- can export multiple animation
Metanoia had a problem retrieving frames and could not read a model with more than 255 frames
@in1tiate
Copy link

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

2023-11-12.18-00-47.mp4

@Tiniifan
Copy link
Author

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.

- Use Kuriimu LZ10 for better decompression
- Fix compression header type
- Fix problem with some XI (large texture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants