• Welcome to Kart Racing Pro Official Forum. Please login or sign up.
November 23, 2020, 06:06:27 PM


Kart Racing Pro release11f available! :)

Output plugin (not RaceData) pitfall

Started by HornetMaX, August 01, 2015, 12:37:29 AM

Previous topic - Next topic


@Piboso: just realized that in the "classical" output plugin interface (i.e. not the new RaceData stuff) there's a pitfall.

In SPluginsKartSession_t the filed m_iSession has this comment (for KRP):

/* testing: always 0. Race: 1 = practice; 2 = qualify; 3 = pre-final; 4 = final. Challenge: 0 = waiting; 1 = practice; 2 = race */

But there's no way to know in which event type one is (testing, race, challenge).

Notice that for  GPB, MXB and WRS the problem is not there (as the interpretation of the fields does not depend on the event type).

The new racedata stuff handles the thing properly, that's why I noticed :)

Two wheels, more than enough.