openOMSI GitHub Discord

Docs / Plugins / Lua plugins

Example plugins

1 min readEdit this pagedocs/PLUGINS.md

Complete plugins to start from (each runs in the tests against a stand-in game):

Plugin What it shows
trip_panel.lua a panel with the line, the next stop and a button
navigator_map.lua the navigator's frame with its map and three cards of the plugin's own over it: the line, the next stop, the speed
dispatcher/ a dispatcher and a small career: a draggable panel with tabs, the duty's next stops in a table, a chart of the delays, pay for stops and trips kept in the storage, today's duties offered and taken with a click, settings, hotkeys
telemetry_hud.lua a HUD: the speed with a chart of the last minute, gear, rpm, fuel, passengers, the speed limit and the traffic light ahead; a warning before a red light; the values as JSON over UDP for a program beside the game
passenger_log.lua every passenger boarding the bus in game.log: age, boarding stop and destination, the ticket they will ask for (passenger_ticket, people.get)
reduced_tickets.lua every adult asks for the reduced fare instead of the full one (passenger_ticket, people.set_ticket)
weather_controller.lua the weather files as tabs, sliders for temperature, visibility and rain, snow cover, the clock moved by buttons, and a day cycle of its own

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

↑↓ to move↵ to open