Skip to content
FREN

The race

Time remaining and the lap, the overall and class position, the iRating gain; below, the stint, the incidents and the temperatures.

  • 18 min
  • no game needed
  • at the end: two more blocks, two groups

The top strip and the info block at the bottom right: what places you in the race. Start from your dash from chapter 5, or from its checkpoint.

Step 1 / 5

Time remaining and the lap

Two texts, which an Expression will fill. T, 1:22:34, Exo 2, 32, Extra bold, italic, #f5f5f7, aligned right, the anchor at the top right, X 436, Y 16, named Clock: anchored right, a ten-hour race’s clock grows to the left. Then T, LAP 12 / 34, Exo 2, 13, Bold, letter spacing 0.8, #b9b9c2, X 450, Y 27, named Lap count.

F on the second one, Tab › Expression on its left:

t = @time_remain_s ;
$clock = t > 0 && t < 86400 ? timefmt(t, "h:mm:ss") : "-:--:--" ;
total = @session_laps_total ;
$lap = "LAP " + str(@lap) + (total > 0 ? " / " + str(total) : "")

Drag clock to value on Clock, just above, and lap to value on Lap count.

Step 2 / 5

The positions and the iRating

Three labels in Exo 2, 12, Bold, letter spacing 0.7, #b9b9c2, centred, the anchor at the top centre, Y 14: POS at X 635, CLASS at X 715, iR at X 801.

Under each one, its value, centred the same way, Y 24, Exo 2, 28, Extra bold, italic. N, position, Prefix P, When empty -, 0 counts as empty, #f5f5f7, X 635; the same for class_position at X 715.

The iRating gain: N, irating_gain, Show + sign ticked, When empty --, 0 counts as empty, #5cf09a, X 801. Its colour follows its sign: a one-line Expression next to its node,

$color = @irating_gain < 0 ? rgba(255, 115, 99) : rgba(92, 240, 154)

and color to the text’s color.

Step 3 / 5

The stint and the incidents

At the bottom right, labels like the ones at the top, but aligned left, and values in Exo 2, 22, Extra bold, italic. STINT at X 624, Y 354; under it, N, lap_in_stint, Suffix L, #f5f5f7, X 624, Y 366: the lap of the stint, counted from the pit exit.

INC at X 733, Y 354; under it, T, 3x / 17, #ffc94d, X 733, Y 366, named Incidents. An Expression next to it writes the incidents and the limit that disqualifies from the race, when there is one:

limit = @incident_limit ;
$inc = str(@incidents_personal) + "x" + (limit > 0 ? " / " + str(limit) : "")

inc to the text’s value.

Step 4 / 5

The temperatures

TRACK at X 624, Y 416; under it, N, track_temp_c, one decimal, Suffix °, X 624, Y 428. AIR at X 733, Y 416; under it, air_temp_c, the same, X 733, Y 428.

Step 5 / 5

Put both blocks away

Two zones, two groups. Clock, then Shift+click iRating gain, Ctrl+G, Race. Stint label, Shift+click Air temp, Ctrl+G, Info.

  • timefmt(t, "h:mm:ss") writes seconds as hours, minutes, seconds. A lap race doesn’t always have a clock: iRacing counts a week there, hence the one-day bound (86400 seconds).
  • str(@lap) makes text out of a number; + puts texts end to end.
  • (total > 0 ? " / " + str(total) : "") only adds the total when it exists: a timed race has none.

Download first-dash-6.slxd: the dash at the end of this chapter.

The iRating gain stays at --. It is only worked out in a race, with at least one other classified driver in your class. It is an estimate (the community formula), at your current position.

LAP 12 / 34 doesn’t change. The text shows what was typed as long as nothing arrives through its value socket: check the wire from lap.

Layer Tool Channel or text Format X Y Size Colour Alignment
Clock Text wired to the Expression 436 16 32, Extra bold, italic #f5f5f7 right
Lap count Text wired to the Expression 450 27 13, Bold #b9b9c2 left
Position label Text POS 635 14 12, Bold #b9b9c2 centre
Position Number position P before, - if 0 635 24 28, Extra bold, italic #f5f5f7 centre
Class label Text CLASS 715 14 12, Bold #b9b9c2 centre
Class position Number class_position P before, - if 0 715 24 28, Extra bold, italic #f5f5f7 centre
iRating label Text iR 801 14 12, Bold #b9b9c2 centre
iRating gain Number irating_gain sign, -- if 0 801 24 28, Extra bold, italic wired centre
Stint label Text STINT 624 354 12, Bold #b9b9c2 left
Stint lap Number lap_in_stint L after 624 366 22, Extra bold, italic #f5f5f7 left
Incidents label Text INC 733 354 12, Bold #b9b9c2 left
Incidents Text wired to the Expression 733 366 22, Extra bold, italic #ffc94d left
Track temp label Text TRACK 624 416 12, Bold #b9b9c2 left
Track temp Number track_temp_c 1 decimal, ° after 624 428 22, Extra bold, italic #f5f5f7 left
Air temp label Text AIR 733 416 12, Bold #b9b9c2 left
Air temp Number air_temp_c 1 decimal, ° after 733 428 22, Extra bold, italic #f5f5f7 left

All in Exo 2, Vertical on line, top; the labels with a letter spacing of 0.7, Lap count 0.8.