Docs / Plugins / Lua plugins
Tips
- Watch
game.log(in~/.openomsi/) while you write a plugin: everyomsi.logline and every error is there. OMSI_WATCH_VARS=Velocity,throttlelogs changes of bus variables - useful to find the names a bus uses; the bus's.oscscripts list them all,omsi.vars()too.- Keep
on_framelight; useomsi.every,omsi.watchand the events for everything that does not need every frame. Read what you need (omsi.bus.velocity(),omsi.info_value("delay")) rather than whole tables every frame. omsi.ui.updatechanges one element of a panel; setting the whole panel every frame costs more.
Something wrong or missing? Fix it on GitHub or open an issue.