• Welcome to MX Bikes Official Forum. Please login or sign up.
 
August 12, 2020, 11:51:26 AM

News:

MX Bikes beta14e available! :)


Input Plugins

Started by PiBoSo, April 21, 2014, 11:37:42 PM

Previous topic - Next topic

PiBoSo

April 21, 2014, 11:37:42 PM Last Edit: April 09, 2019, 04:30:32 PM by PiBoSo
It is possible to write a DLL that sends input data to MX Bikes.

The interface 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 DLI and it must be copied to the "plugins" directory in MX Bikes installation folder.

PiBoSo


Source code updated to the latest interface.

PiBoSo


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

Azazel

Hi,

Is it possible to add more details to explain how to use this plugin.

I think to use for example, to change automatically camera in game to using SControllerData_t.

I try to use it, but I think I misunderstood what it's all about.

Thanks


Hernan

Hi Everyone,

I am trying to work with this plugin to build a real bike interface.
But I cannot achieve to do this, because I cannot build a dll with my visual studio.

Could you tell me about how to make a project with Visual Studio to make a dll successfully?

When I put my .dll (64x) into plugins directory and rename it as ".dli", the Simulator does not reconize it or I think that is what happens.

For example in order to test this, I wrote an fopen function to write some file when Startup() function it's triggered and it never writes the file. :'(

How do I do this?
Thank you so much.