Custom dash and remaining distance

If you don't speak hungarian or you feel like to write your idea in english.

Moderator: Moderátor

Post Reply
Joe Pascal
Vendég
Posts: 4
Joined: 2021 Mon Sep 27 22:13
Location: UK

Custom dash and remaining distance

Post by Joe Pascal » 2022 Fri May 20 21:03

I'm messing around with some custom dash mods in Simhub and just wondered if someone knows how to add the remaining distance or a course progress bar into it?

Joe Pascal
Vendég
Posts: 4
Joined: 2021 Mon Sep 27 22:13
Location: UK

Re: Custom dash and remaining distance

Post by Joe Pascal » 2022 Sun May 22 22:00

In the remote chance that someone is interested or searches for this - The solution I worked out was as follows:

A text box for DISTANCE TRAVELLED containing the value "[TrackPositionPercent]*[TrackLength]/1000"
And a text box for DISTANCE REMAINING containing the value "([TrackLength]-([TrackPositionPercent]*[TrackLength]))/1000"

As far as I could figure out in RBR, Simhub only reports the percentage of the track travelled, so this bit of code also gets the total track length and does the math from there :)

Post Reply