• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Error importing MDL into Blender 2.93-3.4

I'm not sure where else to post this but is anyone else getting the following error when trying to use Fingolfin's Blender plugin to import an .MDL file?

Traceback (most recent call last):
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\operators\WAR3_OT_import_mdl.py", line 44, in execute
import_mdl.load(self, context, settings, filepath=filepath)
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 709, in load
parser.parse(model)
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 697, in parse
self.parse_token(token, values)
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 680, in parse_token
self.parse_particle_emitter_2(data[0].rsplit(' ', 1)[0].strip('" '))
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 336, in parse_particle_emitter_2
if self.parse_node(emitter, token, values):
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 197, in parse_node
node.visibility = self.parse_animation(token, frame_count)
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 147, in parse_animation
value = parse_vector(values[0], True)
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 22, in parse_vector
return tuple(map(lambda x: int(x) if as_int else float(x), values))
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\export_mdl\import_mdl.py", line 22, in <lambda>
return tuple(map(lambda x: int(x) if as_int else float(x), values))
ValueError: invalid literal for int() with base 10: '0.000000'
 
Adding material to the mesh parts fixed it for me. You can read here how to add one: Exporting models from Blender using the MDL exporter plugin
Thanks for trying to help but this is an importing issue. Fingolfin did apply a fix recently but now I'm getting this error when installing:

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\modules\addon_utils.py", line 515, in enable
mod.register()
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\export_mdl_init_.py", line 54, in register
register_class(cls)
ValueError: validating class:: 'UNDO' not found in ('SEARCH_ON_KEY_PRESS')
Error: validating class:: 'UNDO' not found in ('SEARCH_ON_KEY_PRESS')
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\addons_core\bl_pkg\bl_extension_ops.py", line 1502, in execute
cmd_batch = self.exec_command_iter(is_modal)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\addons_core\bl_pkg\bl_extension_ops.py", line 2593, in exec_command_iter
self.exec_legacy(source_filepath)
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\addons_core\bl_pkg\bl_extension_ops.py", line 2726, in exec_legacy
bpy.types.PREFERENCES_OT_addon_install.execute(self, bpy.context)
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\startup\bl_operators\userpref.py", line 830, in execute
bpy.ops.preferences.addon_enable(module=mod.name)
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\modules\bpy\ops.py", line 109, in call
ret = _op_call(self.idname_py(), kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: validating class:: 'UNDO' not found in ('SEARCH_ON_KEY_PRESS')

Then when I tried to activate the plug-in, I got this second error:

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\modules\addon_utils.py", line 515, in enable
mod.register()
File "C:\Users\Derek Hendrickson\AppData\Roaming\Blender Foundation\Blender\4.5\scripts\addons\export_mdl_init_.py", line 54, in register
register_class(cls)
ValueError: register_class(...): already registered as a subclass 'War3BillboardProperties'

The installation process seems very picky to me. A video tutorial on here or Youtube would be appreciated.
 
Back
Top