• Welcome to Kart Racing Pro Official Forum. Please login or sign up.
 
March 28, 2024, 11:35:53 AM

News:

Kart Racing Pro release13e available! :)


Output plugin (not RaceData) pitfall

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

Previous topic - Next topic

HornetMaX

@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 :)

MaX.
Two wheels, more than enough.