Author Topic: Output Plugins  (Read 8413 times)

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Output Plugins
« on: June 19, 2010, 08:40:35 PM »
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 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.
« Last Edit: October 06, 2012, 01:18:04 PM by PiBoSo »

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Plugins
« Reply #1 on: October 29, 2011, 11:23:57 PM »
Example source code updated to the latest interface.
« Last Edit: October 29, 2011, 11:49:26 PM by PiBoSo »

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #2 on: October 05, 2012, 12:41:44 PM »
Example source code updated to the latest interface and first post updated.
« Last Edit: October 05, 2012, 01:21:18 PM by PiBoSo »

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #3 on: March 21, 2013, 05:29:17 PM »
Example source code updated to the latest interface ( backward compatible with the previous one ), that adds the possibility to draw on the screen.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #4 on: June 08, 2013, 09:38:26 PM »

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

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • Email
Re: Output Plugins
« Reply #5 on: February 24, 2014, 06: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?

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #6 on: February 24, 2014, 07:11:22 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

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • Email
Re: Output Plugins
« Reply #7 on: February 24, 2014, 08:58:23 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!

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #8 on: April 06, 2014, 03:36:30 PM »

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #9 on: January 02, 2015, 10:29:31 PM »

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1801
    • View Profile
    • Email
Re: Output Plugins
« Reply #10 on: July 20, 2015, 07:41:54 PM »

Example source code updated to the latest interface.

HornetMaX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Email
Re: Output Plugins
« Reply #11 on: July 22, 2015, 09:58:10 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

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • Email
Re: Output Plugins
« Reply #12 on: December 16, 2015, 10: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).

Thanks!

HornetMaX

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Email
Re: Output Plugins
« Reply #13 on: December 17, 2015, 07:52:27 AM »
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

  • Newbie
  • *
  • Posts: 36
    • View Profile
    • Email
Re: Output Plugins
« Reply #14 on: December 17, 2015, 06:30:55 PM »
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?