hexabits / nifskope

Other
245 stars 54 forks source link

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

Open jacksw32 opened 11 months ago

jacksw32 commented 11 months ago

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 commented 11 months ago

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

jacksw32 commented 11 months ago

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

Alright is there a fix for it?

hexabits commented 11 months ago

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 commented 10 months ago

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 :)