The fuel
What is left in the tank, how many laps that makes, the consumption, the margin at the flag and the lap to pit on.
- 15 min
- no game needed
- at the end: the fuel strategy at a glance
At the bottom left, the block that decides the stops. Start from your dash from chapter 7, or from its checkpoint.
The amount
The label: T, FUEL, Exo 2, 12, Bold, letter spacing 0.7, #6dbbff, X 22, Y 344.
The big number: T, 42.3, Exo 2, 44, Extra bold, italic, #f5f5f7, aligned right, the anchor at the top right, X 112, Y 375, named Fuel level. An Expression next to it gives it one decimal under 100 litres, none above: 120 takes the place of 42.3, and the number doesn’t run out of the tile.
f = @fuel_level ;$fuel = f >= 100 ? format(f, 0) : format(f, 1)fuel to the text’s value. Then the unit, right after it: T, L, Exo 2, 16, Extra bold, italic, #b9b9c2, X 116, Y 403.
The laps left, the last lap's use
N, fuel_laps_remaining: the laps possible at the use of the last three. One decimal, When empty --, 0 counts as empty. Exo 2, 28, Extra bold, italic, #6dbbff, aligned right, the anchor at the top right, X 188, Y 391. Its unit, T, LAPS, Exo 2, 13, Extra bold, italic, #b9b9c2, X 192, Y 406: four pixels apart, the last digit’s italic leans towards it.
At the top right of the block, N, fuel_last_lap, two decimals, Prefix LAST LAP , When empty LAST LAP -.--, 0 counts as empty. Exo 2, 12, Bold, #b9b9c2, aligned right, the anchor at the top right, X 294, Y 344.
The average
At the bottom, T, AVG, Exo 2, 12, Bold, #b9b9c2, X 22, Y 449. Right after it, N, fuel_used_per_lap, the average of the last three laps, two decimals, When empty -.--, 0 counts as empty. Exo 2, 16, Bold, italic, #f5f5f7, X 48, Y 445.
The margin at the flag and the pit lap
Two labels like AVG: FINISH at X 94, BOX at X 186, Y 449. After FINISH, N, fuel_at_finish_l, what will be left at the flag without refuelling: one decimal, Show + sign, When empty --, 0 counts as empty, the average’s style in #ffc94d, X 134, Y 445. After BOX, T, L23, same style, X 212, Y 445, named Box lap.
An Expression next to the pit lap colours the margin and writes the lap to pit on:
m = @fuel_at_finish_l ;red = rgba(255, 115, 99) ;amber = rgba(255, 201, 77) ;green = rgba(92, 240, 154) ;$color = m < 0 ? red : m < 2 * @fuel_used_per_lap ? amber : green ;$box = m < 0 ? "L" + str(@lap + floor(@fuel_laps_remaining)) : "--"color to the margin’s color, box to value on Box lap. Red, you are short; amber, under two laps of margin; green, you make it. The pit lap: the current lap plus the full laps you have left.
Put the block away
Fuel label, Shift+click Box lap, Ctrl+G, Fuel.
The checkpoint
Section titled “The checkpoint”Download first-dash-8.slxd: the dash at the end of this chapter.
If it gets stuck
Section titled “If it gets stuck”The margin and the pit lap stay at --. They are only worked out in a race: it takes laps left (a lap race, or a timed one with a reference lap) and a consumption, after a first full lap.
The dimensions
Section titled “The dimensions”| Layer | Tool | Channel or text | Format | X | Y | Size | Colour | Alignment |
|---|---|---|---|---|---|---|---|---|
Fuel label |
Text | FUEL |
22 | 344 | 12, Bold | #6dbbff |
left | |
Fuel level |
Text | wired to the Expression | 112 | 375 | 44, Extra bold, italic | #f5f5f7 |
right | |
Fuel unit |
Text | L |
116 | 403 | 16, Extra bold, italic | #b9b9c2 |
left | |
Fuel laps |
Number | fuel_laps_remaining |
1 dec., -- if 0 |
188 | 391 | 28, Extra bold, italic | #6dbbff |
right |
Fuel laps unit |
Text | LAPS |
192 | 406 | 13, Extra bold, italic | #b9b9c2 |
left | |
Fuel last lap |
Number | fuel_last_lap |
2 dec., LAST LAP before |
294 | 344 | 12, Bold | #b9b9c2 |
right |
Fuel average label |
Text | AVG |
22 | 449 | 12, Bold | #b9b9c2 |
left | |
Fuel average |
Number | fuel_used_per_lap |
2 dec., -.-- if 0 |
48 | 445 | 16, Bold, italic | #f5f5f7 |
left |
Fuel finish label |
Text | FINISH |
94 | 449 | 12, Bold | #b9b9c2 |
left | |
Box lap label |
Text | BOX |
186 | 449 | 12, Bold | #b9b9c2 |
left | |
Fuel at finish |
Number | fuel_at_finish_l |
1 dec., sign, -- if 0 |
134 | 445 | 16, Bold, italic | wired | left |
Box lap |
Text | wired to the Expression | 212 | 445 | 16, Bold, italic | #f5f5f7 |
left |
All in Exo 2, Vertical on line, top.