Docs / Routes and rail / Trolleybuses
Testing
These environment variables help when building a wire or a vehicle. See Environment variables for the full list.
| Variable | Does |
|---|---|
OMSI_TROLLEY_FILE |
Use this trolley.txt instead of the map's |
OMSI_TROLLEY_UP=1 |
Put the poles on the wire by themselves (after 8 s) |
OMSI_TROLLEY_HANDS |
Script hands, for example 2-4:raise:01;12-14:pull:0 (seconds, raise or pull, poles) |
OMSI_TROLLEY_DEAD=2,3 |
Take sections 2 and 3 off the supply |
OMSI_TROLLEY_DEAD_AT=x,y,r;... |
Make dead stretches (with an insulator at each end) on a map without real ones |
OMSI_DEBUG_TROLLEY=1 |
Log the gear every second (=0.25 for four times as often), every pole event and every arc. Also draws a marker, tongue and lamp at each switch of a trolley.txt (green straight, amber to the branch) |
An offscreen test run (see Command line):
OMSI_TROLLEY_FILE=trolley.txt OMSI_TROLLEY_UP=1 OMSI_DEBUG_TROLLEY=1 OMSI_AUTOPILOT=40 \
openomsi --map maps/<map>/global.cfg --bus Vehicles/<bus>.bus --offscreen out.png \
--drive 30 --spawn x,y,heading --view outside --snapshots 14.5Something wrong or missing? Fix it on GitHub or open an issue.