Skip to content

BVE2 BVE4 Content Specific Hacks

LX862 edited this page Feb 7, 2021 · 4 revisions

This page describes the hacks which are applied to specific BVE2 / BVE4 content, in order to maintain backwards compatibility.

These may be disabled by unchecking 'Enable hacks for buggy content' on the second page of options if you are experiencing difficulties which you believe may be related. (If disabling this option helps, please file a bug!)

Routefile developers are encouraged to specifically disable hacks, by setting the following in the options section, and fixing any resultant errors:

Options.EnableBveTsHacks 0

BVE4 Trams from Martin Finken

The values supplied in the Panel2.cfg with these trains produces a broken initial panel zoom. This is detected, and the zoom reset to something sensible.

Minobu Route: Missing Background Textures

The Minobu Route uses Track.Background declarations in the following format:

texture. background(0) minobu\Back_Mt6.bmp

This is detected during pre-processing, and the invalid space removed.

Chinese Routes (Various, including HK Metro etc.) : Train sounds not assigned correctly

Similar to the above, various Chinese routes use invalid spacing within the Train declarations.

This is detected during pre-processing, and the invalid space removed.

Campbelltown - Campden & Kurrajong Routes: Broken Object Positioning

Comments in these routes are being mis-interpreted as pitch values for objects. (Note: BVE2 did not support pitch for objects at all)

Pitch for all objects in these routefiles is reset to zero.

RW Format Routes: Missing Closing Brackets

If a command was missing the closing bracket (e.g. @rail(6,2,@rail(7,6) ) , the rest of the line would generally be ignored, until the bracket was closed. BVE2 on the other hand simply closes the bracket internally and ignores this error entirely.

If hacks are enabled, a missing single level closing bracket will be ignored. Multiple levels of missing brackets will still be errored as per before.

Same day and night time texture

Alot of OpenBVE/BVE content make use of setting the same day and night texture to make the face emissive.
This has been patched in v1.7.1.0, enabling hacks will bring back the emissive behavior.
However this is no longer endorsed, and newer content should use SetEmissiveColor for an emissive source.