openOMSI GitHub Discord

Docs / Reference

OMSI_* environment variables

Every switch, with its type, default and where it is read.

47 min readGenerated from the sourcedocs/DEBUG_FLAGS.md

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 (0 and 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 - once per process; use: each time the code passing it runs (start-up, loading, per step); frame: every frame in Renderer::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

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

↑↓ to move↵ to open