Terrn file description
From Rigs Of Rods
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 values X,Y,Z are the position of the object and RX,RY,RZ the rotation of the object. The object_name is the name of an .odef file, but without its extension. You can add more optional parameters to add labels to the map: the first extra parameter is a qualifier (village, hotel, observatory, etc.) and the second is the place name. If you want to put a truck or load in the map, use the keyword "truck" or "load" in place of the object_name, and put the truck or load name after (with the extension).
- 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 shop Rig-a-Deal end