BadDogSkyrim / PyNifly

Export/Import tools between Blender and the Nif format, using Bodyslide/Outfit Studio's Nifly layer. Supports Skyrim LE, Skyrim SE, Fallout 4, Fallout New Vegas, Fallout 76, and Fallout 3.
GNU General Public License v3.0
179 stars 16 forks source link

NoneType object has no attribute 'name' error #173

Closed TokyoSU closed 1 year ago

TokyoSU commented 1 year ago

[SkyrimLE,Blender3.6] Tried opening dockstepsdownend01.nif but it ended up as error: error_type EDIT: some files have this error, found 2 in the architecture folder but there is problably more.

BadDogSkyrim commented 1 year ago

Looks like maybe you tried to import a nif with something selected, and it wasn't an armature.

This should work, especially given that this isn't a skinned mesh. For now, just make sure you have nothing selected when you do the import.

TokyoSU commented 1 year ago

Nope tried without anything selected and it still throw an error, also it happen with many files:

farmhouse01walkway.nif
farmhouse02.nif
farmhouse02walkway.nif
farmhouse03.nif
farmhouse03walkway.nif
farmhouse04.nif
farmhouse04walkway.nif
farmhouse05.nif
farmhouse05destroyed01.nif
farmhouse05destroyed02.nif
fencewoven01.nif
fencewoven02.nif
lumbermill01.nif
lumbermill01waterwheel01.nif
lumbermill01waterwheel02.nif
smith01.nif

PS: these don't have any animations so no skeleton.nif/hkx (even tested without 'Import Animations' and 'Create bones' without success)

BadDogSkyrim commented 1 year ago

Yup. Damn.

TokyoSU commented 1 year ago

Checked the previous version (v12.0) and it happen on it too.

BadDogSkyrim commented 1 year ago

It's a block type that's not handled. I'll do better error checking and probly implement the block type.

BadDogSkyrim commented 1 year ago

Fixed in latest.