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

Unable to open .NIF file (failed to load block number) #64

Open
jacksw32 opened this issue Oct 4, 2023 · 4 comments
Open

Unable to open .NIF file (failed to load block number) #64

jacksw32 opened this issue Oct 4, 2023 · 4 comments

Comments

@jacksw32
Copy link

jacksw32 commented Oct 4, 2023

I cannot open this file for some reason, it gives me the error: failed to load block number 16 (NiDataStream) previous block was NiMaterialProperty, I am currently using Nifskopes latest version and for debugging purposes I attached the file here too.
Moskvoretsky_bridge.zip

@hexabits
Copy link
Owner

hexabits commented Oct 6, 2023

There may have been a regression in nifxml, I'll take a look.

@jacksw32
Copy link
Author

There may have been a regression in nifxml, I'll take a look.

Alright is there a fix for it?

@hexabits
Copy link
Owner

No, not yet. The latest nifxml had some changes to the specification that I didn't know about and it affects NiDataStream reading. I will have to find a way to compensate for it.

You can however revert that part of nif.xml if you want. Change:

<field name="Data" type="DataStreamData" arg1="Num Bytes" arg2="Component Formats" />

to

<field name="Data" type="byte" binary="true" length="Num Bytes" />

Should be around Line 7200.

@jacksw32
Copy link
Author

No, not yet. The latest nifxml had some changes to the specification that I didn't know about and it affects NiDataStream reading. I will have to find a way to compensate for it.

You can however revert that part of nif.xml if you want. Change:

<field name="Data" type="DataStreamData" arg1="Num Bytes" arg2="Component Formats" />

to

<field name="Data" type="byte" binary="true" length="Num Bytes" />

Should be around Line 7200.

Alright thank you. I will try it and see if it works :)

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

No branches or pull requests

2 participants