r/Kenshi•
NewzyOne

Modding animation using Blender, getting error on export - please halp?

QUESTION

Hi everyone!

I decided to take the plunge and change the ninjarun animation to be .. less handwavium. Have never used animation tools before, but the support for Blender looked pretty tight and I've succeeded at least in getting the animation I want - started with the ninjarun animation from the base game and saved as new and played around.

​

So now comes the upsetting part. Whenever I export to mesh with both Export Skeleton and Export Animation ticked, I get the following error:

​

Traceback (most recent call last):

​

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_mesh_Kenshi\__init__.py", line 337, in execute

result = OgreExport.save(self, context, **keywords)

​

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_mesh_Kenshi\OgreExport.py", line 1064, in save

xSaveSkeletonData(blenderMeshData, filepath)

​

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_mesh_Kenshi\OgreExport.py", line 593, in xSaveSkeletonData

xSaveAnimations(blenderMeshData, xRoot, xDoc)

​

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_mesh_Kenshi\OgreExport.py", line 330, in xSaveAnimations

xSaveAnimation(animation, xDoc, animations)

​

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\io_mesh_Kenshi\OgreExport.py", line 382, in xSaveAnimation

scale.setAttribute('x', '%6f' % -loc[0])

UnboundLocalError: local variable 'loc' referenced before assignment

​

location: <unknown location>:-1

​

Do any more experienced Blender/modders have any idea what I can do to resolve this? Eternal gratitude will absolutely be given.

TIA!

Posted Mar 12, 2019, 3:08 PM UTC

12
-Bleckplump-•

You will probably have more luck on the blender sub forum. But cool that you are getting in to modding and especially animation and 3D.

2
NewzyOneOP•

Oooo! There's a blender forum? Legend - thanks for the lead!

1