• Welcome to PiBoSo Official Forum. Please login or sign up.
 
March 28, 2024, 10:57:56 PM

News:

World Racing Series beta14 available! :)


Output plugin RaceAddEntry() calls

Started by HornetMaX, October 09, 2016, 08:05:55 PM

Previous topic - Next topic

HornetMaX

[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.

PiBoSo


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 ).
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

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) ?

PiBoSo

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.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX