@PiBoSo: with beta15 in practice mode (offline testing, m_iType is 1 in SPluginsRaceEvent_t), when RaceSession is called I seem to have m_iSession equal to 1, while in the comment of your output plugin code you have:
int m_iSession; /* testing: always 0. Race: 0 = waiting; 1 = practice; 2 = qualify; 3 = warmup; 4 = race */
Thank you for the report.
Output plugins example source code updated: http://forum.piboso.com/index.php?topic=33.msg95993#msg95993
For MX Bikes, too: http://forum.mx-bikes.com/index.php?topic=96.msg34586#msg34586
Thx !!