Author Topic: Output plugins  (Read 3977 times)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #15 on: December 09, 2015, 09:54:04 PM »

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.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5494
    • View Profile
Re: Output plugins
« Reply #16 on: December 09, 2015, 10:16:17 PM »
Makes sense. Thx for adding m_fTrackPos, it will be useful !

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #17 on: September 06, 2016, 01:07:28 PM »

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #18 on: October 01, 2016, 02:10:25 PM »

Example source code updated to fix a couple comments about penalties.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #19 on: November 22, 2016, 08:29:26 PM »

Example source code updated to the latest interface.
Removed the "semaphore" session state only.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #20 on: February 17, 2017, 10:42:12 AM »

Example source code updated to the latest interface.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5494
    • View Profile
Re: Output plugins
« Reply #21 on: February 17, 2017, 11:05:04 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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #22 on: February 17, 2017, 09:13:16 PM »

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.

HornetMaX

  • Hero Member
  • *****
  • Posts: 5494
    • View Profile
Re: Output plugins
« Reply #23 on: February 17, 2017, 10:07:12 PM »
During testing and practice sessions, an invalid lap is still reset to zero.
During quali too I guess, right ?

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

  • Administrator
  • Hero Member
  • *****
  • Posts: 2083
    • View Profile
Re: Output plugins
« Reply #24 on: February 18, 2017, 10:44:10 AM »
During testing and practice sessions, an invalid lap is still reset to zero.
During quali too I guess, right ?

Right.

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

HornetMaX

  • Hero Member
  • *****
  • Posts: 5494
    • View Profile
Re: Output plugins
« Reply #25 on: February 18, 2017, 11:16:46 AM »
Thanks a lot for the infos !