• Welcome to PiBoSo Official Forum. Please login or sign up.
 

WRS bug in SessionState ?

Started by HornetMaX, September 22, 2016, 07:42:32 PM

Previous topic - Next topic

HornetMaX

@PiBoSo: in a race (standing start, no sighting lap, no warmup lap), the SessionState goes from 256 (Pre-Start) to 32 (Semaphore), but when the race starts, it doesn't go to 16 (In Progress). It works fine for KRP.


HornetMaX

October 08, 2016, 08:51:23 AM #1 Last Edit: October 08, 2016, 09:01:03 AM by HornetMaX
It also happens in GPB beta9c.

EDIT: to be more precise, there's no call to RaceSessionState() when the semaphore goes green (and the race starts) and in subsequent calls (e.g. to RaceClasification()) the state is stuck to 32 (semaphore) instead of being at 16 (in progress), until the race is over (here we correctly get a call to RaceSessionState() with state at 512 = race over).

PiBoSo

Thank you for the report.
The source of the issue has been found, but the solution is not as easy as it may seem.
A workaround has been added, and will be integrated in the future releases ( hint: the "starting lights" state will disappear ).
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

Quote from: PiBoSo on October 12, 2016, 08:45:35 PM
Thank you for the report.
The source of the issue has been found, but the solution is not as easy as it may seem.
A workaround has been added, and will be integrated in the future releases ( hint: the "starting lights" state will disappear ).
Thanks. My current workaround is exactly along these lines (state = 16 or 32 --> consider the race in progress).