• Welcome to PiBoSo Official Forum. Please login or sign up.
 
November 30, 2022, 08:13:11 PM

News:

World Racing Series beta14 available! :)


Output plugins

Started by PiBoSo, February 17, 2013, 06:19:35 PM

Previous topic - Next topic

PiBoSo


Example source code updated to the latest interface.

The only change is the addition of m_fTrackPos to SPluginsRaceTrackPosition_t
Since this structure was probably still unused, no changes have been made to version checking, to preserve compatibility.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

Makes sense. Thx for adding m_fTrackPos, it will be useful !

PiBoSo


Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Example source code updated to fix a couple comments about penalties.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Example source code updated to the latest interface.
Removed the "semaphore" session state only.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

Quote from: PiBoSo on February 17, 2017, 10:42:12 AM

Example source code updated to the latest interface.
Thanks. Any special logic with the invalid lap indicator ? 0 = valid, anything else = invalid ?
Also, I think before the laptime was zero (or negative) for invalid laps: has this changed ?

PiBoSo

Quote from: HornetMaX on February 17, 2017, 11:05:04 AM
Quote from: PiBoSo on February 17, 2017, 10:42:12 AM

Example source code updated to the latest interface.
Thanks. Any special logic with the invalid lap indicator ? 0 = valid, anything else = invalid ?
Also, I think before the laptime was zero (or negative) for invalid laps: has this changed ?

During testing and practice sessions, an invalid lap is still reset to zero.
During races, invalid laps are marked with m_iInvalid set to 1.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

Quote from: PiBoSo on February 17, 2017, 09:13:16 PM
During testing and practice sessions, an invalid lap is still reset to zero.
During quali too I guess, right ?

Quote from: PiBoSo on February 17, 2017, 09:13:16 PM
During races, invalid laps are marked with m_iInvalid set to 1.
So you will have a positive m_iLapTime (not zeroed out) but m_iInvalid set to 1 ?
And will the invalid lap count in the race ? I mean, I've done 4 laps, 6 to go. If my 5th lap is invalid, do I still have 6 laps to go ?

Also how does one triggers an invalid lap in a race ? Missing a checkpoint ?

PiBoSo

Quote from: HornetMaX on February 17, 2017, 10:07:12 PM
Quote from: PiBoSo on February 17, 2017, 09:13:16 PM
During testing and practice sessions, an invalid lap is still reset to zero.
During quali too I guess, right ?

Right.

Quote
Quote from: PiBoSo on February 17, 2017, 09:13:16 PM
During races, invalid laps are marked with m_iInvalid set to 1.
So you will have a positive m_iLapTime (not zeroed out) but m_iInvalid set to 1 ?
And will the invalid lap count in the race ? I mean, I've done 4 laps, 6 to go. If my 5th lap is invalid, do I still have 6 laps to go ?

Yes.
Yes, it will count for the race, but a time penalty will be added.

Quote
Also how does one triggers an invalid lap in a race ? Missing a checkpoint ?

Yes, missing a checkpoint.
The lap is not registered at all if a split or the speedtrap are missed.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

HornetMaX

Thanks a lot for the infos !

PiBoSo


Example source code updated to the latest interface.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".

PiBoSo


Please note that, starting with Beta13, output plugins must be compiled for 64 bit.
"La perfezione non è il nostro obiettivo, è la nostra tendenza".