Game Development Community

Problems Exporting .DTS

by Bejong K Yang · in Artist Corner · 10/30/2005 (8:57 am) · 33 replies

I am having trouble exporting to .dts with blender, I have renamed the exporter file to DTSPython. and when I export nothing happens, it doesn't let me save where I want to export the file to.
Page «Previous 1 2
#1
10/30/2005 (9:58 am)
Was it working before you renamed it?
#2
10/30/2005 (11:10 am)
No, before i renamed it, it sayed I had a consle error, and I read the readme and said I had to rename so i did.
#3
10/30/2005 (8:07 pm)
It says you have a console error. Ok, what's the console error say?
#4
11/01/2005 (5:28 pm)
Why did you renamed it DTSPython? DTSPython is the python script module that needs to be inside ou blender installation so it can be called to export your model.

I think there should be a subfolder named DTSPython in your scripts folder.

If Blender can't find DTSpython, it means it was unpacked to the correct spot within the Blender folders. Not that you need to rename anything.
#5
11/01/2005 (5:30 pm)
I renamed the folder DTSPython, but when i try to export an object I can't save it where i want to save it to.
#6
11/03/2005 (12:45 pm)
I am also haveing issues exporting under Mac OS X 10.3.9 with blender 2.37a. The exporter seems to run and generate a log file that says:

Torque Exporter 0.87
Using blender, version 237
**************************
Loaded Preferences.
Processing Scene...
Cleaning Preference Keys
Exporting...
Finished.

No DTS is created. I did a full system search just to make sure it wsn't putting it some where else. I run blender from a terminal window and no errors echo out. It seems odd to me. Has anyone else had this problem?

Thank you
#7
11/03/2005 (2:47 pm)
Are you sure you have the nodes parented properly?
#8
11/03/2005 (4:23 pm)
Nodes not parented properly! DOH! Works now. It exported my mesh but show tool pro is not finding my texture (same dir & name.png).

oh yes, thank you very much!

p.s.

remember that textures must be powers of 2 size (eg. 256x256, 512x512)
#9
11/03/2005 (4:56 pm)
How do I make nodes?
#10
11/03/2005 (5:31 pm)
@Keith: If I recall properly, the texture isn't really the name of the mesh plus "png". It's actually the name of the material plus "png". So, if you look at the Shading panel, Materials tab, the "MA" value is what TGE is looking for. So, you can actually have multiple textures per mesh - it all just depends on the material names.

@Bejong: Nodes in TGE are translated as "Empties" in Blender. You'll need several before your mesh will export and work properly in TGE.

If anyone would like an example of nodes, materials, animations, etc, feel free to take a look at my Claude character. He's a work in progress, but I think he'd be a great starting-point. You can use him with no restrictions.
#11
11/03/2005 (6:49 pm)
So for ading nodes, Would I join it with the mesh?
#12
11/03/2005 (7:07 pm)
The nodes "empties" don't have to be joined to a mesh. Set them up seperatly in object mode. You need them to set up collision meshes, detail level, etc.

Here is a good page to show how some of the basics are done.
http://lowpolycoop.com/forum/viewtopic.php?t=8
#13
11/04/2005 (2:54 pm)
I still can't export the object, I added nodes to it but it says console error
Console Error: No Module named DTSPython
I renamed the exporter folder to DTSPython but it still doesn't recognize the folder.
#14
11/04/2005 (8:28 pm)
Ok, First is getting the scripts. Version .87 is the current scripts. You can find it here with a simple per platform setup instructions :

http://tdn.garagegames.com/wiki/DTS/Blender/Downloading_and_Installing_the_Exporter

Basicly you will expand the zip to your .blender/scripts folder. You will have 3 scripts plus one directory put in the .blender/scripts folder. You should not have to rename the DTSPython folder. Blender should automaticaly find the scripts when it launches. If it does not you reload via the user prefences pane->FilePaths->reevaluate scripts button next to the python script path.

The 3 scripts must be in the .blender/scripts dir. The DTSPython dir must also be in .blender/scripts.

I am using Mac OS X 10.3.9 & 10.4.3 on two different machines. I had to set the Python Path (global path) for 10.4 not in 10.3

I hope this helps
#15
11/04/2005 (9:18 pm)
Im still kinda confused, I copied the script into the script folder and left the DTSPython folder alone, but it won't export still has same console error.
#16
11/05/2005 (1:39 am)
How about this... Can you please email either myself or Keith (if that's Ok with you, Keith; don't mean to speak for you) a ZIP, TGZ, or some other form of copying and compressing your .blender/scripts folder? It shouldn't be too hard... Mine compresses down to 395k.

How can you do this? Open the terminal, type "tar zcf scripts.tgz .blender/scripts", and send the "scripts.tgz" along as an attachment.

Perhaps we can make some sense of this...
#17
11/05/2005 (6:16 am)
(sorry for the long post, but I want to clear up any confusion in case someone else finds this thread when seeking help)

Ok, I just received your scripts and took a look at them. I know what's wrong.

Inside the ~/.blender/scripts folder, there should be:
Dts_Python.py (the main Python script for the exporter)
Blender_Gui.py (supporting GUI functions)
DTSPython/ (folder where everything else lives)

Inside the DTSPython/ folder is where you should find all the other stuff:
Decimate_VTK.py
Dts_Decimate.py
Dts_Mesh.py
Dts_Shape.py
Dts_Stream.py
Dts_Stripper.py
Dts_Test.py
Dts_TranslucentSort.py
Nv_TriStrip.py
Nv_TriStripObjects.py
Nv_VertexCache.py
Stripper_VTK.py
Torque_Util.py
__init__.py

You currently have Dts_Python.py and Blender_Gui.py inside ~/.blender/scripts, then inside DTSPython/ you have a full extract of the exporter. Which means the other supporting DTS scripts are not located in ~/.blender/scripts/DTSPython, but rather in ~/.blender/scripts/DTSPython/DTSPython.

Try doing this...

Remove the Blender_Gui.py, Dts_Python.py, and DTSPython/ entries from ~/.blender/scripts. Then, inside of ~/.blender/scripts, extract the contents of the exporter. Yes, you'll have some extra files laying around that won't get used, but you'll be sure the extract is complete. You can clean the other stuff up later.

Here's a "find. -type f | grep -v pyc" from my ~/.blender/scripts, if this helps out...

./ac3d_export.py
./ac3d_import.py
./Apply_def.py
./armature_symetry.py
./Axiscopy.py
./batch_name_edit.py
./bevel_center.py
./blender2cal3d.py
./Blender_Gui.py
./blenderRun.sh
./bpydata/config/readme.txt
./bpydata/KUlang.txt
./bpydata/readme.txt
./bpymodules/ai2obj.py
./bpymodules/BPyBlender.py
./bpymodules/BPyMathutils.py
./bpymodules/BPyNMesh.py
./bpymodules/BPyRegistry.py
./bpymodules/defaultdoodads.py
./bpymodules/eps2obj.py
./bpymodules/gimp2obj.py
./bpymodules/meshtools.py
./bpymodules/svg2obj.py
./bvh2arm.py
./bvh_export.py
./bvh_import.py
./camera_changer.py
./clean_mesh.py
./config.py
./console.py
./Convert_Sticky.py
./DirectX8Exporter.py
./DirectXExporter.py
./discombobulator.py
./disp_paint.py
./doc_browser.py
./Dts_Blender.py
./DTSPython/__init__.py
./DTSPython/Decimate_VTK.py
./DTSPython/Dts_Decimate.py
./DTSPython/Dts_Mesh.py
./DTSPython/Dts_Shape.py
./DTSPython/Dts_Stream.py
./DTSPython/Dts_Stripper.py
./DTSPython/Dts_Test.py
./DTSPython/Dts_TranslucentSort.py
./DTSPython/Nv_TriStrip.py
./DTSPython/Nv_TriStripObjects.py
./DTSPython/Nv_VertexCache.py
./DTSPython/Stripper_VTK.py
./DTSPython/Torque_Util.py
./envelope_assignment.py
./envelope_symmetry.py
./example.blend
./fixfromarmature.py
./help_browser.py
./help_getting_started.py
./help_manual.py
./help_py_reference.py
./help_release_notes.py
./help_tutorials.py
./help_web_blender.py
./help_web_devcomm.py
./help_web_eshop.py
./help_web_usercomm.py
./hotkeys.py
./kloputils.py
./knife.py
./LICENSE
./lightwave_export.py
./lightwave_import.py
./Map_Blender.py
./Map_TxtConfig.py
./nendo_export.py
./nendo_import.py
./obdatacopier.py
./obj_export.py
./obj_import.py
./off_export.py
./off_import.py
./paths_import.py
./radiosity_export.py
./radiosity_import.py
./raw_export.py
./raw_import.py
./Readme.html
./renameobjectbyblock.py
./rvk1_torvk2.py
./save_theme.py
./sel_same.py
./skin.py
./slp_import.py
./sysinfo.py
./tex2uvbaker.py
./truespace_export.py
./truespace_import.py
./unweld.py
./util/blenderRun.bat
./util/getPath.py
./uv_export.py
./UVpaint05.py
./videoscape_export.py
./vrml97_export.py
./wings_export.py
./wings_import.py
./wrl2export.py
./x3d_export.py
#18
11/12/2005 (9:52 am)
Ok I am still having problems,@Scott I did what you said, but I looked over my files and I dont have a DTS_Python.py script. Does anyone have a copy of this script? I have a folder named DTS_python thats it.
#19
11/12/2005 (4:05 pm)
You're right. That's it. There isn't a DTS_Python.py script.

I'm soooo sorry. I typed the wrong thing. The main script is Dts_Blender.py.

What problem are you having now?
#20
11/12/2005 (5:38 pm)
I do not know, I have done everything I can think of, do you thnik you can send me a copy of your script folder? my e-mail is pooperlooperscooper@yahoo.com
Page «Previous 1 2