STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
234
IN-GAME
1,605
ONLINE
Founded
November 8, 2013
All Discussions > Help > Topic Details
Traceback error when exporting DMX
Hello, I'm getting this error when trying to export a model from Blender using Source Tools. I've seen some discussions around this subject, but it's been about importing, OR the thread has ended with "oh nvm i figured it out"...

Anyone know what's up?

Blender Source Tools: exporting Draenei_Male - Baking... - D:\Users\Alfred\Desktop\LetsTryBlender\DMX\Draenei_Male.dmx - Loading flex controllers from text block "flex_Draenei_Male" WARNING: 8434 excess weight links beneath scene threshold of 0.23 culled on "Draenei_Male". Array iterator out of range: (index 18074) Traceback (most recent call last): File "C:\Users\alfre\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\export_smd.py", line 208, in execute self.exportId(context, id) File "C:\Users\alfre\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\export_smd.py", line 548, in exportId self.files_exported += write_func(id, bake_results, self.sanitiseFilename(export_name), path) File "C:\Users\alfre\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons\io_scene_valvesource\export_smd.py", line 1710, in writeDMX shape_vert = shape.vertices[ob_vert.index] IndexError: bpy_prop_collection[index]: index 18074 out of range, size 18074 location: <unknown location>:-1 location: <unknown location>:-1

The Source Tools setup is identical to a previous model I exported (just changed relevant paths and names ofc) which worked just fine.

Here's the Blend session (NSFW WARNING, male nudity)
https://www.dropbox.com/s/rf72ffm6asc8uv1/Draedaddy.blend?dl=0

Also QC, 'cause why not:

$CD "D:\Users\Alfred\Desktop\LetsTryBlender\DMX\" $modelname "avalonsfm\draedaddy\draedaddy.mdl" $model "body" "Draenei_Male.dmx" $model "hair" "Draenei_Male_Hair.dmx" $mostlyopaque $cdmaterials "models\avalonsfm\draedaddy\" $sequence "idle" "Draenei_Male.dmx" { fps 1 }
Originally posted by Momo:
This is a long shot but it might have something to do with your mirror modifier and the shape keys- since the addon tries to apply all modifiers before exporting, and the mirror modifier can't be used on a mesh with shape keys.
< >
Showing 1-3 of 3 comments
The author of this thread has indicated that this post answers the original topic.
Momo Oct 7, 2018 @ 10:09am 
This is a long shot but it might have something to do with your mirror modifier and the shape keys- since the addon tries to apply all modifiers before exporting, and the mirror modifier can't be used on a mesh with shape keys.
GoblinCrusher Oct 7, 2018 @ 1:42pm 
That actually turned out to be exactly the issue. Everything worked out fine after I applied the modifiers. Had to redo the flexes I'd make but oh well :)
Momo Oct 8, 2018 @ 3:28am 
Great! Glad I could help.

Feel free to mark the post as a solution so others can find it more easily if they run into the same issue as you.
Last edited by Momo; Oct 8, 2018 @ 3:29am
< >
Showing 1-3 of 3 comments
Per page: 1530 50

All Discussions > Help > Topic Details
Date Posted: Oct 7, 2018 @ 7:27am
Posts: 3