• Welcome to MX Bikes Official Forum. Please login or sign up.
 
July 14, 2020, 12:10:15 PM

News:

MX Bikes beta14e available! :)


Output Plugins

Started by PiBoSo, April 21, 2014, 11:35:40 PM

Previous topic - Next topic

HornetMaX

Quote from: PiBoSo on August 29, 2018, 01:59:44 PM

Example source code updated to the latest interface.
Minor: many fields (e.g. m_iSession, m_iSessionState, m_iReason)  lack the comment/descritpion in many race structures.
For some is no biggie, as the field is described elsewhere, others I just take them from GPB :)



PiBoSo


Thank you for the report.

HornetMaX

Another quirk I just noticed: in MXB m_iSessionNumLaps in SPluginsRaceSession_t dopesn't seem to be set, it's always zero.
Seems to work fine in GPB however.

PiBoSo

Quote from: HornetMaX on September 06, 2018, 01:06:50 AM
Another quirk I just noticed: in MXB m_iSessionNumLaps in SPluginsRaceSession_t dopesn't seem to be set, it's always zero.
Seems to work fine in GPB however.

Thank you for the report.
The fix will be integrated in the next update.

PiBoSo


Example source code updated to add more structure members descriptions.

PiBoSo


Example source code updated with the latest structure members descriptions.

PiBoSo


Example source code updated with the latest structure members descriptions, to add straight rhythm info.

HornetMaX

One small request: could you document what exactly is in the argument _pRaceData of TrackCenterline ?

__declspec(dllexport) void TrackCenterline(int _iNumSegments,SPluginsTrackSegment_t *_pasSegment,void *_pRaceData)
My understanding is that you have some floats indicating the position along the centerline of the start/finish line, then the split points and the speed trap.

Is it correct to assume (as not documented) that:
  • GPB has 1x start line, 3x splits, 1x speed trap
  • MXB has 1x start line, 2x splits, 0x speed trap
  • WRS has 1x start line, 2x splits, 1x speed trap
  • KRP has 1x start line, 2x splits, 1x speed trap

PiBoSo


The "_pRaceData" input is briefly documented in the TrackCenterline function comment:
"_pRaceData is a pointer to a float array with the longitudinal position of the start / finish line and splits."

There indeed are two split lines, with the only exception being GP Bikes with three.
Therefore, in the case of MX Bikes, "_pRaceData" is a pointer to an array of three float values.

Example source code updated to remove an incorrect reference to a "speed trap" line.