Author Topic: Strange blender dts exporter problem [SOLVED]  (Read 1051 times)

Ok, so i have made 3 models which one of them has 1 color and the other 2 have more than 1 color.

The one with 1 color will export just fine without any errors.

But the problem comes when I add another material (color), that makes the exporter say "pyhton script error; check console"

I have tested taking out all but 1 color and it works. I am using blender 2.48, python 2.5, and the dts exporter 096beta3

Here is what the console says:

Quote
Compiled with Python version 2.5.2.
Checking for installed Python... got it!
Loaded Preferences from text buffer.
Dumping output to file 'C:\Users\model1.log'
Exporting...
Traceback (most recent call last):
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
Common_Gui.py", line 1491, in button_event
    c.onAction(evt, curMousePos, -1)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
Common_Gui.py", line 598, in onAction
    control.onAction(evt, newpos, value)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
Common_Gui.py", line 160, in onAction
    if self.callback: self.callback(self)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
DTSGUI\DtsGUI.py", line 309, in guiBaseCallback
    export()
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
Dts_Blender.py", line 369, in export
    doExport(cur_progress)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
Dts_Blender.py", line 106, in doExport
    Shape.addAllDetailLevels(SceneInfo.DTSObjects, sortedObjectNIs)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
DtsShape_Blender.py", line 357, in addAllDetailLevels
    self.addDetailLevels(dtsObjects, sortedObjects, visDetailLevels)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
DtsShape_Blender.py", line 452, in addDetailLevels
    polyCount += self.addMesh(o, masterObject)
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
DtsShape_Blender.py", line 292, in addMesh
    tmsh = BlenderMesh( self, o.name, mesh_data, -1, 1.0, mat, o.size, hasArmatu
reDeform, armTargets, False, (self.preferences['PrimType'] == "TriLists" or self
.preferences['PrimType'] == "TriStrips") )
  File "C:\Users\<spadee>\AppData\Roaming\Blender Foundation\Blender\.blender\scripts\
DtsMesh_Blender.py", line 155, in __init__
    pr.matindex |= matIndex
TypeError: unsupported operand type(s) for |=: 'int' and 'NoneType'

I have searched for it but it seemed to yield nothing.

That problem is fixed now, I didn't know how to texture properly or something...


« Last Edit: May 02, 2011, 02:35:14 PM by Space Man »

You should probably try Blender 2.49 with Python 2.6 and the 0.97Beta dts exporter and see if the problem still persists.
Get the exporter from here:
http://www.jsgreenawalt.com/

It didn't work. :(

Quote
Compiled with Python version 2.5.2.
'import site' failed; use -v for traceback
Checking for installed Python... No installed Python found.
Only built-in modules are available.  Some scripts may not run.
Continuing happily.

Could this be a problem?

I downloaded and installed blender 2.49 and python 2.6 and the exporter.

I did delete the old python 2.5.2 though, is that a problem?

EDIT: I made a default cube with 2 colors and that exported fine, so its a problem with my model?
It's exported to .obj from wings 3d and then imported to blender.
« Last Edit: May 01, 2011, 08:31:56 AM by Space Man »

Ah, I looked at my models .log file and found this:

Quote
Torque Exporter 0.97 Beta3
 Using blender, version 249
 Exporting...
 Writing shape to  'C:\Users\model2.dts'.
 Processing...
     Warning: Texture Image (Green) is used on a mesh but could not be found in the material list!

What does it mean?

(other than Texture Image (Green) is used on a mesh but could not be found in the material list!)

oops double post.
« Last Edit: May 01, 2011, 01:26:42 PM by Space Man »

Ah, I looked at my models .log file and found this:

What does it mean?

(other than Texture Image (Green) is used on a mesh but could not be found in the material list!)

oops double post.
Try adding materials to your mesh?

Try adding materials to your mesh?

uh,

I have the materials on the mesh and the material list.

Anyways, is there something I'm doing wrong with this? I'm not really experienced with blender (or any modelling program).

Is texturing a different thing than adding materials to the mesh?

if so how would i do it right then?