• Welcome to PiBoSo Official Forum. Please login or sign up.
 
May 21, 2019, 08:54:26 am

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.
"Obviously your ambition outweighs your talent".

HornetMaX

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

PiBoSo


Example source code updated to the latest interface.
"Obviously your ambition outweighs your talent".

PiBoSo


Example source code updated to fix a couple comments about penalties.
"Obviously your ambition outweighs your talent".

PiBoSo


Example source code updated to the latest interface.
Removed the "semaphore" session state only.
"Obviously your ambition outweighs your talent".

PiBoSo


Example source code updated to the latest interface.
"Obviously your ambition outweighs your talent".

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.
"Obviously your ambition outweighs your talent".

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.
"Obviously your ambition outweighs your talent".

HornetMaX

Thanks a lot for the infos !

PiBoSo


Example source code updated to the latest interface.
"Obviously your ambition outweighs your talent".

PiBoSo


Please note that, starting with Beta13, output plugins must be compiled for 64 bit.
"Obviously your ambition outweighs your talent".