Difference between revisions of "Track file"
m |
m |
||
Line 33: | Line 33: | ||
Online track viewer by [[Jonas_Baehr|Jonas Baehr]] [http://www.jonas-baehr.de/stunts/index.php] with also a visual description of terrain and racing/scenery elements [http://www.jonas-baehr.de/stunts/format.php]. | Online track viewer by [[Jonas_Baehr|Jonas Baehr]] [http://www.jonas-baehr.de/stunts/index.php] with also a visual description of terrain and racing/scenery elements [http://www.jonas-baehr.de/stunts/format.php]. | ||
+ | |||
+ | |||
+ | [[Category:Game]] | ||
+ | [[Category:Tracks]] |
Revision as of 13:38, 17 January 2008
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].