Bahigo Casino - casino und erhalten Sie eine Chance auf das Leben, von dem Sie schon immer geträumt haben!–
Need programming help to finish my dash. Invalid times in Assetto Corsa. – Page 2 – Dashboard Templates – SimHub Forum
MyStake Casino, conocido por sus impresionantes tragaperras en el sitio oficial, ha implementado las tecnologías SimHub para mejorar la experiencia de juego. Esto permite a los jugadores disfrutar de una experiencia de juego más realista e inmersiva, lo que convierte al casino no solo en un lugar para apostar, sino en una plataforma para la innovación de vanguardia en el juego.
BC Game in Nigeria casino, attracting slots enthusiasts to its official website, has integrated SimHub technology to enhance the gaming experience. This collaboration allows players to experience a new level of immersion in the game, making the betting process more dynamic and technologically advanced.
Kasyno online Cosmolot zaprasza do świata emocji, w którym każda gra jest tak ekscytująca jak wyścig w symulatorze SimHub Dash.
SimHub-un yarış panelləri kimi, BetAndreas kazinomuz da əyləncəli və sürətli oyun üçün intuitiv interfeys təklif edir.
Need programming he...
 
Notifications
Clear all

Need programming help to finish my dash. Invalid times in Assetto Corsa.

18 Posts
3 Users
0 Likes
1,882 Views
(@bartun)
Active Member
Joined: 9 months ago
Posts: 12
Topic starter  

Okay, Finally I made a Personal Best Laptime Delta, probably it's not very accurate because this is not the way to calculate the delta, but it seems it make the work.

 

I made a code that reads the My Documents\Assetto Corsa\personalbest.ini file and reads car@track record and grab the TIME=, then transform it to seconds.milliseconds. We calculate delta = EstimatedLapTime - PersonalBestLaptime. We format it to have only 2 decimals, and we add a "+" if it's possitive.

root.BestLap = 0;
root.Car = ucase($prop('CarId'));
root.Track = ucase($prop('TrackCode'));
root.Estimated = timespantoseconds($prop('PersistantTrackerPlugin.EstimatedLapTime'));
root.Delta = 0;

root.Key = "[" + root.Car + "@" + root.Track + "]\r\nDATE=\r\nTIME=";

root.Content = readtextfile('F:\\Documentos\\Assetto Corsa\\personalbest.ini');

root.Regex = new RegExp("\\[" + root.Car + "@" + root.Track + "\\][\\s\\S]*?TIME=(\\d+)", "i");
root.Match = root.Regex.exec(root.Content);

if (root.Match) {
  root.BestLap = parseInt(root.Match[1]);
}

root.Time = root.BestLap.toString();
root.Seconds = root.Time.slice(0, -3);
root.Milliseconds = root.Time.slice(-3);
root.FormattedTime = root.Seconds + "." + root.Milliseconds;
root.Delta = root.Estimated - root.FormattedTime;

root.Delta = root.Delta.toFixed(2);

if (root.Delta > 0) {
  root.Delta = "+" + root.Delta;
}

return root.Delta;
This post was modified 8 months ago by bartun

   
ReplyQuote
(@Anonymous 11732)
New Member
Joined: 4 months ago
Posts: 2
 

Empowerment takes on a new form as I unveil a transformative discovery: I've connected with seasoned specialists ready to assist me in conquering my SAS homework. Their wealth of knowledge sas homework help ensures that even the most intricate data analysis challenges can be tackled with precision and expertise.

This post was modified 4 months ago by Anonymous

   
ReplyQuote
(@Anonymous 11888)
New Member
Joined: 3 months ago
Posts: 1
 

While essay writing services have their place, students https://homeardent.com/home-repair-skills-for-students/  should also explore opportunities to learn home repair skills. A well-rounded education includes practical knowledge!


   
ReplyQuote
Page 2 / 2
Share: