Development > Artwork

A (Finally!) proper low-poly head without the headache

<< < (8/17) > >>

Mattn:
you have seen the export script that hoehrer commited to our svn? it somewhere in src/tools

geever:

--- Quote from: Mattn on September 03, 2009, 10:50:20 pm ---you have seen the export script that hoehrer commited to our svn? it somewhere in src/tools

--- End quote ---

ah, there? I was looking for it recently. I thought it must be in contrib/scripts but it wasn't..

-geever

Destructavator:

--- Quote from: Mattn on September 03, 2009, 10:50:20 pm ---you have seen the export script that hoehrer commited to our svn? it somewhere in src/tools

--- End quote ---

Yes, and that one doesn't work either, at least with the latest version of Blender.

Edit:  ..Unless I'm improperly testing the models - I tried to test them in-game by editing "team_humans.ufo" under "ufos" under "base."  Was this the wrong way to test it?

Destructavator:
Ah-Ha!  I'm on to something!   ;D

In the SVN there are two customized python scripts for exporting to MD2 from Blender - the one I was using was meant for old versions, the one meant for newer releases of Blender crapped out with an error message every time so I never used it.

I actually looked at the error message carefully, and thought to myself "Well, I don't know python, but what the hell, I'll look at the line of code it is complaining about..."

Surprise, surprise - It turns out one of the authors of the customized export plugin has a non-American foreign name that contains a non-ASCII character, an "e" with one of those marks above it.  This non-standard character in the authors name (listed in the info part of the file) was confusing the compiler and causing the plug-in to bomb out with an error and never start.

The old code (before I changed it):


--- Code: ---__version__ = '0.1'
__author__  = [ 'Damien Thébault', 'Erwan Mathieu' ]
__url__     = [ 'https://metabolsim.no-ip.org/trac/metabolsim' ]
__email__   = [ 'Damien Thébault <damien!thebault#laposte!net>', 'Erwan Mathieu <cyberwan#laposte!net>' ]
--- End code ---

Notice the funky "e" is on two lines (Damien's last name), and Blender was complaining about both of them.  I changed it (no offense to the author) to this:


--- Code: ---__version__ = '0.1'
__author__  = [ 'Damien Thebault', 'Erwan Mathieu' ]
__url__     = [ 'https://metabolsim.no-ip.org/trac/metabolsim' ]
__email__   = [ 'Damien Thebault <damien!thebault#laposte!net>', 'Erwan Mathieu <cyberwan#laposte!net>' ]
--- End code ---

...And now the plugin loads properly and runs!

It also gives me more export options - Now to see if it will make the MD2 display properly in the game...

P.S. - I'd suggest someone with SVN access update the python script with this fix so the plug-in runs without crashing.

Migel:

--- Quote ---What software tool did you use and how did you do it?
--- End quote ---
I'm useing Milkshape, and I can recompile this models. It will be much easier then fixin export script.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version