openOMSI GitHub Discord

Docs / Routes and rail / Trolleybuses

Checking it offscreen

1 min readEdit this pagedocs/TROLLEYBUS.md

shell
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.5

OMSI_TROLLEY_UP puts the poles on the wire by themselves (8 s), OMSI_TROLLEY_HANDS scripts hands ("2-4:raise:01;12-14:pull:0": seconds, raise or pull, poles), OMSI_TROLLEY_DEAD kills sections, OMSI_DEBUG_TROLLEY=1 logs the gear every second (set =0.25 for four times as often) with every event of the poles (a frog passed, an insulator, a dewiring and why) and every arc.

Unit tests of the wire network, the poles' contact and dewiring, the switches, the drives and the whole gear are in crates/omsi-trolley.

Something wrong or missing? Fix it on GitHub or open an issue.

↑↓ to move↵ to open