BVEStation

Author Topic: openBVE DLL development?  (Read 5014 times)

Offline VolvoOlympian

  • New Recruit
  • *
  • Posts: 4
  • Gender: Male
  • BVEStation Member
    • View Profile
openBVE DLL development?
« on: February 06, 2015, 02:24:06 am »
Is it possible to create a simple DLL that listens to the F6 key press and then plays a sound after 1000ms?
I have no experience in this and I couldn't find any guides on the Internet.

Would be glad if someone could help me get started in this?

Offline ipac

  • Head Admin
  • Dispatcher
  • ******
  • Posts: 646
    • View Profile
Re: openBVE DLL development?
« Reply #1 on: February 06, 2015, 07:09:30 pm »
Are you talking about developing for trains?  There are a handful of train plugins out there that use DLL's, but they are no longer encouraged, because of backwards compatibility.

Take a look at our wiki for an API reference under Plugins.  http://wiki.bvestation.com/index.php/Main_Page  Unfortunately, not many of us have experience with it, but if you do run into issues, we'll try to help as much as we can.

The v1.4.3 source code appears to be using the new plugin system, but I myself haven't explored that section of the code.
« Last Edit: February 06, 2015, 07:13:32 pm by ipac »
BVEStation.

Offline VolvoOlympian

  • New Recruit
  • *
  • Posts: 4
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: openBVE DLL development?
« Reply #2 on: February 08, 2015, 03:32:47 am »
Are you talking about developing for trains?  There are a handful of train plugins out there that use DLL's, but they are no longer encouraged, because of backwards compatibility.

Take a look at our wiki for an API reference under Plugins.  http://wiki.bvestation.com/index.php/Main_Page  Unfortunately, not many of us have experience with it, but if you do run into issues, we'll try to help as much as we can.

The v1.4.3 source code appears to be using the new plugin system, but I myself haven't explored that section of the code.
Yes, train plugins.

Thanks a lot for the excellent wiki page there, I guess I would implement the IRunTime interface in C# .NET then. But I still have one question, how do I hook up the C# plugin with a train?

Offline HijauKuda

  • Conductor
  • **
  • Posts: 207
  • Gender: Male
  • BVEStation Member
    • View Profile
Re: openBVE DLL development?
« Reply #3 on: February 08, 2015, 04:21:45 am »
Sir VolvoOlympian
If you do wish to learn the construction of the DLL plugin for the trains,
you may wish to speak with Sir Chris Lees, as he is now constructing and testing new DLL plugin.
Do see these website pages for more information on this subject.
http://www.bvecornwall.co.uk/wordpress/bvec_ats-design-details/
http://bveworldwide.unlimitedboard.com/t1022-alpha-os_ats-in-c

Good day and night for you