https://wiki.bvestation.com/index.php?title=Plugins&feed=atom&action=historyPlugins - Revision history2024-03-29T07:31:31ZRevision history for this page on the wikiMediaWiki 1.24.1https://wiki.bvestation.com/index.php?title=Plugins&diff=34&oldid=prevKevin: Created page with "<font size="small"><font face="sans-serif"> <font size="+2" color="#0080ff">Train plugins</font><br /> {| style="border: 0px currentColor; margin-right: 10pt; margin-left: 1..."2015-02-07T00:06:27Z<p>Created page with "<font size="small"><font face="sans-serif"> <font size="+2" color="#0080ff">Train plugins</font><br /> {| style="border: 0px currentColor; margin-right: 10pt; margin-left: 1..."</p>
<p><b>New page</b></p><div><font size="small"><font face="sans-serif"><br />
<br />
<font size="+2" color="#0080ff">Train plugins</font><br /><br />
<br />
{| style="border: 0px currentColor; margin-right: 10pt; margin-left: 10pt"<br />
| <font size="-1" color="#808080"></font><br />
|}<br />
<br />
<br />Train plugins allow to change the runtime behavior of trains to some degree. Things you can do include displaying custom indicators in the panels, playing custom sounds and overriding the handles the driver originally set. Plugins can be used to simulate safety equipment such as ATS or ATC, among other things.<br /><br /><br />
<br />
{|<br />
|- style="height: 4px"<br />
|<br />
|}<br />
<br />
<font size="+1" color="#0080ff">■ Available forms of plugins</font><br />
<br />
----<br />
<br />
{| style="border: 0px currentColor; margin-right: 10pt; margin-left: 10pt"<br />
| <font size="-1" color="#808080"></font><br />
|}<br />
<br />
<br />[[Train Plugin API (IRuntime)|'''.NET assemblies:''']]<br />This is the only officially endorsed form of plugin. The plugins are .NET assemblies and should be designed to be cross-platform-compatible without recompilation. You can choose from a variety of programming languages, including C# and Visual Basic .NET, among many others that target the .NET Framework.<br /><br />[[Win32 DLLs| '''Win32 DLLs:''']]<br />This form of plugin is retained for backward compatibility with BVE Trainsim, but is no longer officially endorsed because these plugins can only run on Microsoft Windows. They are usually developed in C/C++. Given the cross-platform alternative, please develop .NET assemblies from now on.<br /><br /><br />
<br />
{|<br />
|- style="height: 4px"<br />
|<br />
|}<br />
<br />
<font size="+1" color="#0080ff">■ Setting up a train to using a plugin</font><br />
<br />
----<br />
<br />
{| style="border: 0px currentColor; margin-right: 10pt; margin-left: 10pt"<br />
| <font size="-1" color="#808080"></font><br />
|}<br />
<br />
You will need to ship the plugin somewhere in your train folder and configure the path to your plugin inside the [[ats.cfg]] file. Please note that for .NET assembly train plugins, you should '''not''' ship OpenBveApi.dll along with your plugin.<br />
<br />
</font></font></div>Kevin