nifskope icon indicating copy to clipboard operation
nifskope copied to clipboard

Cannot read files with bounding volumes of type UnionBV

Open Greatness7 opened this issue 4 years ago • 3 comments

Attached is a file exported from Morrowind that showcases the error. The nif.xml definitions seems to be correct, but files containing this bounding volume type cannot be opened.

NiUnionBV.zip

Image reference of the file's layout via 010 Editor

Greatness7 avatar Jul 17 '20 01:07 Greatness7

asdf

The two reference each other which certain things cannot handle, including NifSkope, so it was commented out.

You can move UnionBV above BoundingVolume, copy BoundingVolume, rename it, put it above UnionBV, and then change the reference to BoundingVolume inside of UnionBV to the new copy you made. Then comment out the UnionBV line from the copy.

This wasn't done in the XML because it's obviously incorrect and a hack. The apps reading nif.xml just need to be able to support cyclical references.

hexabits avatar Jul 17 '20 12:07 hexabits

dsgf

The "fix" would look like this. Note unless you're using my Dev 8, the XML syntax is probably different.

And this is still incorrect as the UnionBV would not be able to contain BoundingVolume with UnionBV.

hexabits avatar Jul 17 '20 13:07 hexabits

Thanks for the suggestions. It'd be great if these files could be supported correctly in future releases. 👍

Greatness7 avatar Jul 18 '20 03:07 Greatness7