So I'm not a coder but having tried to fathom out this I'm lost... I figured by taking the Estimated Stage Time and subtracting the current stage time I could have 'time until stage complete' time. (Why I hear you ask? so that I can have an iPad displaying this outside my spare room door to not be disrupted by my wife and children mid rally stage in Dirt Rally 2.0!)
vi was hoping the following would work: BUT SADLY NOT
Estimate = ($prop('PersistantTrackerPlugin.EstimatedLapTime') - $prop('DataCorePlugin.GameData.NewData.CurrentLapTime'));
return vEstimate
What does it need to be to do what I require?
Thanks for your help.
Hi,
you have to convert the timespans to seconds before doing math with them. And back again if needed.
Try this:
Estimate = secondstotimespan(timespantoseconds($prop('PersistantTrackerPlugin.EstimatedLapTime')) - timespantoseconds($prop('DataCorePlugin.GameData.NewData.CurrentLapTime')));
return Estimate;
Thank you for the great answer Romainrob. Just tried this and it works perfectly :0)