Skip to navigation


Extra tracks: Track section data (Part 1 of 2)

Name: Track section data (Part 1 of 2) [Show more] Type: Variable Category: Extra tracks Summary: Data for the track sections Deep dive: The track data file format The extra tracks data file format The Brands Hatch track
Context: See this variable in context in the source code References: No direct references to this variable in this source file

Brands Hatch consists of the following track sections: 0 -> Clearways to Paddock Bend (3/3) 1 -> Paddock Bend 2 |->| Paddock Bend to Druids (1/2) 3 {} Paddock Bend to Druids (2/2) 4 |->| Druids 5 || Druids to Graham Hill Bend 6 <- Graham Hill Bend 7 || Graham Hill Bend to Surtees (1/3) 8 <- Graham Hill Bend to Surtees (2/3) 9 <- Graham Hill Bend to Surtees (3/3) 10 <- Surtees 11 {} Surtees to Hawthorns Bend (1/4) 12 |->| Surtees to Hawthorns Bend (2/4) 13 {} Surtees to Hawthorns Bend (3/4) 14 {} Surtees to Hawthorns Bend (4/4) 15 -> Hawthorns Bend 16 || Hawthorns Bend to Westfield 17 -> Westfield 18 {} Westfield to Dingle Dell Corner (1/3) 19 -> Westfield to Dingle Dell Corner (2/3) 20 || Westfield to Dingle Dell Corner (3/3) 21 -> Dingle Dell Corner 22 || Dingle Dell Corner to Stirlings 23 <- Stirlings 24 {} Stirlings to Clearways (1/2) 25 {} Stirlings to Clearways (2/2) 26 -> Clearways 27 -> Clearways to Paddock Bend (1/3) 28 -> Clearways to Paddock Bend (2/3) where each section is one of the following shapes: || is a straight section that doesn't curve to the left or right, and has the same gradient throughout the whole section {} is a straight section in the sense that it doesn't curve to the left or right, but the gradient can differ between sub-sections -> consists of sub-sections that all curve to the right <- consists of sub-sections that all curve to the left |->| consists of sub-sections that are either straight or curve to the right |<-| consists of sub-sections that are either straight or curve to the left |<->| consists of sub-sections that are either straight or curve to the left or right This part defines the following aspects of these track sections: trackSectionData Various data for the track section: * Bits 0-2: Size of the track section list Defines the number of entries that we store in the track section list for this section, which is used to calculate the coordinates of the track verges (higher numbers mean more sections are calculated, so higher numbers are used for more complex parts of the track) This value is given in the bottom nibble of the track section data byte (bit 3 is ignored), i.e. the second digit in the hexadecimal value * Bits 4-7: Sign number The number of the road sign (0 to 15) to show when we enter this section, but only if the sign number is different to the number in the previous section This value is given in the top nibble of the track section data byte, i.e. the first digit in the hexadecimal value xTrackSectionIHi High byte of the x-coordinate of the starting point of the inner verge of each track section yTrackSectionIHi High byte of the y-coordinate of the starting point of the inner verge of each track section zTrackSectionIHi High byte of the z-coordinate of the starting point of the inner verge of each track section xTrackSectionOHi High byte of the x-coordinate of the starting point of the outside verge of each track section trackSectionTurn The number of the segment towards the end of the section where non-player cars should start turning in preparation for the next section zTrackSectionOHi High byte of the z-coordinate of the starting point of the outside verge of each track section trackDriverSpeed The maximum speed for non-player drivers on the next section of the track
\ Track section 0 EQUB &01 \ trackSectionData sign = 0, sectionListSize = 1 EQUB &D1 \ xTrackSectionIHi xTrackSectionI = &D120 = -12000 EQUB &14 \ yTrackSectionIHi yTrackSectionI = &1400 = 5120 EQUB &0F \ zTrackSectionIHi zTrackSectionI = &0FA0 = 4000 EQUB &D0 \ xTrackSectionOHi xTrackSectionO = &D021 = -12255 EQUB 52 \ trackSectionTurn EQUB &0F \ zTrackSectionOHi zTrackSectionO = &0FA0 = 4000 EQUB 127 \ trackDriverSpeed \ Track section 1 EQUB &13 \ trackSectionData sign = 1, sectionListSize = 3 EQUB &D4 \ xTrackSectionIHi xTrackSectionI = &D4DC = -11044 EQUB &14 \ yTrackSectionIHi yTrackSectionI = &1487 = 5255 EQUB &2A \ zTrackSectionIHi zTrackSectionI = &2A5C = 10844 EQUB &D3 \ xTrackSectionOHi xTrackSectionO = &D3F6 = -11274 EQUB 41 \ trackSectionTurn EQUB &2A \ zTrackSectionOHi zTrackSectionO = &2AC8 = 10952 EQUB 28 \ trackDriverSpeed \ Track section 2 EQUB &22 \ trackSectionData sign = 2, sectionListSize = 2 EQUB &E0 \ xTrackSectionIHi xTrackSectionI = &E052 = -8110 EQUB &0F \ yTrackSectionIHi yTrackSectionI = &0F2B = 3883 EQUB &2D \ zTrackSectionIHi zTrackSectionI = &2DE3 = 11747 EQUB &E0 \ xTrackSectionOHi xTrackSectionO = &E0B5 = -8011 EQUB 255 \ trackSectionTurn EQUB &2E \ zTrackSectionOHi zTrackSectionO = &2ECC = 11980 EQUB 255 \ trackDriverSpeed \ Track section 3 EQUB &31 \ trackSectionData sign = 3, sectionListSize = 1 EQUB &EA \ xTrackSectionIHi xTrackSectionI = &EA2B = -5589 EQUB &0E \ yTrackSectionIHi yTrackSectionI = &0EDE = 3806 EQUB &29 \ zTrackSectionIHi zTrackSectionI = &2996 = 10646 EQUB &EA \ xTrackSectionOHi xTrackSectionO = &EAAA = -5462 EQUB 22 \ trackSectionTurn EQUB &2A \ zTrackSectionOHi zTrackSectionO = &2A73 = 10867 EQUB 73 \ trackDriverSpeed \ Track section 4 EQUB &31 \ trackSectionData sign = 3, sectionListSize = 1 EQUB &F3 \ xTrackSectionIHi xTrackSectionI = &F3EB = -3093 EQUB &11 \ yTrackSectionIHi yTrackSectionI = &116C = 4460 EQUB &23 \ zTrackSectionIHi zTrackSectionI = &23F6 = 9206 EQUB &F4 \ xTrackSectionOHi xTrackSectionO = &F46A = -2966 EQUB 24 \ trackSectionTurn EQUB &24 \ zTrackSectionOHi zTrackSectionO = &24D3 = 9427 EQUB 6 \ trackDriverSpeed \ Track section 5 EQUB &43 \ trackSectionData sign = 4, sectionListSize = 3 EQUB &F1 \ xTrackSectionIHi xTrackSectionI = &F171 = -3727 EQUB &0D \ yTrackSectionIHi yTrackSectionI = &0D53 = 3411 EQUB &1E \ zTrackSectionIHi zTrackSectionI = &1E53 = 7763 EQUB &F1 \ xTrackSectionOHi xTrackSectionO = &F100 = -3840 EQUB 21 \ trackSectionTurn EQUB &1D \ zTrackSectionOHi zTrackSectionO = &1D6D = 7533 EQUB 255 \ trackDriverSpeed \ Track section 6 EQUB &44 \ trackSectionData sign = 4, sectionListSize = 4 EQUB &E6 \ xTrackSectionIHi xTrackSectionI = &E60D = -6643 EQUB &08 \ yTrackSectionIHi yTrackSectionI = &0843 = 2115 EQUB &23 \ zTrackSectionIHi zTrackSectionI = &23EA = 9194 EQUB &E5 \ xTrackSectionOHi xTrackSectionO = &E59C = -6756 EQUB 31 \ trackSectionTurn EQUB &23 \ zTrackSectionOHi zTrackSectionO = &2304 = 8964 EQUB 18 \ trackDriverSpeed \ Track section 7 EQUB &53 \ trackSectionData sign = 5, sectionListSize = 3 EQUB &DE \ xTrackSectionIHi xTrackSectionI = &DE2F = -8657 EQUB &05 \ yTrackSectionIHi yTrackSectionI = &05EB = 1515 EQUB &21 \ zTrackSectionIHi zTrackSectionI = &2120 = 8480 EQUB &DE \ xTrackSectionOHi xTrackSectionO = &DEF0 = -8464 EQUB 1 \ trackSectionTurn EQUB &20 \ zTrackSectionOHi zTrackSectionO = &207A = 8314 EQUB 255 \ trackDriverSpeed \ Track section 8 EQUB &54 \ trackSectionData sign = 5, sectionListSize = 4 EQUB &DA \ xTrackSectionIHi xTrackSectionI = &DA39 = -9671 EQUB &05 \ yTrackSectionIHi yTrackSectionI = &05EB = 1515 EQUB &1C \ zTrackSectionIHi zTrackSectionI = &1C81 = 7297 EQUB &DA \ xTrackSectionOHi xTrackSectionO = &DAFA = -9478 EQUB 39 \ trackSectionTurn EQUB &1B \ zTrackSectionOHi zTrackSectionO = &1BDB = 7131 EQUB 19 \ trackDriverSpeed \ Track section 9 EQUB &53 \ trackSectionData sign = 5, sectionListSize = 3 EQUB &D8 \ xTrackSectionIHi xTrackSectionI = &D836 = -10186 EQUB &05 \ yTrackSectionIHi yTrackSectionI = &05EB = 1515 EQUB &16 \ zTrackSectionIHi zTrackSectionI = &16CE = 5838 EQUB &D9 \ xTrackSectionOHi xTrackSectionO = &D930 = -9936 EQUB 43 \ trackSectionTurn EQUB &16 \ zTrackSectionOHi zTrackSectionO = &16A1 = 5793 EQUB 117 \ trackDriverSpeed \ Track section 10 EQUB &62 \ trackSectionData sign = 6, sectionListSize = 2 EQUB &D9 \ xTrackSectionIHi xTrackSectionI = &D90A = -9974 EQUB &05 \ yTrackSectionIHi yTrackSectionI = &05EB = 1515 EQUB &01 \ zTrackSectionIHi zTrackSectionI = &0152 = 338 EQUB &DA \ xTrackSectionOHi xTrackSectionO = &DA00 = -9728 EQUB 40 \ trackSectionTurn EQUB &01 \ zTrackSectionOHi zTrackSectionO = &018F = 399 EQUB 20 \ trackDriverSpeed \ Track section 11 EQUB &61 \ trackSectionData sign = 6, sectionListSize = 1 EQUB &E5 \ xTrackSectionIHi xTrackSectionI = &E558 = -6824 EQUB &0A \ yTrackSectionIHi yTrackSectionI = &0ADF = 2783 EQUB &FC \ zTrackSectionIHi zTrackSectionI = &FC7C = -900 EQUB &E4 \ xTrackSectionOHi xTrackSectionO = &E496 = -7018 EQUB 1 \ trackSectionTurn EQUB &FD \ zTrackSectionOHi zTrackSectionO = &FD21 = -735 EQUB 123 \ trackDriverSpeed \ Track section 12 EQUB &73 \ trackSectionData sign = 7, sectionListSize = 3 EQUB &EF \ xTrackSectionIHi xTrackSectionI = &EF18 = -4328 EQUB &11 \ yTrackSectionIHi yTrackSectionI = &1173 = 4467 EQUB &07 \ zTrackSectionIHi zTrackSectionI = &07DC = 2012 EQUB &EE \ xTrackSectionOHi xTrackSectionO = &EE56 = -4522 EQUB 255 \ trackSectionTurn EQUB &08 \ zTrackSectionOHi zTrackSectionO = &0881 = 2177 EQUB 255 \ trackDriverSpeed \ Track section 13 EQUB &82 \ trackSectionData sign = 8, sectionListSize = 2 EQUB &06 \ xTrackSectionIHi xTrackSectionI = &0661 = 1633 EQUB &11 \ yTrackSectionIHi yTrackSectionI = &1132 = 4402 EQUB &1B \ zTrackSectionIHi zTrackSectionI = &1B7F = 7039 EQUB &05 \ xTrackSectionOHi xTrackSectionO = &05C5 = 1477 EQUB 255 \ trackSectionTurn EQUB &1C \ zTrackSectionOHi zTrackSectionO = &1C4B = 7243 EQUB 255 \ trackDriverSpeed \ Track section 14 EQUB &81 \ trackSectionData sign = 8, sectionListSize = 1 EQUB &12 \ xTrackSectionIHi xTrackSectionI = &1261 = 4705 EQUB &0E \ yTrackSectionIHi yTrackSectionI = &0E12 = 3602 EQUB &24 \ zTrackSectionIHi zTrackSectionI = &249F = 9375 EQUB &11 \ xTrackSectionOHi xTrackSectionO = &11C5 = 4549 EQUB 19 \ trackSectionTurn EQUB &25 \ zTrackSectionOHi zTrackSectionO = &256B = 9579 EQUB 142 \ trackDriverSpeed \ Track section 15 EQUB &90 \ trackSectionData sign = 9, sectionListSize = 0 EQUB &1B \ xTrackSectionIHi xTrackSectionI = &1B61 = 7009 EQUB &11 \ yTrackSectionIHi yTrackSectionI = &11C0 = 4544 EQUB &2B \ zTrackSectionIHi zTrackSectionI = &2B77 = 11127 EQUB &1A \ xTrackSectionOHi xTrackSectionO = &1AC5 = 6853 EQUB 46 \ trackSectionTurn EQUB &2C \ zTrackSectionOHi zTrackSectionO = &2C43 = 11331 EQUB 23 \ trackDriverSpeed \ Track section 16 EQUB &92 \ trackSectionData sign = 9, sectionListSize = 2 EQUB &2A \ xTrackSectionIHi xTrackSectionI = &2AA6 = 10918 EQUB &15 \ yTrackSectionIHi yTrackSectionI = &15DC = 5596 EQUB &2A \ zTrackSectionIHi zTrackSectionI = &2AF6 = 10998 EQUB &2B \ xTrackSectionOHi xTrackSectionO = &2B63 = 11107 EQUB 50 \ trackSectionTurn EQUB &2B \ zTrackSectionOHi zTrackSectionO = &2BA2 = 11170 EQUB 127 \ trackDriverSpeed \ Track section 17 EQUB &A1 \ trackSectionData sign = 10, sectionListSize = 1 EQUB &3C \ xTrackSectionIHi xTrackSectionI = &3C0D = 15373 EQUB &14 \ yTrackSectionIHi yTrackSectionI = &14C9 = 5321 EQUB &17 \ zTrackSectionIHi zTrackSectionI = &17D7 = 6103 EQUB &3C \ xTrackSectionOHi xTrackSectionO = &3CCA = 15562 EQUB 37 \ trackSectionTurn EQUB &18 \ zTrackSectionOHi zTrackSectionO = &1883 = 6275 EQUB 18 \ trackDriverSpeed \ Track section 18 EQUB &A3 \ trackSectionData sign = 10, sectionListSize = 3 EQUB &3A \ xTrackSectionIHi xTrackSectionI = &3A6B = 14955 EQUB &14 \ yTrackSectionIHi yTrackSectionI = &14A8 = 5288 EQUB &0C \ zTrackSectionIHi zTrackSectionI = &0C7C = 3196 EQUB &3B \ xTrackSectionOHi xTrackSectionO = &3B17 = 15127 EQUB 21 \ trackSectionTurn EQUB &0B \ zTrackSectionOHi zTrackSectionO = &0BBE = 3006 EQUB 255 \ trackDriverSpeed \ Track section 19 EQUB &A2 \ trackSectionData sign = 10, sectionListSize = 2 EQUB &2D \ xTrackSectionIHi xTrackSectionI = &2D35 = 11573 EQUB &11 \ yTrackSectionIHi yTrackSectionI = &1128 = 4392 EQUB &00 \ zTrackSectionIHi zTrackSectionI = &0076 = 118 EQUB &2D \ xTrackSectionOHi xTrackSectionO = &2DE1 = 11745 EQUB 40 \ trackSectionTurn EQUB &FF \ zTrackSectionOHi zTrackSectionO = &FFB8 = -72 EQUB 20 \ trackDriverSpeed \ Track section 20 EQUB &A1 \ trackSectionData sign = 10, sectionListSize = 1 EQUB &29 \ xTrackSectionIHi xTrackSectionI = &29E7 = 10727 EQUB &11 \ yTrackSectionIHi yTrackSectionI = &11AC = 4524 EQUB &FE \ zTrackSectionIHi zTrackSectionI = &FEC6 = -314 EQUB &2A \ xTrackSectionOHi xTrackSectionO = &2A28 = 10792 EQUB 21 \ trackSectionTurn EQUB &FD \ zTrackSectionOHi zTrackSectionO = &FDCF = -561 EQUB 123 \ trackDriverSpeed \ Track section 21 EQUB &B1 \ trackSectionData sign = 11, sectionListSize = 1 EQUB &1D \ xTrackSectionIHi xTrackSectionI = &1D37 = 7479 EQUB &14 \ yTrackSectionIHi yTrackSectionI = &14A0 = 5280 EQUB &FB \ zTrackSectionIHi zTrackSectionI = &FB62 = -1182 EQUB &1D \ xTrackSectionOHi xTrackSectionO = &1D78 = 7544 EQUB 24 \ trackSectionTurn EQUB &FA \ zTrackSectionOHi zTrackSectionO = &FA6B = -1429 EQUB 12 \ trackDriverSpeed \ Track section 22 EQUB &B3 \ trackSectionData sign = 11, sectionListSize = 3 EQUB &18 \ xTrackSectionIHi xTrackSectionI = &18F2 = 6386 EQUB &15 \ yTrackSectionIHi yTrackSectionI = &1509 = 5385 EQUB &FC \ zTrackSectionIHi zTrackSectionI = &FC9E = -866 EQUB &18 \ xTrackSectionOHi xTrackSectionO = &1834 = 6196 EQUB 33 \ trackSectionTurn EQUB &FB \ zTrackSectionOHi zTrackSectionO = &FBF1 = -1039 EQUB 108 \ trackDriverSpeed \ Track section 23 EQUB &C2 \ trackSectionData sign = 12, sectionListSize = 2 EQUB &0C \ xTrackSectionIHi xTrackSectionI = &0CEC = 3308 EQUB &14 \ yTrackSectionIHi yTrackSectionI = &1497 = 5271 EQUB &09 \ zTrackSectionIHi zTrackSectionI = &09D4 = 2516 EQUB &0C \ xTrackSectionOHi xTrackSectionO = &0C2E = 3118 EQUB 27 \ trackSectionTurn EQUB &09 \ zTrackSectionOHi zTrackSectionO = &0927 = 2343 EQUB 13 \ trackDriverSpeed \ Track section 24 EQUB &C1 \ trackSectionData sign = 12, sectionListSize = 1 EQUB &05 \ xTrackSectionIHi xTrackSectionI = &05D0 = 1488 EQUB &15 \ yTrackSectionIHi yTrackSectionI = &1599 = 5529 EQUB &0A \ zTrackSectionIHi zTrackSectionI = &0A0B = 2571 EQUB &06 \ xTrackSectionOHi xTrackSectionO = &067E = 1662 EQUB 255 \ trackSectionTurn EQUB &09 \ zTrackSectionOHi zTrackSectionO = &0950 = 2384 EQUB 255 \ trackDriverSpeed \ Track section 25 EQUB &D3 \ trackSectionData sign = 13, sectionListSize = 3 EQUB &F9 \ xTrackSectionIHi xTrackSectionI = &F970 = -1680 EQUB &19 \ yTrackSectionIHi yTrackSectionI = &1923 = 6435 EQUB &FE \ zTrackSectionIHi zTrackSectionI = &FE83 = -381 EQUB &FA \ xTrackSectionOHi xTrackSectionO = &FA1E = -1506 EQUB 47 \ trackSectionTurn EQUB &FD \ zTrackSectionOHi zTrackSectionO = &FDC8 = -568 EQUB 125 \ trackDriverSpeed \ Track section 26 EQUB &E2 \ trackSectionData sign = 14, sectionListSize = 2 EQUB &E5 \ xTrackSectionIHi xTrackSectionI = &E5D8 = -6696 EQUB &19 \ yTrackSectionIHi yTrackSectionI = &193C = 6460 EQUB &EC \ zTrackSectionIHi zTrackSectionI = &EC41 = -5055 EQUB &E6 \ xTrackSectionOHi xTrackSectionO = &E686 = -6522 EQUB 42 \ trackSectionTurn EQUB &EB \ zTrackSectionOHi zTrackSectionO = &EB86 = -5242 EQUB 24 \ trackDriverSpeed \ Track section 27 EQUB &E1 \ trackSectionData sign = 14, sectionListSize = 1 EQUB &DB \ xTrackSectionIHi xTrackSectionI = &DB15 = -9451 EQUB &16 \ yTrackSectionIHi yTrackSectionI = &16E6 = 5862 EQUB &ED \ zTrackSectionIHi zTrackSectionI = &EDCA = -4662 EQUB &DA \ xTrackSectionOHi xTrackSectionO = &DA64 = -9628 EQUB 255 \ trackSectionTurn EQUB &ED \ zTrackSectionOHi zTrackSectionO = &ED11 = -4847 EQUB 125 \ trackDriverSpeed \ Track section 28 EQUB &F2 \ trackSectionData sign = 15, sectionListSize = 2 EQUB &D3 \ xTrackSectionIHi xTrackSectionI = &D398 = -11368 EQUB &17 \ yTrackSectionIHi yTrackSectionI = &179A = 6042 EQUB &F7 \ zTrackSectionIHi zTrackSectionI = &F7D9 = -2087 EQUB &D2 \ xTrackSectionOHi xTrackSectionO = &D2A5 = -11611 EQUB 255 \ trackSectionTurn EQUB &F7 \ zTrackSectionOHi zTrackSectionO = &F78C = -2164 EQUB 255 \ trackDriverSpeed EQUB &00, &00 \ These bytes appear to be unused EQUB &00, &00 EQUB &00, &34 EQUB &00, &7F