PiBoSo Official Forum

GP Bikes => Bug Reports => Topic started by: HornetMaX on October 09, 2016, 08:05:55 PM

Title: Output plugin RaceAddEntry() calls
Post by: HornetMaX on October 09, 2016, 08:05:55 PM
[not sure it's a bug, maybe it's just me misunderstanding the logic]

When I start an offline testing session (but it's the same online), the game calls RaceEvent() and then RaceAddEntry() multiple times (one per rider), fine.
After that there's a call to RaceSession() (fine) and again calls to RaceAddEntry().

Is it normal that there're two calls to RaceAddEntry() for each rider ?
I store the entries somewhere, am I supposed to clear them at each RaceSession() call ?

I thought RaceAddEntry is called at the very beginning and then only when a new rider joins.
Title: Re: Output plugin RaceAddEntry() calls
Post by: PiBoSo on October 09, 2016, 09:43:45 PM

The first batch of calls to RaceAddEntry includes all entries.
The second wave of calls is for the connected clients only ( "m_iUnactive" is 1 ).
Title: Re: Output plugin RaceAddEntry() calls
Post by: HornetMaX on October 09, 2016, 10:38:56 PM
Quote from: PiBoSo on October 09, 2016, 09:43:45 PM

The first batch of calls to RaceAddEntry includes all entries.
The second wave of calls is for the connected clients only ( "m_iUnactive" is 1 ).
So 1st bacth = all (including Unactive ones), 2nd = active only (unactive = 0) ?
Title: Re: Output plugin RaceAddEntry() calls
Post by: PiBoSo on October 09, 2016, 11:24:30 PM
Quote from: HornetMaX on October 09, 2016, 10:38:56 PM
Quote from: PiBoSo on October 09, 2016, 09:43:45 PM

The first batch of calls to RaceAddEntry includes all entries.
The second wave of calls is for the connected clients only ( "m_iUnactive" is 1 ).
So 1st bacth = all (including Unactive ones), 2nd = active only (unactive = 0) ?

Yes. Sorry for the error in the previous message.
Title: Re: Output plugin RaceAddEntry() calls
Post by: HornetMaX on October 10, 2016, 07:12:20 AM
Clear, thx !