ArgDocs

Track Data Header (Track File Format)

The track data header starts at the short value at $100C + 0x1010, e.g. $384A for the Phoenix track. This is the starting position called $TDH in the table below.

The header is either 28 or 32 bytes long depending on whether the kerbs have two or three colors.

Field Type Description Comment
$TDH short Starting angle of first track segment
+2 short Starting height of first segment
+4 short X-coordinate of track center ? in GP2
+6 short Z-coordinate of track center
+8 short Y-coordinate of track center
+10 short Start width of 1st track segment
+12 short Pole position side 768 = right, -768 = left
+14 short Pit side 0 = right, 10 = left
+15 byte Surrounding area color 0 = green, 0xC0/192 = gray, 128=gray
+16 byte Starting width of right verge
+17 byte Starting width of left verge
+18 byte Kerb type (two or three colors) 4 = three colors, otherwise 3
+19 byte Unknown Always 0
+20 byte Unknown Always 8
+21 byte Unknown Always 0
+22 byte Kerb upper color Index in special kerb palette
+23 byte Unknown Always 0
+24 byte Kerb lower color Index in special kerb palette
+25 byte Unknown Always 0
+26 byte Unknown Always 8
+27 byte Unknown Always 0
+28 byte Kerb upper color 2 (if triple color) Index in special kerb palette
+29 byte Unknown Always 0
+30 byte Kerb lower color 2 (if triple color) Index in special kerb palette
+31 byte Unknown Always 0

Back to F1GP Track File Format