PiBoSo Official Forum

World Racing Series => Bug Reports => Topic started by: HornetMaX on September 22, 2016, 07:42:32 PM

Title: WRS bug in SessionState ?
Post by: HornetMaX on September 22, 2016, 07:42:32 PM
@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.

Title: Re: WRS bug in SessionState ?
Post by: HornetMaX on October 08, 2016, 08:51:23 AM
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).
Title: Re: WRS bug in SessionState ?
Post by: 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 ).
Title: Re: WRS bug in SessionState ?
Post by: HornetMaX on October 12, 2016, 08:52:51 PM
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).