PDA

View Full Version : Error with importing .smd file?


CKandee
24th Feb 2011, 3:00 AM
Hello! I've just started to try using blender for bodyshop meshing and was using Bobcatben's tutorial on it. When I get to importing the .smd file however, I always get the error message 'Python script error: check console', so I do! and then the console says:

Traceback (most recent call last):
File "C:\Users\(my user)\Documents\New Folder\.blender\scripts\import_smd.py", line 164, in import_smd
mesh.verts[-1:][0].no[0] = v[3]
IndexError: list index out of range

I've been searching for how to fix the 'IndexError: list index out of range' but i haven't found a clear answer yet (or maybe I have but since I barely know anything about what I'm doing I can't understand it).

Someone please explain how to solve this or at least explain what the problem is, in simple terms :| .

Also, the Documents\New Folder is where I installed blender and it turns out I can import the skeleton alone, but not the mesh with it or just the mesh.

Ove51
28th Feb 2011, 9:39 AM
Hello! I've got that error before and I think that was due to specific mesh (as there was made by one creator). I think that's probably the result of the way the creator made his/her mesh. What mesh do you use? Did you try with other meshes?

CKandee
3rd Mar 2011, 4:12 AM
I can't exactly remember what meshes I've used because I've tried many. I've tried custom meshes and meshes that came with the game but each still have the same problem :/

Ove51
3rd Mar 2011, 1:32 PM
Which version of Blender do you use?
Did you try to redownload the python script and reinstall it?

CKandee
4th Mar 2011, 2:11 AM
i use blender 2.49 with Python 2.6.4

haha in the beginning I had many problems when it came to finding out which python I was compatible with. although on the console when i start it up it says it compiles with Python 2.6.1, when I tried that, it for some reason didn't work :| . So I stuck with 2.6.4.
I have tried redownloading and reinstalling python, but no luck.

I've ALSO tried installing a different version of blender and python and trying that out, but it still has the same problem.

Ove51
4th Mar 2011, 8:57 AM
although on the console when i start it up it says it compiles with Python 2.6.1, when I tried that, it for some reason didn't work :| . So I stuck with 2.6.4.

I fear the problem comes from that. I think it needs to be reinstalled properly. Unfortunately, as I use it on linux OS, I can't help you on that part.

Screaming Mustard
7th Mar 2011, 11:58 AM
First of all I assume Blender 2.49 is the same as Blender 2.49b. I use Python 2.6.1 with Blender 2.49b (plus I’ve run it with both Vista and Windows 7 if it's any consolation).

I get the OUT OF RANGE message ALL THE TIME for .obj files with Blender. I solved it by simply importing the finished .obj into Milkshape and then exporting it back out again without changing it at all. I have NO IDEA why this worked, but it turned out Blender and Python were somehow screwing up my meshes.
I've had the message a couple of times with .smd files, but it was usually because of my own stuuuuuupid mistakes.

If possible could you send me the .smd mesh you are trying to import? I might be able to take a look and play around with it, determine if it’s Blender that’s somehow screwing up your mesh or if it’s something else.

CKandee
16th Mar 2011, 1:11 AM
I'm not sure what you mean by sending you the .smd file because i'm still pretty new to the mts, and just sims in general database. Do you mean like attach it to a pm and send it to you? :L

Screaming Mustard
16th Mar 2011, 5:29 AM
You could email it to me, or just upload it somewhere online and send me a link. My email is fatal.but.not.serious (at) gmail.com if you want to email it.