Game Development Community

Exporting texture paths to the .dts

by Martin "Founder" Hoover · in Artist Corner · 02/14/2002 (4:42 pm) · 6 replies

I have made a model for a T2 mod and am attempting to set up the texture paths to work with it(T2). However every iteration I have tried in the exporters parameters testure path box has not resulted in placing the path into the actuall dts file. (I opened the .dts's in a hex editer, and while the T2 dts's have the paths to the textures, none of mine do)

Have I missed a parameter somewhere that enables the exporter to include the paths in the file?

#1
02/14/2002 (8:34 pm)
I think the path was something like this for tribes 2.

=Params::baseTexturePath \base\textures\

Set that in your dtsScene.cfg to whatever path you need it to work.
#2
02/15/2002 (3:15 pm)
Ahh the main ingredient here that was needed to make it export the path was a leading \ before base. (Also helps if you have the files in the scene in that same directory structure). Thanks for the help, it finally exported the leading skins/ for the png names.

I guess the rule for it would be...

All the textures set up in the max scene that you use must be in the directory structure you want in game, then the path you specify must start with a \ and not include the final dir structure that you want exported.

Seems rather straightforward now that I think about it.

*bangs head on wall* again*
#3
04/20/2002 (4:43 am)
Well I dont seem to be able to set up my skins directory. ( Torque )

data/shapes/weapons/weaponDir is the setup im using for the .dts files, yet all of my guns will be using the same flash animation. Right now I have multiple instances of the same file in all my weapons directories. This is using up space.

Is it based off the .exe path or the .dts path?
Tribes2 seems to be off the .exe path so Im going with that, but if I set mine to /base/data/shapes/ I still dont get a texture untill I put the skins back in the root dir of the .dts file.

heres what my .cfg says for that line.

=Params::baseTexturePath base\data\shapes\
#4
04/20/2002 (5:41 am)
for torque, JUST COMMENT OUT THAT LINE(damcaps lock) and do like they said above put your max sceene and png in the same directory where te dts will reside and then open them and export them to dts, and you shouldnt have a problem
#5
04/20/2002 (12:31 pm)
I dont think you understand, I want a seperate directory for my skins and my .dts files. That way Im not using the same .png's in multiple directories.
#6
04/21/2002 (2:23 pm)
Well heres something I figured out, don't know if it will work for you or not, but seems to for me.

Appearently a tad bit of T2 code is still inside the exporter. In order to get the proper paths exported into the dts I had to make a directory structure as follows:

Tribes2\build\base\textures

My guess is that the exporter is prepending the Tribes2\build in front of the path.

In the textures directory (in the path above) is where I keep all the textures that I use in the max scenes. Its wierd, but at least it exports paths properly for me.