Ploaj / Metanoia

A personal tool for game model research and converting
24 stars 9 forks source link

XC Files: Large Anim Count Bug #9

Open supersonic29 opened 4 years ago

supersonic29 commented 4 years ago

Game Name: Professor Layton vs Phoenix Wright Console: 3DS Format extension(s): .xc

When I extract the XC, the series of 71 .mtn2 files (animation files) in it will be correct for 0-11, under 1kb and broken for 12-69, and 70 will have an unusually large filesize and seemingly all the missing animations layered on one another. Observed with any XC files I've opened with more than a few files. Karameru has the same bug by the way, for whatever reason.

Two tested examples with a large number of mtn2 files inside: Example.XCs.zip

caleb-mabry commented 4 years ago

That's definitely a weird one to see for sure. I've taken a look at .xc files and I'm pretty sure they're good to go.

It could be a possible issue with other file types within the .xc. I'll do my best to take a look inside of them and see what I can come up with.

If you can think of any additional files that are either messed up or working those are always appreciated! Makes it easier to see a pattern.

Hopefully this can get resolved soon!

caleb-mabry commented 4 years ago

AnimationInformation.txt Attached is a sample output of all of the .mtn2 files that I've tested. Based on several animations having the correct rotation, scale, and position, I don't believe that it's an issue parsing the .mtn2 file. Some of the smaller files that have 2Kb do have an unknown count associated with them but, due to my inexperience, I can't figure anything out about them.

The entire file is being parsed and it isn't skipping any bytes from what I can see. I know that there is a 4th track that is unaccounted for, but I don't believe that to be where the problem is.

I've noticed that there are typically mtn2 files and mtninf files associated with one another. At the end of the .xc, there are a lot of .mtninf files that seem to reference other animation names. If you have a hex editor you can look at them yourself.

Again, I'm really not experienced in these kinds of things so I don't think we are going to have a nice solution anytime soon. My guess is that the out_00 has several animation(s) within it and the mtninf files are similar to scripting files. But who knows. Just wanted to give you a status update.