Difference between revisions of "Track file"

From Stunts Wiki
(→‎External links: Reformatting)
Line 1: Line 1:
=General infos=
+
==General infos==
  
 
One of the most interesting features of Stunts is the possibility to create your own tracks, whatever the [[Track_editors|editor]] you choose to do so.
 
One of the most interesting features of Stunts is the possibility to create your own tracks, whatever the [[Track_editors|editor]] you choose to do so.
Line 12: Line 12:
 
==Terrain codification==
 
==Terrain codification==
  
''(to be completed)''
+
''(to be completed - for the moment, see the external links {{ToFoot|2}})''
  
  
 
==Track codification==
 
==Track codification==
  
''(to be completed)''
+
''(to be completed - for the moment, see the external links {{ToFoot|2}})''
  
  

Revision as of 20:02, 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 - for the moment, see the external links [2])


Track codification

(to be completed - for the moment, see the external links [2])


Horizon codification

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


External links