• Welcome to Kart Racing Pro Official Forum. Please login or sign up.
 
November 20, 2019, 06:09:31 pm

News:

Please read the FORUM RULES


Output Plugins

Started by PiBoSo, June 19, 2010, 10:40:35 pm

Previous topic - Next topic

PiBoSo

June 19, 2010, 10:40:35 pm Last Edit: April 09, 2019, 12:17:15 pm by PiBoSo
It is possible to write a DLL that receives data from the simulated kart in realtime.

Example source code can be downloaded at http://www.kartracing-pro.com/?page=downloads

Please note that all function calls are blocking, so control should be returned to simulation as soon as possible to avoid framerate issues.

The DLL must be compiled for 64 bit.

The plugin must have the file extension renamed to DLO and it must be copied to the "plugins" directory in Kart Racing Pro installation folder.

NOTE: a license is not needed to add plugins.

PiBoSo

October 30, 2011, 01:23:57 am #1 Last Edit: October 30, 2011, 01:49:26 am by PiBoSo
Example source code updated to the latest interface.

PiBoSo

October 05, 2012, 02:41:44 pm #2 Last Edit: October 05, 2012, 03:21:18 pm by PiBoSo
Example source code updated to the latest interface and first post updated.

PiBoSo

Example source code updated to the latest interface ( backward compatible with the previous one ), that adds the possibility to draw on the screen.

PiBoSo


Example source code updated to the latest interface ( backward compatible with the previous one ), that adds the possibility to get the track centerline.

Russell Hodgson

Can you add the ability to get the percentage of the way round the track the kart is at any given time?
Z1 Dashboard software: dashboards, track maps, telemetry, timing & scoring and more.

Z1 Analyzer software: the telemetry analysis software aimed at improving the most important part of the car - you the driver!

http://www.Z1Dashboard.com

PiBoSo

Quote from: Russell Hodgson on February 24, 2014, 07:06:25 pm
Can you add the ability to get the percentage of the way round the track the kart is at any given time?


Percentage = 100 * _fPos
_fPos is a parameter of RunTelemetry

Russell Hodgson

Quote from: PiBoSo on February 24, 2014, 08:11:22 pm
Quote from: Russell Hodgson on February 24, 2014, 07:06:25 pm
Can you add the ability to get the percentage of the way round the track the kart is at any given time?


Percentage = 100 * _fPos
_fPos is a parameter of RunTelemetry


Brilliant.  Thanks!
Z1 Dashboard software: dashboards, track maps, telemetry, timing & scoring and more.

Z1 Analyzer software: the telemetry analysis software aimed at improving the most important part of the car - you the driver!

http://www.Z1Dashboard.com

PiBoSo


Example source code updated to the latest interface.

PiBoSo


Example source code updated to the latest interface.

PiBoSo


Example source code updated to the latest interface.

HornetMaX

Quote from: PiBoSo on July 20, 2015, 09:41:54 pm

Example source code updated to the latest interface.

Uh, is this (and the updates for proxy and input plugins) for the future beta14 ?

Some interesting stuff !!

MaX.
Two wheels, more than enough.

Russell Hodgson

Would it be possible in future versions of the API to get information in the competitors?  I'd like to see for each competitor the following: the driver name; the type of kart being driven; where they are on track (ie percentage of the way round); whether they are in the pits or on track; their current fastest lap time; the current position in the session (ie 1st, 2nd, 3rd, etc).

Thanks!
Z1 Dashboard software: dashboards, track maps, telemetry, timing & scoring and more.

Z1 Analyzer software: the telemetry analysis software aimed at improving the most important part of the car - you the driver!

http://www.Z1Dashboard.com

HornetMaX

Quote from: Russell Hodgson on December 16, 2015, 11:07:21 pm
Would it be possible in future versions of the API to get information in the competitors?  I'd like to see for each competitor the following: the driver name; the type of kart being driven; where they are on track (ie percentage of the way round); whether they are in the pits or on track; their current fastest lap time; the current position in the session (ie 1st, 2nd, 3rd, etc).

Most of this is already there in beta14, check all the SPluginsRace*_t data structures (http://www.kartracing-pro.com/downloads/krp_example.c).

The "where they are on track (ie percentage of the way round)" has been recently added to WRS beta8, so it should make its way in KRP too I guess.

One thing I think is still missing (even in WRS beta8) is this: http://forum.kartracing-pro.com/index.php?topic=5478.msg42582#msg42582
Two wheels, more than enough.

Russell Hodgson

As far as I can tell that information is only there for the kart I am driving.  I want to see if for every kart on track.  Am I missing something in the API?
Z1 Dashboard software: dashboards, track maps, telemetry, timing & scoring and more.

Z1 Analyzer software: the telemetry analysis software aimed at improving the most important part of the car - you the driver!

http://www.Z1Dashboard.com