Track file

From Stunts Wiki
Revision as of 13:35, 17 January 2008 by Krys Toff (talk | contribs) (New page: =General infos= One of the most interesting features of Stunts is the possibility to create your own tracks, whatever the editor you choose to do so. Each track is comp...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

General infos

One of the most interesting features of Stunts is the possibility to create your own tracks, whatever the editor you choose to do so.

Each track is composed of 30x30 squares, one byte for each square. That is 900 bytes for track layout, with 1 additionnal byte for horizon. Terrain information (fills, water) is recorded the same way, that is 900 bytes for terrain information too. Last byte seems to be a zero. Therefore, any track file (extension .TRK) should be 1,802 bytes long.

Track layout starts at offset 0x0000. Horizon is at offset 0x0384. Terrain information starts at offset 0x0385 and the zero byte is at offset 0x0709. Information is recorded row by row : left to right, top to bottom.


Terrain codification

'(to be completed)'


Track codification

'(to be completed)'


Horizon codification

  • 0x00 Desert
  • 0x01 Tropical
  • 0x02 Alpine
  • 0x03 City
  • 0x04 Country
  • 0x05 Chaotic scenery (can make the game react weird sometimes)


External links

Online track viewer by Jonas Baehr [1] with also a visual description of terrain and racing/scenery elements [2].