Jump to content

Blender Nif Collision Export


JimFusion

Recommended Posts

I really wasn't sure if I should have put this in one of the fallout forums, but here it goes. I was recently using the newest commit from github and tried to export a nif file with mopp collision, and it gave me an error. so I tried to look in the code to fix it, and I got a little ways by replacing * with @ at lines 524, 531, and 534 in the (io_scene_nif/modules/nif_export/collision/havok.py). But now I am getting the errors:

 

Traceback (most recent call last):
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\operators\nif_export_op.py", line 159, in execute
return nif_export.NifExport(self, context).execute()
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\nif_export.py", line 172, in execute
root_block = self.objecthelper.export_root_node(self.root_objects, filebase)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\object\__init__.py", line 112, in export_root_node
n_root = self.export_node(b_obj, None)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\object\__init__.py", line 218, in export_node
self.export_children(b_obj, node)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\object\__init__.py", line 233, in export_children
self.export_node(b_child, n_parent)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\object\__init__.py", line 173, in export_node
if self.export_collision(b_obj, n_parent):
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\object\__init__.py", line 254, in export_collision
self.bhk_helper.export_collision_helper(b_obj, node)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\collision\havok.py", line 126, in export_collision_helper
self.export_collision_packed(b_obj, n_col_body, layer, n_havok_mat)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\modules\nif_export\collision\havok.py", line 539, in export_collision_packed
n_col_shape.add_shape(triangles, normals, vertices, layer, havok_mat.material)
File "C:\Users\Jim\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_scene_nif\dependencies\pyffi\formats\nif\__init__.py", line 2997, in add_shape
self.sub_shapes[num_shapes].material.material = material
AttributeError: 'int' object has no attribute 'material'

location: <unknown location>:-1

 

Weird thing is that it imports just fine, but I am not sure if I should have said this here.


Edited by JimFusion
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...