• Welcome to MX Bikes Official Forum. Please login or sign up.
 
March 28, 2024, 05:22:17 PM

News:

MX Bikes beta18j available! :)


Output Plugins

Started by PiBoSo, April 21, 2014, 11:35:40 PM

Previous topic - Next topic

PiBoSo

April 21, 2014, 11:35:40 PM Last Edit: June 14, 2018, 10:31:02 PM by PiBoSo

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.

PiBoSo


Plugins interface updated.

PiBoSo


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

Ruubs

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.

PiBoSo

Quote from: Sandbiter on September 17, 2014, 07: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.

Input plugin example uploaded. Thank you for the report.

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

Hmmm ... GetModDataVersion() still returning 4 ?

PiBoSo


Thank you for the report.
Updated again.

Azazel

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

Quote from: Azazel on April 19, 2018, 08: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

Example source code updated to the latest interface.

PiBoSo


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

HornetMaX

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


Example source code updated to the latest interface.