nifskope
nifskope copied to clipboard
Cannot read files with bounding volumes of type UnionBV
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.
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.
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.
Thanks for the suggestions. It'd be great if these files could be supported correctly in future releases. 👍