Author Topic: Output Plugins  (Read 12823 times)

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Output Plugins
« on: April 21, 2014, 09:35:40 PM »

It is possible to write a DLL that receives data from the simulated bike in realtime.

Example source code can be downloaded at http://www.mx-bikes.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 MX Bikes installation folder.

NOTE: a license is not needed to add plugins.
« Last Edit: June 14, 2018, 08:31:02 PM by PiBoSo »

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #1 on: September 03, 2014, 10:05:27 PM »

Plugins interface updated.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #2 on: September 17, 2014, 12:50:01 PM »

Example source code updated to add info about track centerline data.

Sandbiter

  • Hero Member
  • Sr. Member
  • *****
  • Posts: 1263
    • View Profile
    • RK Web development
Re: Output Plugins
« Reply #3 on: September 17, 2014, 05:37:33 PM »
Thanks for this Piboso.

For some reason I can't download the input_int.c file though. When I click on the link on the downloads page I get an error that the page couldn't be found, and when I try to save it, it tells me that there isn't any file to save.
If you enjoy my work, please consider making a donation:


PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #4 on: September 17, 2014, 06:55:49 PM »
Thanks for this Piboso.

For some reason I can't download the input_int.c file though. When I click on the link on the downloads page I get an error that the page couldn't be found, and when I try to save it, it tells me that there isn't any file to save.

Input plugin example uploaded. Thank you for the report.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #5 on: February 29, 2016, 06:18:16 PM »

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #6 on: December 22, 2016, 08:37:29 AM »

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #7 on: March 15, 2017, 10:00:01 PM »

Example source code updated to the latest interface.

HornetMaX

  • Sr. Member
  • ****
  • Posts: 492
    • View Profile
Re: Output Plugins
« Reply #8 on: March 16, 2017, 06:39:20 PM »
Hmmm ... GetModDataVersion() still returning 4 ?

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #9 on: March 16, 2017, 07:51:24 PM »

Thank you for the report.
Updated again.

Azazel

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: Output Plugins
« Reply #10 on: April 19, 2018, 06:23:49 AM »
Hi everyone,

I need to know when the wheels are in the air.
I searched in the plugin, but i don't found this information.
Is it possible to add this on the next version?

Thanks

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #11 on: June 14, 2018, 08:12:27 PM »
Hi everyone,

I need to know when the wheels are in the air.
I searched in the plugin, but i don't found this information.
Is it possible to add this on the next version?

Thanks

Example source code updated to the latest interface.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #12 on: June 14, 2018, 08:30:50 PM »

Please note that, starting with Beta8, output plugins must be compiled for 64 bit.

HornetMaX

  • Sr. Member
  • ****
  • Posts: 492
    • View Profile
Re: Output Plugins
« Reply #13 on: June 14, 2018, 11:28:01 PM »
Just compiled my MaxHUD for MXB x64: took me 2 hours to wrestle with Visual Studio configurations and platforms  ::)  ::)  ::) but code compiled fine without any change (*) and it runs just fine. Woot !!

(*) Well, of curse I have a bunch of size_t --> int warnings, no biggie.

PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 992
    • View Profile
Re: Output Plugins
« Reply #14 on: August 29, 2018, 11:59:44 AM »

Example source code updated to the latest interface.