Shared memory global session time

Discussion in 'Automobilista 2 - Help & Support' started by IEatRocks, Mar 18, 2022.

  1. IEatRocks

    IEatRocks New Member

    Joined:
    Mar 18, 2022
    Messages:
    2
    Likes Received:
    0
    I'm working on a shared memory app and I'm having trouble getting the total session time from the game. I've tried a few solutions (timing the app, using mCurrentTime, using mSequenceNumber) but they're all not perfect so I was wondering if there's any current way to get the session time and if not, can it possibly be added?

    Ideally this would be a timer that starts from when lights go green and keeps counting up until the last driver finishes
     
  2. 2ndLastJedi

    2ndLastJedi Free speech matters AMS2 Club Member

    Joined:
    Sep 7, 2016
    Messages:
    4,906
    Likes Received:
    2,150
    [SessionTimeLeft] works fine in SimHub. I think that"s what you want.
     
  3. IEatRocks

    IEatRocks New Member

    Joined:
    Mar 18, 2022
    Messages:
    2
    Likes Received:
    0
    Wouldn't that only give the remaining time in a timed race? Theres a variable in the shared memory called mEventTimeRemaining which I'm assuming does the same thing. The problem is that it doesn't work well since it will hit 0 when the timed session hits 0, but there is still time for the drivers to finish their laps and that's not an option for lap races
     

Share This Page