Docs / Making content / Modding overview
Trolleybuses
OMSI 2 has no overhead wire of its own. Its trolleybus add-ons ship a plugin DLL that reads Omsi.exe's memory and cannot run in openOMSI. openOMSI simulates the wire itself. A trolleybus add-on needs two things:
- In the vehicle's
.bus: a[trolley_pole]per pole (roof hinge, boom length, spring force, mass, retriever and motor) and a drive,[trolley_rheostat]or[trolley_async].- A vehicle with its own scripted drive just adds the poles. Its torque then works on the wire and stops without it.
- A model with its own pole meshes says
visible 0and rotates them by the game'sTrolley_Pole<k>_Elevand_Azimvariables.
- For the map: a
trolley.txtbeside itsglobal.cfg, or in a mod'smaps/<name>/folder for a map that has none. It lists the wire spans with their sag, the sections and dead sections, the insulators and the switches.
The map's masts and hangers stay the map's own objects. Every key and variable is on the Trolleybuses page. Converting existing add-ons: Trolleybus mods.
Something wrong or missing? Fix it on GitHub or open an issue.