-
Notifications
You must be signed in to change notification settings - Fork 27
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
Unable to walk NIF, string too long #36
Comments
Here is the NIF to test, is licensed under CC0 so we can do with as we please. |
I put a print statement on the read function
3023733371 is a rather large string, larger than the filesize I believe. So either there is a problem with the NIF, or there is structure reading problem. |
To test:
|
Usually you get the error when there is a structural problem in the nif.xml. |
Older nifskope loaded the NIF (and I can manipulate it) but gave a warning, the latest 2.x refuses to load the NIF at all and gives the warning I showed above. |
NIFskope 1.1.3:
but I can at least manipulate the NIF. 2.0.0-dev just refuses to load and give the warning message above. |
So I used NIFSlope 1.1.3 to save the contents of RedMoonGa01.NIF to a file and it is 49.1KiB while the oriignal file is 303.4KiB I'm wondering if the original file had textures embedded in it, this would account for the filesizes differences if NIFSkope and suppoting libs do not support inernal/embedded textures. |
I would ask @jonwd7 for input. The latest nif.xml that is used by NifSkope has changed the way it defines binary data. Even still if its complaining in the 1.1.3, I presuming the corresponding version also doesn't support this, just that NifSkope previously didn't block on this failure. I think we probably need to move this to being a nifxml issue? |
I have no idea really... so you're saying that nif.xml defines how pyffi (and friends) work? |
Pyffi reads a format description, in this case an xml file, generates a runtime model, providing supporting functionality to read/write/manipulation/helper functionality for the in-memory instance of the populated model. |
@niftools/pyffi-reviewer
Issue Overview
There are at least 4 files that can't be walked due to a string being too long. I'm not sure if this is a problem the NIF or with pyffi. The only thing in common is that they were created by the Bethesda plugin in 3DSMax.
Version Information
Pyffi Version Info
2.2.2
Platform information
Ubuntu (16.10) Linux
Context
I was running nifwalk over all NIFs I planned on releasing to make sure I had all the resources.
Steps to Reproduce
from pyffi.formats.nif import NifFormat
NifFormat.walkData(nif_path)
raise ValueError
Expected Result
an NIF object that I can iterate over
Actual Result
Error message.
The text was updated successfully, but these errors were encountered: