Terrain textures AWOL
by James Bond · in Torque Game Engine · 08/30/2004 (7:08 am) · 8 replies
I have made starter.racing my default game. Then I started to play around with it. Then I renamed it CKR (the name of my project) then made CKR the default game. I went to test it and all the terrain is now white. I scanned the terrain folder and the textures are their (example/CKR/data/terrains)but they dont show in the actual game since the folder name change?
I am thinking that I need to alter the path from example/starter.racing/data/terrains to example/CKR/data/terrains? however I am not sure which file it is that I need to amend. Also will this need to be re-compiled?
Thanks in advance,
-James B.
I am thinking that I need to alter the path from example/starter.racing/data/terrains to example/CKR/data/terrains? however I am not sure which file it is that I need to amend. Also will this need to be re-compiled?
Thanks in advance,
-James B.
About the author
#3
It doesn't really work to edit the .ter file directly as it's a binary file - the solution Phil stated is the one that's the one that works.
To avoid this in the future, you'll want to create/save/edit missions from within the dir you plan to use.
08/30/2004 (8:32 am)
We ran into this problem and found that the when you initially create a mission in a dir,it appends that dir name before the name of each texture in the .ter file. Eg, starter.racing/texturename.It doesn't really work to edit the .ter file directly as it's a binary file - the solution Phil stated is the one that's the one that works.
To avoid this in the future, you'll want to create/save/edit missions from within the dir you plan to use.
#4
-James B.
08/30/2004 (9:03 am)
It worked a treat, as I reloaded the textures in the terrain painter they all re appered. Thank you Phil.-James B.
#5
09/29/2004 (10:22 am)
The behavior described above, i.e. full path names in the Terrain (.ter) file, makes .ter files quite unportable. Does anyone know of, or have, an engine tweek that changes what is stored in the .ter file, so it will work when installed in a directory with a different path?
#6
The only difference being in that you can't change the mod directories (incase of the TGE demo) or any of the other directories contained within 'example'.
09/29/2004 (10:30 am)
It WILL work in a path that's not the same as the one you're shipping it from.The only difference being in that you can't change the mod directories (incase of the TGE demo) or any of the other directories contained within 'example'.
#7
09/29/2004 (10:54 am)
That one change I do miss from the original editor. It never had that problem. Someday I may readd the original code back to my codebase.
#8
09/29/2004 (12:52 pm)
If what you're saying is that if the main app is a different folder name, but the module name/module directory name is the same, things should work. I guess that means that this won't be much of a problem. Thanks for the info.
Torque 3D Owner Phil Carlisle
That should do it.