Skip to content

Compatibility Notes

Christopher Lees edited this page Nov 25, 2015 · 25 revisions

Routefile Changes:

Note: These commands will not work with prior versions of OpenBVE, and whilst routefiles which use them will load, they may produce error messages or other unexpected behaviour.

Route.LoadingScreen(FileName.png)

This option allows route developers to add a custom loading screen image.

FileName.png should represent a .bmp, .png or .ace image, with a path relative to the routefile directory.

Route.DisplaySpeed(Unit,ConversionFactor)

This option allows route developers to use a custom speed in interface messages.

Unit should represent the textual string for the unit you wish to display, for example mph

ConversionFactor should represent the conversion factor between km/h and your custom unit of speed. For mph, this is 0.621371

Plugin Interface Changes:

Note: Plugins compiled for this version of OpenBVE will not work on prior versions of OpenBVE.

data.CurrentCurveRadius

Returns the current curve radius in meters at Car 0's location.

data.CurrentCant

Returns the cant value at Car 0's location.

data.CurrentPitch

Returns the pitch value at Car 0's location.

Miscellaneous Changes

The format of the controls.cfg file has changed. OpenBVE will detect this, and reset your controls assignments to default.

Attempting to use a newer controls.cfg file with versions 1.4.3.0 and prior will cause OpenBVE to crash. (This is out of my control, sorry)

Clone this wiki locally