GPL Track Creating - trk23dow - TSO

From Grand Prix Legends Wiki
Revision as of 05:33, 6 May 2009 by David Fletcher (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Authored by the GPLEA


<trackname>.TSO - Track Side Objects

The .TSO file is used to position Track Side Objects. These are all the buildings, flaggers, trees, etc. that you see around the tracks.


Here is an example TSO file:

'# Trackside 'Sets': 51

Set List

[ 0]: 3, 170.0, -7.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign100 braking board for corner1

[ 1]: 3, 120.0, -7.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign050 braking board for corner1

[ 2]: 3, 90.0, -10.0, 1.0, 0.0, 0.0, 0.0, 1.0, signshe shell advertisment

[ 3]: 3, 383.0, -7.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign050

[ 4]: 3, 343.0, -8.0, 0.0, 0.0, 0.0, 0.0, 1.0, signshe

[ 5]: 3, 243.0, -7.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign200

[ 6]: 3, 1420.0, -6.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign100

[ 7]: 3, 1320.0, -6.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign200

[ 8]: 3, 1878.0, -6.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign100

[ 9]: 3, 1928.0, -6.0, 0.0, 0.0, 0.0, 0.0, 1.0, sign050

[ 10]: 3, 10.0, -5.0, 0.0, 0.0, 0.0, 0.0, 1.0, starter green flag man

[ 11]: 3, 1839.4089, 0.0, -0.1016, 180.0, 0.0, 0.0, 1.0, mbridge maxim bridge

[ 12]: 3, 2235.0, -14.5, 0.0, 270.0, 0.0, 0.0, 1.0, garages


2 InfieldObject

[ 48]: 3, 72.0, -10.0, 0.0, 285.0, 0.0, 0.0, 1.0, pit

5 Reference

{ 0}: 0

{ 1}: 1

{ 2}: 2

{ 3}: 220

{ 4}: 221

[ 49]: 3, 7260.0, -18.0, 0.0, 0.0, 0.0, 0.0, 1.0, tent

1 Reference { 0}: 219


1 OutfieldObject

[ 50]: 1, -14.382953, -1397.6690, -406.908, 0.0001, 0.0001, 0.0001, 1.0, towerl

3 Reference

{ 0}: 98

{ 1}: 99

{ 2}: 100


The first two lines tell trk23dow how many objects are in the first section (green). These objects are those that are within the driving limits of the track. Each line in the first section consists of a number of values. Here is the entry number 10:


[ 10]: 3, 10.0, -5.0, 0.0, 0.0, 0.0, 0.0, 1.0, starter green flag man


[ 10]: - this is the object number, starting from 0.

3, - this is the method of object placement (see Trackside Objects for more detail)

10.0, -5.0, 0.0, 0.0, 0.0, 0.0, - this is the position and rotation of the object (see Trackside Objects for more detail)

1.0, - this is a scale value. It doesn't seem to work as expected

starter - this is the name of the object. In this case it is the bloke who waves the flag at the start of a race.

green flag man - this is a comment. Everything from the end of the object name (end is defined by a space), to the end of the line is deemed a comment.


The second section (blue) is the objects that are to the right of the track, outside the driving limits. (Infield assumes a clockwise track. If you have an anti-clockwise track, this is actually the outfield, but is still called the infield). The lines are the same as before, but after each line you must have a number of TRK Section ID References:


5 Reference

{ 0}: 0

{ 1}: 1

{ 2}: 2

{ 3}: 220

{ 4}: 221


This example means that this object (the one named 'pit'), is situated next to the TRK sections 0, 1, 2, 220 and 221 (it crosses the s/f line).

'next to' means that as you look at the TRK, this object is to the right of the centreline, outside the driving limits.

The third and final section is the objects that are to the left of the track, outside the driving limits. (Outfield- clockwise). The system of references is the same as for the Infield objects.

See TrackSide Objects for further information.


Do Not!

  • Use object names or comments that begin with a number or symbol - always start with a letter.
  • Use long file names - GPL does not like them, neither does trk23dow.
  • Deviate from the layout of the TSO file. Blank lines will cause problems as well.



Updated 6-Jan-2001

Transferred to the wiki: 23.04.2009