Closed Allofich closed 1 year ago
As you mentioned in the other issue, this error doesn't happen when using the nif.xml
in https://github.com/Candoran2/nifxml/tree/mickeychanges, as the .nif is assigned the game "Oblivion" instead of "UNKNOWN". I didn't ever see the .nif being detected as "Oblivion KF" by the import plugin, so I don't understand why the above commit for the "Oblivion KF" type is supposed to fix this issue. If it's correct that a "Oblivion KF" file can use collision layers, then all is well I guess, but if that change was supposed to fix the TypeError: bpy_struct: item.attr = val: enum "1" not found in ()
error for this .nif, I don't see the connection on my end.
I'm assuming the https://github.com/Candoran2/nifxml/tree/mickeychanges nif.xml
is the best one to use for testing, since it seems to be the most up-to-date now, so I'll use it from now on. By the way, I consider this issue to be closed because of the changes in that nif.xml
file, but I'll wait a while before closing in case you have a comment.
It's essentially a safeguard just in case a (Oblivion) kf file uses collision layers, yeah.
OK, just letting you know that the "Fix for niftools#547" commit wasn't actually a fix for this issue (for me at least), as it was fixed by the new nif.xml and wasn't detected as "Oblivion KF" for me, anyway. Maybe you were thinking of the ladder .nif in https://github.com/niftools/blender_niftools_addon/issues/546? That one was detected as "Oblivion KF".
Edit: Or the 7 was just a typo, maybe you meant to type "Fix for niftools#546?" That would explain it.
Well, the ladder .nif wrong detection in #546 is also fixed by the new nif.xml, not the safeguard... Whatever, if it's a good change, that's fine, I just wanted to let you know I couldn't confirm it as fixing any of the issues I created. So if it was a change you otherwise wouldn't have wanted to make, but you made it to fix an issue I created, I think you can remove it. But if it's good to have regardless, than never mind.
Issue Overview
An error appears during import of an original Oblivion .NIF file.
Version Information
Blender Niftools Addon Version Info
Built the addon using the following: Python 3.11 New Pyffi: https://github.com/Candoran2/new-pyffi/commit/c8508fe316aa2e978e7677308f06f1b6a2ff48e4 New nif xml: https://github.com/niftools/nifxml/commit/89d03ffe69254ef4b3b58b0a22ec2ff9820b2e63 Latest blender addon code at: https://github.com/Candoran2/blender_nif_plugin/commit/f3898fe667b214367569c5be761bbcf49b527eea (code up for PR in https://github.com/niftools/blender_niftools_addon/pull/541)
Blender Version Info
3.4
Platform information
Windows 11 22H2
Steps to Reproduce
[Ordered list of the steps required for recreating the issue, including settings]
meshes/architecture/anvil/anvilaltar01.nif
from the Oblivion DVD installation into Blender. This file can be obtained by extracting it fromdata/Oblivion - Meshes.bsa
with a BSA extracting program.Expected Result
No errors when importing a valid .NIF file.
Actual Result
Error happens.
Console Output
This warning only appears when importing the anvilaltar01.nif from the DVD installation. It does not happen with the version of this file found in the GOG/Steam versions.
Nif File
See https://github.com/niftools/blender_niftools_addon/issues/546.