h3x4n1um / RETON

Reverse Engineering RTON File
GNU General Public License v3.0
32 stars 3 forks source link

Some files cannot be unpacked correctly #15

Closed bontchev closed 3 years ago

bontchev commented 3 years ago

When trying to unpack this file, the program rton2json produces the following error:

Error reading chunk type 0x0 at 0x2f6!!!
h3x4n1um commented 3 years ago

I take a look into your file, I think maybe it's typo in 0x2f5 that it should be 0x81

If 0x83 then follows it (0x2f6) must be 0x2 or 0x3

So it can't be 0x83 (except this is an edge case that I haven't seen before)

But after 0x2f5, 0x2f6 is an 0x0 (probably size of some thing) so I assume it likely a typos of 0x81

bontchev commented 3 years ago

I'm not sure I understand what you are saying but this file is from the game; it is created by it. If it was the game that put the wrong value there, it wouldn't be able to use this file.

nineteendo commented 3 years ago

This is another subtype from 0x83: 0x0 which probably translates to RTID(): save_LevelModuleInstances.zip I have converted the file using my python equivalent of your tool so you can see how this would look like: https://github.com/Nineteendo/PVZ2tools/tree/master/RTONS_PARSER, I'm not sure if this might be useful for you.