Difference between revisions of "Track file"
From Stunts Wiki
m |
(→External links: Reformatting) |
||
Line 30: | Line 30: | ||
− | =External links= | + | ==External links== |
− | + | * {{Footn|1}} [http://www.jonas-baehr.de/stunts/index.php Online track viewer] (by [[Jonas_Baehr|Jonas Baehr]]) | |
− | Online track viewer by [[Jonas_Baehr|Jonas Baehr]] [http://www.jonas-baehr.de/stunts/ | + | * {{Footn|2}} [http://www.jonas-baehr.de/stunts/format.php Visual description of terrain and racing/scenery elements] (by [[Jonas_Baehr|Jonas Baehr]]) |
[[Category:Game]] | [[Category:Game]] | ||
[[Category:Tracks]] | [[Category:Tracks]] |
Revision as of 20:01, 12 May 2009
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)