One of the four extra tracks in the Revs 4 Tracks expansion
Brands Hatch was one of the four new tracks released by Acornsoft as part of the Revs 4 Tracks expansion in late 1985 (the others being Donington Park, Oulton Park and Snetterton).
The track looks like this, if we extract the data from the track data file and draw the results:
The track's elevation profile looks like this:
The track is broken up into 29 sections, as follows:
Number | Shape | Description |
---|---|---|
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) |
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
See the deep dives on the extra tracks data file format and dynamic track generation in the extra tracks for information on how the extra tracks are constructed, and how the track segment vectors are dynamically generated in the extra tracks. You may also find it useful to read the deep dives on the original track data file format and building a 3D track from sections and segments.
Track generation and shapes
---------------------------
Each track section has lots of associated data, most of which is stored in the two track section data blocks. These are split into part 1 and part 2. See the deep dives on the track data file format and the extra tracks data file format for details.
In the extra track files, track sections are broken up into sub-sections, which are then broken up into segments. Each section therefore has an associated size, given as the number of segments. There is also a track segment vector number, which determines which track segment vectors make up the sections; specifically, it points to the position in the segment vector table where the section's first vector is stored. Note, however, that because the track segment vectors are dynamically generated for this track, the vector number points to the position in the table where the first calculated vector will be stored, rather than pointing to the data itself (as the data is only generated when needed).
Finally, each section has inner and outer coordinates that define the inner and outer track edges at the start of the section. These coordinates share the same y-coordinate, as track sections are level from left to right, so the following table shows the coordinates as (x, z), or longitude and latitude, and the section height is shown separately.
The section data for the Brands Hatch track is as follows:
Section | Vector | Size | Segments | Inner coord | Outer coord | Height |
---|---|---|---|---|---|---|
0 | 0 | 58 | 0-57 | (-12000, 4000) | (-12255, 4000) | 5120 |
1 | 18 | 29 | 58-86 | (-11044, 10844) | (-11274, 10952) | 5255 |
2 | 7 | 23 | 87-109 | (-8110, 11747) | (-8011, 11980) | 3883 |
3 | 30 | 24 | 110-133 | (-5589, 10646) | (-5462, 10867) | 3806 |
4 | 14 | 22 | 134-155 | (-3093, 9206) | (-2966, 9427) | 4460 |
5 | 36 | 27 | 156-182 | (-3727, 7763) | (-3840, 7533) | 3411 |
6 | 23 | 19 | 183-201 | (-6643, 9194) | (-6756, 8964) | 2115 |
7 | 2 | 13 | 202-214 | (-8657, 8480) | (-8464, 8314) | 1515 |
8 | 3 | 13 | 215-227 | (-9671, 7297) | (-9478, 7131) | 1515 |
9 | 16 | 46 | 228-273 | (-10186, 5838) | (-9936, 5793) | 1515 |
10 | 22 | 34 | 274-307 | (-9974, 338) | (-9728, 399) | 1515 |
11 | 16 | 32 | 308-339 | (-6824, -900) | (-7018, -735) | 2783 |
12 | 8 | 65 | 340-404 | (-4328, 2012) | (-4522, 2177) | 4467 |
13 | 34 | 32 | 405-436 | (1633, 7039) | (1477, 7243) | 4402 |
14 | 27 | 24 | 437-460 | (4705, 9375) | (4549, 9579) | 3602 |
15 | 12 | 36 | 461-496 | (7009, 11127) | (6853, 11331) | 4544 |
16 | 9 | 55 | 497-551 | (10918, 10998) | (11107, 11170) | 5596 |
17 | 11 | 27 | 552-578 | (15373, 6103) | (15562, 6275) | 5321 |
18 | 39 | 38 | 579-616 | (14955, 3196) | (15127, 3006) | 5288 |
19 | 38 | 8 | 617-624 | (11573, 118) | (11745, -72) | 4392 |
20 | 7 | 28 | 625-652 | (10727, -314) | (10792, -561) | 4524 |
21 | 9 | 10 | 653-662 | (7479, -1182) | (7544, -1429) | 5280 |
22 | 20 | 38 | 663-700 | (6386, -866) | (6196, -1039) | 5385 |
23 | 22 | 17 | 701-717 | (3308, 2516) | (3118, 2343) | 5271 |
24 | 0 | 36 | 718-753 | (1488, 2571) | (1662, 2384) | 5529 |
25 | 37 | 57 | 754-810 | (-1680, -381) | (-1506, -568) | 6435 |
26 | 15 | 25 | 811-835 | (-6696, -5055) | (-6522, -5242) | 6460 |
27 | 1 | 27 | 836-862 | (-9451, -4662) | (-9628, -4847) | 5862 |
28 | 29 | 51 | 863-913 | (-11368, -2087) | (-11611, -2164) | 6042 |
The shape of each track section is also defined in the track data file. Section coordinates are generated on-the-fly, as described in the deep dive on dynamic track generation in the extra tracks, and bit 6 of the track section flags in trackSectionFlag determines the kind of generator that is used (curved or straight).
The shape data for the Brands Hatch track is as follows:
Section | Sign | List size | Generator (bit 6) | Shape (bit 0) | Shape |
---|---|---|---|---|---|
0 | 0 | 1 | 1 = Curve | 0 = Straight | -> |
1 | 1 | 3 | 1 = Curve | 1 = Curve | -> |
2 | 2 | 2 | 1 = Curve | 0 = Straight | |->| |
3 | 3 | 1 | 1 = Curve | 0 = Straight | {} |
4 | 3 | 1 | 1 = Curve | 1 = Curve | |->| |
5 | 4 | 3 | 1 = Curve | 0 = Straight | || |
6 | 4 | 4 | 1 = Curve | 1 = Curve | <- |
7 | 5 | 3 | 0 = Straight | 0 = Straight | || |
8 | 5 | 4 | 1 = Curve | 1 = Curve | <- |
9 | 5 | 3 | 1 = Curve | 0 = Straight | <- |
10 | 6 | 2 | 1 = Curve | 1 = Curve | <- |
11 | 6 | 1 | 1 = Curve | 0 = Straight | {} |
12 | 7 | 3 | 1 = Curve | 0 = Straight | |->| |
13 | 8 | 2 | 1 = Curve | 0 = Straight | {} |
14 | 8 | 1 | 1 = Curve | 0 = Straight | {} |
15 | 9 | 0 | 1 = Curve | 1 = Curve | -> |
16 | 9 | 2 | 0 = Straight | 0 = Straight | || |
17 | 10 | 1 | 1 = Curve | 1 = Curve | -> |
18 | 10 | 3 | 1 = Curve | 0 = Straight | {} |
19 | 10 | 2 | 1 = Curve | 1 = Curve | -> |
20 | 10 | 1 | 0 = Straight | 0 = Straight | || |
21 | 11 | 1 | 1 = Curve | 1 = Curve | -> |
22 | 11 | 3 | 0 = Straight | 0 = Straight | || |
23 | 12 | 2 | 1 = Curve | 1 = Curve | <- |
24 | 12 | 1 | 1 = Curve | 0 = Straight | {} |
25 | 13 | 3 | 1 = Curve | 0 = Straight | {} |
26 | 14 | 2 | 1 = Curve | 1 = Curve | -> |
27 | 14 | 1 | 1 = Curve | 0 = Straight | -> |
28 | 15 | 2 | 1 = Curve | 0 = Straight | -> |
The sign number describes which signs to show when driving around the track (see the next section for details), and the list size determines the size of the track section list in the track verge buffer (see the deep dive on data structures for the track calculations for an explanation).
Road signs
----------
Revs supports up to 16 road signs per track. Each sign's 3D coordinate is stored as a vector (xTrackSignVector, yTrackSignVector, zTrackSignVector) that is scaled down to fit into 8-bit coordinates. This vector describes the sign's coordinate relative to the inner coordinates of a specified track section. Inner section coordinates are stored in part 1 and part 2 of the section data, in the 16-bit variables (xTrackSectionIHi xTrackSectionILo), (yTrackSectionIHi yTrackSectionILo) and (zTrackSectionIHi zTrackSectionILo). We can therefore calculate the 3D coordinate of a sign by scaling the sign vector and adding it to the relevant section coordinate. See the deep dive on road signs for details of this calculation.
The following table shows the sign number, the sign type, the number of the section to which the sign coordinate is relative, the inner section coordinate, the scaled sign vector and the 3D coordinate of the sign that we calculate from all of the preceding data.
Each track section also has an associated sign number in the trackSectionData entry in the first block of track section data. A sign is drawn if this number changes when we drive into a new track section (so it shows the correct sign whether we are driving forwards or backwards into the new section). The sign numbers are shown in the shape table in the previous section.
The road signs for the Brands Hatch track are as follows:
Sign | Type | Section | trackSectionI | trackSignVector | Coordinate |
---|---|---|---|---|---|
0 | Right turn | 1 | [ -11044 ] [ 5255 ] [ 10844 ] | [ -16 ] [ 26 ] [ -46 ] | [ -12068 ] [ 5671 ] [ 7900 ] |
1 | Straight | 2 | [ -8110 ] [ 3883 ] [ 11747 ] | [ -42 ] [ 76 ] [ 4 ] | [ -10798 ] [ 5099 ] [ 12003 ] |
2 | Hairpin | 4 | [ -3093 ] [ 4460 ] [ 9206 ] | [ -40 ] [ -39 ] [ 28 ] | [ -5653 ] [ 3836 ] [ 10998 ] |
3 | Straight | 4 | [ -3093 ] [ 4460 ] [ 9206 ] | [ 12 ] [ -26 ] [ -20 ] | [ -2325 ] [ 4044 ] [ 7926 ] |
4 | Straight | 7 | [ -8657 ] [ 1515 ] [ 8480 ] | [ 9 ] [ 13 ] [ 10 ] | [ -8081 ] [ 1723 ] [ 9120 ] |
5 | Left turn | 9 | [ -10186 ] [ 1515 ] [ 5838 ] | [ -2 ] [ 8 ] [ -21 ] | [ -10314 ] [ 1643 ] [ 4494 ] |
6 | Straight | 11 | [ -6824 ] [ 2783 ] [ -900 ] | [ -10 ] [ -20 ] [ -9 ] | [ -7464 ] [ 2463 ] [ -1476 ] |
7 | Straight | 12 | [ -4328 ] [ 4467 ] [ 2012 ] | [ 50 ] [ 6 ] [ 45 ] | [ -1128 ] [ 4563 ] [ 4892 ] |
8 | Right turn | 13 | [ 1633 ] [ 4402 ] [ 7039 ] | [ 28 ] [ -32 ] [ 27 ] | [ 3425 ] [ 3890 ] [ 8767 ] |
9 | Right turn | 17 | [ 15373 ] [ 5321 ] [ 6103 ] | [ -33 ] [ 16 ] [ 43 ] | [ 13261 ] [ 5577 ] [ 8855 ] |
10 | Right turn | 20 | [ 10727 ] [ 4524 ] [ -314 ] | [ -12 ] [ 18 ] [ -8 ] | [ 9959 ] [ 4812 ] [ -826 ] |
11 | Left turn | 22 | [ 6386 ] [ 5385 ] [ -866 ] | [ -14 ] [ 5 ] [ 16 ] | [ 5490 ] [ 5465 ] [ 158 ] |
12 | Straight | 24 | [ 1488 ] [ 5529 ] [ 2571 ] | [ -8 ] [ 30 ] [ -14 ] | [ 976 ] [ 6009 ] [ 1675 ] |
13 | Right turn | 26 | [ -6696 ] [ 6460 ] [ -5055 ] | [ 51 ] [ 1 ] [ 41 ] | [ -3432 ] [ 6476 ] [ -2431 ] |
14 | Straight | 28 | [ -11368 ] [ 6042 ] [ -2087 ] | [ 13 ] [ -6 ] [ -20 ] | [ -10536 ] [ 5946 ] [ -3367 ] |
15 | Start flag | 0 | [ -12000 ] [ 5120 ] [ 4000 ] | [ -4 ] [ 8 ] [ 0 ] | [ -12256 ] [ 5248 ] [ 4000 ] |
Corner markers and verge markings
---------------------------------
Each track section can optionally have a set of corner markers (three markers are shown for each curve when configured, while one marker is shown for each applicable straight). The markers can either be a combination of red and white markers, or just white, according to bit 5 of the track section flags in trackSectionFlag. They can also appear on the left or the right of the track, according to bits 3-4 of the section flags.
Track sections can also have differently coloured verge markings. These are black-and-white by default, but can be configured in bits 1-2 of the section flags to be red-and-white on the left or the right of the track.
See the deep dive on corner markers for details of how corner markers work, and the deep dive on the track verges for more on how the verge markings are implemented.
The corner markers and verge markings for the Brands Hatch track are as follows:
Section | Marker colours (bit 5) | Marker positions (bits 3-4) | Verge colours (bits 1-2) |
---|---|---|---|
0 | 1 = Red/white | 10 = Left | 00 = Both black/white |
1 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
2 | 0 = White | 00 = None | 01 = Red/white on left |
3 | 1 = Red/white | 10 = Left | 00 = Both black/white |
4 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
5 | 1 = Red/white | 01 = Right | 01 = Red/white on left |
6 | 1 = Red/white | 10 = Left | 01 = Red/white on left |
7 | 0 = White | 00 = None | 10 = Red/white on right |
8 | 0 = White | 00 = None | 00 = Both black/white |
9 | 1 = Red/white | 01 = Right | 00 = Both black/white |
10 | 1 = Red/white | 10 = Left | 01 = Red/white on left |
11 | 0 = White | 00 = None | 10 = Red/white on right |
12 | 0 = White | 00 = None | 00 = Both black/white |
13 | 0 = White | 00 = None | 00 = Both black/white |
14 | 1 = Red/white | 10 = Left | 00 = Both black/white |
15 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
16 | 1 = Red/white | 10 = Left | 01 = Red/white on left |
17 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
18 | 1 = Red/white | 10 = Left | 01 = Red/white on left |
19 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
20 | 1 = Red/white | 10 = Left | 00 = Both black/white |
21 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
22 | 1 = Red/white | 01 = Right | 01 = Red/white on left |
23 | 1 = Red/white | 10 = Left | 01 = Red/white on left |
24 | 0 = White | 00 = None | 10 = Red/white on right |
25 | 1 = Red/white | 10 = Left | 00 = Both black/white |
26 | 1 = Red/white | 01 = Right | 10 = Red/white on right |
27 | 0 = White | 00 = None | 01 = Red/white on left |
28 | 0 = White | 00 = None | 00 = Both black/white |
Driver speeds and approaches
----------------------------
The track data also contains data that influences how the non-player drivers drive (see the deep dive on tactics of the non-player drivers for details). This data latter is not only used to control non-player drivers, but feeds into computer assisted steering (CAS) as well; see the deep dive computer assisted steering (CAS) for more on this.
This data includes the segment number in each section where non-player drivers should start turning (in trackSectionTurn), the optimum speed for each section (in trackSectionSpeed), the optimum steering to apply for this section (in trackSteering), and whether this section has a maximum speed (in bit 7 of trackSectionFlag).
The non-player driver data for the Brands Hatch track is as follows:
Section | Turn at segment | Optimum speed | Speed as bit 7:0-6 | Section shape | Optimum steering | Maximum speed |
---|---|---|---|---|---|---|
0 | 52 | 127 | 0:127 | -> | <- 6* | - |
1 | 41 | 28 | 0:28 | -> | -> 12 | 127 |
2 | 255 | 255 | 1:127 | |->| | <- 6* | - |
3 | 22 | 73 | 0:73 | {} | <- 0* | - |
4 | 24 | 6 | 0:6 | |->| | -> 19 | 73 |
5 | 21 | 255 | 1:127 | || | -> 12* | - |
6 | 31 | 18 | 0:18 | <- | <- 26* | - |
7 | 1 | 255 | 1:127 | || | -> 6* | - |
8 | 39 | 19 | 0:19 | <- | <- 12* | - |
9 | 43 | 117 | 0:117 | <- | -> 6* | - |
10 | 40 | 20 | 0:20 | <- | <- 11 | 117 |
11 | 1 | 123 | 0:123 | {} | <- 6* | 20 |
12 | 255 | 255 | 1:127 | |->| | <- 6* | - |
13 | 255 | 255 | 1:127 | {} | <- 6* | - |
14 | 19 | 142 | 1:14 | {} | <- 6* | - |
15 | 46 | 23 | 0:23 | -> | -> 12 | 142 |
16 | 50 | 127 | 0:127 | || | <- 6* | - |
17 | 37 | 18 | 0:18 | -> | -> 15 | 127 |
18 | 21 | 255 | 1:127 | {} | <- 6* | - |
19 | 40 | 20 | 0:20 | -> | -> 21* | - |
20 | 21 | 123 | 0:123 | || | <- 6* | - |
21 | 24 | 12 | 0:12 | -> | -> 22 | 123 |
22 | 33 | 108 | 0:108 | || | -> 13* | - |
23 | 27 | 13 | 0:13 | <- | <- 16 | 108 |
24 | 255 | 255 | 1:127 | {} | <- 6* | - |
25 | 47 | 125 | 0:125 | {} | <- 6* | - |
26 | 42 | 24 | 0:24 | -> | -> 18 | 125 |
27 | 255 | 125 | 0:125 | -> | <- 6* | 24 |
28 | 255 | 255 | 1:127 | -> | <- 6* | - |
The speed is shown as-is, and with bit 7 split out, which is used in the driver tactic calculations. The optimum steering is shown as a direction and a magnitude, and if there is an asterisk (*), then the magnitude is scaled by the track's base speed for the chosen class.