Terrn file description

From Rigs Of Rods

(Difference between revisions)

Revision as of 13:08, 2 September 2006

The .terrn file is a text file containing the following informations, in this precise order:

  • Name of the terrain: it must be the first line of the file!
  • Name of the .cfg file associated to the terrain (must be the second)
  • (optional)If you want water in the terrain, put the character 'w' followed by the water height relative to the lowest point of your terrain. For example:
w 10.2
  • Sky color: red, green, blue components (between 0 and 1)
  • Spawning positions: a set of two or three X,Y,Z coordinates. The first coordinate is the truck spawn position (when buying a new truck), the second is the initial camera spawn position, the third (optional) is the initial character spawn position.
  • A set of lines, each line positionning an object or a truck on the terrain. At this stage, you can put comments by starting the line with "//". The content of the line is: X, Y, Z, RX, RY, RZ, object_name
  • The keyword "end"

Examples: A terrn file in its simplest form:

Angle
angle.cfg
0.93, 0.86, 0.76
509,6,680,  509,6,680
end

A more complex terrn file, with water and a few objects:

North St Helens
nhelens.cfg
w 33
0.93, 0.86, 0.76
1169.0,35,948.75,  1220,36,980, 1165.5, 35, 942
//a truck
1190, 35, 930, 0, 0, 0, truck	wrecker.truck
//a load
1130, 35, 910, 0, 0, 0, load	acontainer.load
//an object
1180, 34.15, 950, 0, 20, 0, truckshop
end
Personal tools