OpenArena Message Boards

OpenArena Contributions => Models => Topic started by: Alpha Red on July 21, 2008, 07:30:14 PM



Title: fromhell, I need your help for md3 scripts
Post by: Alpha Red on July 21, 2008, 07:30:14 PM
Hi,
I saw fromhell's post on polycount forums (http://boards.polycount.net/showthread.php?t=53865) that said that you had used the MD3 import/export scripts from the link (https://tremx.svn.sourceforge.net/svnroot/tremx/trunk/blender/) you gave for Open Arena. You also said that they worked with everything about MD3. I needed an import script that imported aniamtions of MD3's but couldn't find one until I found yours. I got all the scripts and placed them in Blender scripts folder and then tested them out by importing a MD3 that had animations in it. I was surprised to find that it had errored and that I had to check the python console to figure out what was wrong. As I'm not a pro nor a novice at python, I was wondering if you can tell me if they work for you for animations and maybe help me "debug" my problem. Oh for your info, I'm using Blender 2.46 and python 2.5.

Alpha Red


Title: Re: fromhell, I need your help for md3 scripts
Post by: fromhell on July 21, 2008, 11:34:25 PM
I'm using Blender 2.46
this is your problem. 2.46 broke alot of scripts including the ones it ships with! Use 2.45.


Title: Re: fromhell, I need your help for md3 scripts
Post by: kit89 on July 22, 2008, 05:52:24 AM
Quote
this is your problem. 2.46 broke alot of scripts including the ones it ships with! Use 2.45.

Strange the import script works fine for me, under 2.46 using kubuntu. Could this possibly be a Windows issue with the scripts?


Title: Re: fromhell, I need your help for md3 scripts
Post by: Alpha Red on July 22, 2008, 08:36:27 AM
Quote
this is your problem. 2.46 broke alot of scripts including the ones it ships with! Use 2.45.
Ok this helped. I changed to 2.45 and then tried the same model and it didn't seem to work, same error which was...
Code:
Compiled with Python version 2.5.
Checking for installed Python... got it!
info      :Starting ...
info      :Importing MD3 model: C:\Documents and Settings\****\Desktop\v_ppsh_a
nim.md3
info      :Shader path name: C:\Documents and Settings\****\Desktop\
info      :Model name: v_ppsh_anim
info      :Header Information
info      :Ident: IDP3
info      :Version: 15
info      :Name:
info      :Flags: 0
info      :Number of Frames: 123
info      :Number of Tags: 8
info      :Number of Surfaces: 0
info      :Number of Skins: 0
info      :Offset Frames: 108
info      :Offset Tags: 6996
info      :Offset Surfaces: 117204
info      :Offset end: 117204
info      :
scene.link(ob) deprecated!
        use scene.objects.link(ob) instead
Traceback (most recent call last):
  File "<string>", line 257, in FileSelectorCallback
  File "<string>", line 218, in Import
UnboundLocalError: local variable 'surface' referenced before assignment
I was confused, so I decided to try a different model and it seemed to work perfectly. So I have no idea what's the problem with this model.

Alpha Red


Title: Re: fromhell, I need your help for md3 scripts
Post by: qubodup on July 28, 2008, 01:37:48 AM
You can always post the model and ask others to try and screw around a bit with it ;)


Title: Re: fromhell, I need your help for md3 scripts
Post by: jkoder on August 08, 2008, 03:40:14 PM
I'm using Blender 2.46
this is your problem. 2.46 broke alot of scripts including the ones it ships with! Use 2.45.

I have 2.46 exporting okay on Windows XP. I didn't try importing with animation yet though.

Great scripts BTW to whoever created them, thanks a lot!


Title: Re: fromhell, I need your help for md3 scripts
Post by: epicgoo on August 12, 2008, 07:02:22 PM
can you try this? It should fix it. thanks for pointing it out
(go to line 218 of md3import.py, change surface to md3
or rename the attached txt to py)