Docs / Reference
OMSI_* environment variables
Every switch, with its type, default and where it is read.
Generated from crates/omsi-cfg/src/flags.rs - edit the list there and run
OMSI_FLAGS_BLESS=1 cargo test -p omsi-cfg flags to write this file again.
- Type -
bool: on when set to anything (0and empty included);num: the whole value parsed as a number;text: a path, a list or a mode. - Kind -
debug: more logging, dumps and traces only;test: drives a test, check pass or offscreen run, or injects a fault;switch: A/B or kill switch;tuning: a real setting for one run;setup: folders, programs, URLs;build: read when compiling. - Read -
onceper process;use: each time the code passing it runs (start-up, loading, per step);frame: every frame inRenderer::render_inner;test: tests and examples only.
Values are read once per process and cached (omsi_cfg::env): changing the environment of a running game has no
effect. On Android, openOMSI/env.txt holds NAME=value lines that are set before the game starts.
Chapters
| 1 | Debug output | 9 min | |
| 2 | Test hooks | 11 min | |
| 3 | A/B and kill switches | 8 min | |
| 4 | Tuning | 2 min | |
| 5 | Set-up | 3 min | |
| 6 | Build | 1 min |
Something wrong or missing? Fix it on GitHub or open an issue.