Game Editing > 3D Modeling & Content Creation

[md3] Import error

<< < (3/4) > >>

bookentire:
kat,
i have now set the variable:
"PYTHONPATH"
"C:\PYTHON24;C:\PYTHON24\DLLs;C:\PYTHON24\LIB;C:\PYTHON24\LIB\LIB-TK"
but am getting the same error.

kat:
OK.. had to do a bit of checking on this one. Download the zip file again (use the link you posted above) and follow the instructions and place all the files in Blenders "scripts" folder (except the "readme.txt", that's not needed). Once you do that "File >> Import >> Quake 3 (.md3)" and "File >> Export >> Quake 3 (.md3)" should appear in the main File menu, just select "import" and browse to the file, select and follow the directions.

I tested this on my Kubelwagon MD3 and it imported OK; the mesh is untextured but the material paths *do* import, you just need to reassociate images and relative paths.

bookentire:
kat,
Blender 2.42 does not have this directory structure:
[drive]:\Program Files\Blender Foundation\Blender\.blender\scripts
instead the scripts folder is placed in:
C:\Documents and Settings\Administrator\Application Data\Blender Foundation\Blender\.blender\scripts\

when i placed your new files in this scripts folder and tried to import, Python gives me this:

--- Code: ---Compiled with Python version 2.4.
Checking for installed Python... got it!
INFO Starting ...
INFO Importing MD3 model: C:\Documents and Settings\Administrator\Desktop\Projects\bird001.MD3
INFO Shader path name:  C:/Documents and Settings/Administrator/Desktop/Projects/bird001/
INFO Model name: bird001
Traceback (most recent call last):
File "(string)", line 405, in FileSelectorCallback
File "(string)", line 189, in Import
File "C:\Documents and Settings\Administrator\Application Data\Blender Foundation\Blender\.blender\scripts\md3.py", line 593, in Load
self.surfaces[i].Load(file, log)
File "C:\Documents and Settings\Administrator\Application Data\Blender Foundation\Blender\.blender\scripts\md3.py", line 304, in Load
self.shaders[i].Load(file)
File "C:\Documents and Settings\Administrator\Application Data\Blender Foundation\Blender\.blender\scripts\md3.py", line 201, in Load
self.name = asciiz(data[0])
File "C:\Documents and Settings\Administrator\Application Data\Blender Foundation\Blender\.blender\scripts\q_shared.py", line 29, in asciiz
while(ord(s[n]) !=0):
IndexError: string index out of range

--- End code ---

kat:
Where have you got Blender installed to exactly? Try re-installing (after removal) and of the three option you have for "Specify User data Location" during set up (third or so screen in iirc), choose the second one ("Use Installation Direcory (ie. location chosen to install blender.exe)"). Once that's done try the scripts again (as per above).

bookentire:
kat,
after completing a full uninstall, The Blender 2.42 installer 'Choose Install Location' page will by default create the destination folder: "C:\Program Files (x86)\Blender Foundation\Blender"

on the 'Specify User Data Location' page, the second option: "Use Installation Directory (ie. location chosen to install blender.exe)" by default is selected.

installing this way has set up the scripts folder inside the installed directory, But Python is now giving me this slightly different error message.


--- Code: ---Compiled with Python version 2.4.
Checking for installed Python... got it!
INFO Starting ...
INFO Importing MD3 model: C:\Documents and Settings\Administrator\Desktop\Projects\bird001.MD3
INFO Shader path name:  C:/Documents and Settings/Administrator/Desktop/Projects/bird001/
INFO Model name: bird001
Traceback (most recent call last):
File "(string)", line 405, in FileSelectorCallback
File "(string)", line 189, in Import
File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\md3.py", line 593, in Load
self.surfaces[i].Load(file, log)
File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\md3.py", line 304, in Load
self.shaders[i].Load(file)
File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\md3.py", line 201, in Load
self.name = asciiz(data[0])
File "C:\Program Files (x86)\Blender Foundation\Blender\.blender\scripts\q_shared.py", line 29, in asciiz
while(ord(s[n]) !=0):
IndexError: string index out of range

--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version