openOMSI GitHub Discord

Docs / Reference / OMSI_* environment variables

Set-up

3 min readGenerated from the sourcedocs/DEBUG_FLAGS.md

Name Type Default Read Crates Description
OMSI_AMBIENCE_DIR text - use soundscape The folder of the ambience's recordings (its pack.json), instead of ambience beside the program or in ~/.openomsi.
OMSI_AVATARS_DIR text - use platform The folder of the passenger avatars (its pack.json), instead of avatars beside the program or in ~/.openomsi.
OMSI_BACKEND text settings use app, app-mx vulkan, dx12, metal, gl or angle (dx11, d3d11; Windows): the graphics API tried first (overrides the settings). Set at runtime by the launcher and on Android.
OMSI_CLOUDFLARED text - use net Path of the cloudflared binary for the LAN tunnel (searched after the game's folder, before the PATH).
OMSI_CONTENT text beside the game use app, app-mx, cfg, launcher-core, sim The content folder (mods, archives, screenshots). Set at runtime on Android and iOS.
OMSI_CONTENT_ZIP text - use cfg Extra content archives, separated like PATH (as --content-zip).
OMSI_GUARD_STATE text - use guard, launcher-api Set by the start guard for the process it notes: : (what the watcher reads).
OMSI_HEALTH_URL text built-in use platform Another list of broken releases (URL or file:///...json) for the start guard instead of release/health.json on GitHub.
OMSI_INSTANCE text - use app, app-mx, lan, launcher-core The id of a game instance started by the launcher (set for the child process).
OMSI_LAN_IP text - use net a.b.c.d[,e.f.g.h]: LAN addresses to offer first (when the detection gets them wrong).
OMSI_LAUNCHER text - use app, app-mx, guard Program a plain start opens as the launcher instead of the desktop launcher (openomsi-launcher-app) beside the game.
OMSI_OFFICIAL_KEY text - use lan File of the official server's signing key.
OMSI_PLUGIN_HOST32 text beside the game use plugin Path of omsi-plugin-host32.exe.
OMSI_PLUGIN_PROCESS_ALLOW text none use plugin Optional native process preapproval: absolute path to a JSON manifest binding plugin content and in-folder helpers to SHA256 hashes. The interactive game otherwise asks the player. Changes revoke consent; packages must declare process. Approved programs run with the game account permissions.
OMSI_PRESENCE_URL text built-in use platform Base URL of the presence ("playing now") service.
OMSI_ROOT text found use app, app-mx, lan, launcher-core, o3d, sim The OMSI 2 installation folder (also the content root for tests that need real content).
OMSI_SAFE_GPU num 0 use app, app-mx Restarts after a lost graphics device: lighter on the card each time. Set at runtime on Android and by the restart.
OMSI_SAFE_MODE bool off use guard, launcher-api, render, render-mx Safe mode, set by the start guard after failed starts: the basic render pipelines and no plugins.
OMSI_SCREEN_AT text - once app, app-mx, launcher-core x,y: the screen (a point on the desktop, pixels) the game window opens on; the launcher sets it to where it stands.
OMSI_TOBII_DLL text - use input The Tobii Stream Engine DLL to load instead of the Tobii Experience's.
OMSI_TOMORROW_API_KEY text private key file use app, app-mx, platform Private Tomorrow.io API key for map-selected weather; never include it in map configs or logs.
OMSI_TOMORROW_CACHE_DIR text settings/weather-cache use platform Private Tomorrow.io response cache and shared request-budget directory.
OMSI_TOMORROW_KEY_FILE text settings/tomorrow-api-key.txt use app, app-mx, platform Private text file containing the player's Tomorrow.io API key.
OMSI_TROLLEY_FILE text - use app, app-mx The overhead wire description (trolley.txt) to use instead of the map's own.
OMSI_UPDATE_URL text built-in use app, app-mx, platform Another release description (URL or file:///...json) for the update check.
OMSI_WINE text PATH use plugin The Wine binary for Windows plugins.

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

↑↓ to move↵ to open