Code for finish fla...
 
Notifications
Clear all

[Solved] Code for finish flag, multi-sim dashboard

3 Posts
2 Users
1 Likes
607 Views
(@botmeister)
Eminent Member
Joined: 2 years ago
Posts: 37
Topic starter  

I'm making a finish flag for a multi-sim dash: AC, ACC, AMS2, RF2. Everything is in Ncalc, no javascript. Also no use of plugins. It came done to this, because the [CheckeredFlag] property doesn't work consistently for these 4 games. My code is almost working except for I need a status when going over the finish line. The scenario:

  • Time race.
  • When race time reached 00:00:00.... don't show finish flag yet, but instead.
  • Show finish flag after my next crossing of the finish line.
  • Show finish flag when I cross the finish line, not when some other driver crosses it (and wins)

------------------------------

EDIT: I managed to narrow down the problem and am quite pleased with the result. Way easier than the code I posted earlier here. I already knew RF2 has a 'you have crossed the finish line' status, but then found out AMS2 has one too. Then later on I even found one for ACC, by accident. The current code:

  • AC can use the simhub default [Flag_Checkered] = '1'
    • Works for lap race
    • Works for time race (online)
  • ACC uses [GameRawData.Graphics.globalChequered] = '1'
    • Combined with changed(10000000,[CurrentLap]) the finish flag shows when you cross the line yourself
    • Watch the letter Q in checkered!! That's why I never saw it earlier 😐
    • No lap race in ACC
    • Works for time race
  • AMS2 uses [GameRawData.mRaceState] = '3'
    • Works for lap race
    • Works for time race
  • RFactor2 uses [GameRawData.CurrentPlayer.mFinishStatus] = '1'
    • Works for lap rac
    • Works for time race

 

Will get back as soon I have the test results for AC online timed race.

edit.... AC results are good, problem solved.


   
Quote
(@ankunding)
New Member
Joined: 7 months ago
Posts: 1
 

I simply wanted to mention how wonderful your article is. I could tell you are an authority on this subject based on how well-written your post is.

 

rocket bot royale


   
Botmeister reacted
ReplyQuote
(@botmeister)
Eminent Member
Joined: 2 years ago
Posts: 37
Topic starter  

Thank you for the kind words


   
ReplyQuote
Share: