Is There a way to edit the .ter file
by Kenneth L. Gibbs · in Torque Game Engine · 08/15/2006 (9:13 am) · 3 replies
I need a way to edit the .ter file because it auto selects the paths to find the textures, and so far i have had no luck finding where i can alter the directory locations
#2
08/15/2006 (9:34 am)
Thanks that is exactly what i was looking for
#3
That's the easiest way to change the path of the textures in your game.
08/16/2006 (11:13 am)
You do know that you can change the paths of textures by going into the texture painter (f11 then click on texture painter) and then click the button to change?That's the easiest way to change the path of the textures in your game.
Torque Owner Wex
If you have a Hex Editor (like HxD):
Byte 0: version
Bytes 1-20000: Height map
Bytes 20001-30000: Dunno, setting them all to 0 seems to be fine.
Then we start with the texture data, each chunk of texture data appears to be 10000 bytes long preceeded by paths to the texture to use (each path is one byte for string length followed by the string). The 10000 bytes per path is one byte per point (100x100 points) and is an alpha-value from 0 to FF. FF being solid.
At the end of the file is a string of values, I think they're for the terrian editor to use. Might also set 'emptySquares' here.
^Reminder: all numbers are hex.
That's pretty much all I know right now, but it should be enough to change the path of the textures. :)