Plugins
Lua plugins, compiled .oop plugins, panels, the whole omsi.* API and OMSI's own plugin DLLs.
openOMSI runs three kinds of plugins from the plugins folder of the game (and of every
content root):
Lua plugins (
.lua) - a text file, no compiler, works the same on Windows, macOS, Linux and Android, and is loaded again the moment you save it.They reach the whole game through the plugin API: the player's bus, the duty and timetable, the map, the AI traffic and the people, the weather and the clock, the camera, input, sound, panels of their own on the screen, storage, settings and the LAN session - about 270 functions and 60 events.
- Compiled plugins (
.oop) - a plugin built with the openOMSI Development Tools: Lua, or Rust (and other languages) compiled to WebAssembly. One file for every platform, run in a sandbox with only the permissions it declares (see below). - OMSI plugins (
.opl+ DLL) - the original's plugins, unchanged (see below).
The plugin API is one registry in the game (crates/omsi-plugin/src/api): every function
and event is described there once, and the reference at the end of this page
and plugin-api.json are written from it. Other plugin languages bind to
the same registry.
Chapters
| 1 | Lua plugins | 1 min | |
| 2 | Compiled plugins (.oop) | An .oop (openOMSI Plugin) is to a plugin what a DLL is to a program, but sandboxed: build output, not sources. oopc build of the openOMSI Development … | 2 min |
| 3 | The telemetry file (for programs beside the game) | A program that only wants to follow the player's bus - a fleet map, an in-vehicle terminal, a stream overlay - can read ~/.openomsi/telemetry.json (on… | 1 min |
| 4 | OMSI plugins (plugins/.opl + DLL) | What OMSI does with plugins, and how openOMSI does the same (crates/omsi-plugin, driven from crates/omsi-app/src/plugins.rs). | 6 min |
Something wrong or missing? Fix it on GitHub or open an issue.