openOMSI GitHub Discord

Docs / Plugins / Lua plugins

Where plugins live

1 min readEdit this pagedocs/PLUGINS.md

Path The plugin's name Its data folder
plugins/<name>.lua a one-file plugin plugins/<name>.data/
plugins/<name>/main.lua a plugin with several files: require("util") loads plugins/<name>/util.lua (or util/init.lua), and its pictures, sounds and data files sit beside them plugins/<name>/data/

Other .lua files are not started on their own, so a folder plugin's modules stay modules. OMSI_NO_PLUGINS=1 leaves every plugin out, Lua ones included.

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

↑↓ to move↵ to open