-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error when trying to convert fmp12 file #3
Comments
Oddly, when testing with the released version 0.1.0, I get a different error:
|
Try the |
Here's a log that shows the output from fmpdump failing at block 7733. Here are some dumps I tried to create but I'm not sure if I made them correctly --
https://gist.github.com/amoe/52309f952eccc6762ab4b9ed5ea659fc |
@amoe One last thing that would help is uncommenting these lines: Lines 262 to 267 in 4acc820
Then recompile and re-run |
@evanmiller Created with |
Notes for myself: The problematic line is in block 7734:
0x11 is a data_simple of length three. The next code is 0x00. This is being interpreted as a data_simple of length 1 (consuming the 0x10 byte), but probably should be treated as a no-op instead. This would allow the 0x10 code to consume the next three bytes and reach the 0x40 "pop" code. |
@amoe please see if the code in this branch fixes the issue for you: |
Thanks @evanmiller. |
@amoe Good to hear - I'll need a hex dump of that last block (94189) to make any further progress. It also looks like some of the path integers are being incorrectly interpreted, but we can deal with that once the basic file conversion is working. |
Here's a dump of 94189: block94189.txt |
@amoe Got it. Try pulling the latest code from the |
@evanmiller Great stuff! |
Excellent! I'm going to merge in the changes and close this issue. If you encounter any data errors or problems with other files, please open a new issue. |
Hi,
Thanks for these tools!
Working with git master at commit 4acc820. When trying to convert a
.fmp12
file to JSON, I get the following error:What would this mean? I think the file is valid. I can't provide the file itself but I can provide a hex dump of regions of the file if you need it.
Cheers!
The text was updated successfully, but these errors were encountered: