STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
403
游戏中
2,106
在线
成立于
2013 年 11 月 8 日
所有讨论 > Help > 主题详情
GoblinCrusher 2018 年 10 月 7 日 上午 7:27
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 }
引用自 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.
< >
正在显示第 1 - 3 条,共 3 条留言
该讨论串的作者已表示此帖子解答了原先的主题。
Momo 2018 年 10 月 7 日 上午 10:09 
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 2018 年 10 月 7 日 下午 1:42 
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 2018 年 10 月 8 日 上午 3:28 
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.
最后由 Momo 编辑于; 2018 年 10 月 8 日 上午 3:29
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50

所有讨论 > Help > 主题详情
发帖日期: 2018 年 10 月 7 日 上午 7:27
回复数: 3