openOMSI GitHub Discord

Docs / Reference / OMSI_* environment variables

Debug output

9 min readGenerated from the sourcedocs/DEBUG_FLAGS.md

Name Type Default Read Crates Description
OMSI_AMBIENCE_DENSITY text 1 once app, app-mx The ambience's one-shots (birds, the far life, thunder, the objects' calls) this many times as often (a number), or only some of them (slot=factor,…: bird.geese=40) - what fits the place, season and hour stays the same (for demos and checks).
OMSI_AUDIO_TRACE text - once audio Write what the game asks of the mixer (every sound started, changed, stopped, the listener each frame) into this file, rounded and deterministic for offscreen recordings (see scripts/audio-trace.sh).
OMSI_BENCH_FRAMES bool off use app, app-mx With OMSI_BENCH: log every bench frame's times, not only the medians.
OMSI_DEBUG_AI_WIDE bool off use sim Log every tenth of a second an AI car standing over 1.5 m beside its way.
OMSI_DEBUG_ANIM text - once sim Log the animations of the meshes whose file name contains this text.
OMSI_DEBUG_BOARDS bool off use sim Log boarding at bus stops.
OMSI_DEBUG_CABLES bool off use sim Log every control cable value a train car reads when it changes.
OMSI_DEBUG_CAMERA num 1 once scene, scene-mx Camera arm log: 1 the types and what stops the arm, 2 also every frame.
OMSI_DEBUG_CAR num - use sim Log the state of the AI car with this id every step.
OMSI_DEBUG_CAREER bool off use career Log the jolts the career scoring counts.
OMSI_DEBUG_CAR_VARS text - use sim Log each change, per car of a train, of the script variables and strings whose name contains one of these comma-separated texts.
OMSI_DEBUG_COLLISION bool off use app, app-mx, scene, scene-mx Log the player's collision state.
OMSI_DEBUG_CONES bool off use render, render-mx, scene, scene-mx Log the light coronas and beams prepared per frame.
OMSI_DEBUG_CULL num off frame render, render-mx Log what near and in the picture is left out of the draw list, and why.
OMSI_DEBUG_DOORS bool off use sim Log the door variables of AI buses twice a second.
OMSI_DEBUG_DRAWS bool off frame render, render-mx Log how many instances changed per prepare.
OMSI_DEBUG_DRIVER bool off use scene, scene-mx Log the driver figure's settling (grips, wrists, elbows).
OMSI_DEBUG_ENHANCED num 0 once render, render-mx Enhanced main pass shows one of its terms alone (n selects it: 1 sun shadow, 2 occlusion, ...).
OMSI_DEBUG_EXPOSURE bool off use render, render-mx Read back and log the adapted exposure metering now and then.
OMSI_DEBUG_FACE text - use app, app-mx Log the avatars' faces as they are posed (the strongest expressions of the near faces, once a second); smile, open or blink also puts that expression on every face.
OMSI_DEBUG_FLICKER bool off frame render, render-mx Log near instances drawn in one frame and not the next (objects blinking).
OMSI_DEBUG_FLOAT bool off use scene, scene-mx Log objects floating over the ground while placing them.
OMSI_DEBUG_FOG_LAMPS bool off frame render, render-mx Log the fog lamp passes per frame.
OMSI_DEBUG_FOOT bool off use app, app-mx Log where the walking avatar is drawn.
OMSI_DEBUG_HUMANS bool off use app, app-mx, sim Log the people (passengers, pedestrians) and their placement.
OMSI_DEBUG_IBIS bool off use sim Log the IBIS typist's reasoning.
OMSI_DEBUG_INTERIOR bool off use app, app-mx Log the interior lamps of each vehicle type.
OMSI_DEBUG_JUNCTION bool off use sim Log why AI cars wait at a junction.
OMSI_DEBUG_LAMPS bool off use app, app-mx, scene, scene-mx Log traffic lights without a crossing, and the moving lamps (barriers).
OMSI_DEBUG_LAN bool off use app, app-mx, lan LAN: every few seconds what we know of every player, counts and bytes a second.
OMSI_DEBUG_LANES text - use app, app-mx Log the lanes with these ids (comma-separated).
OMSI_DEBUG_LIGHT bool off use scene, scene-mx Add a test point light above the camera.
OMSI_DEBUG_LIGHTS text - use sim all, near or controller names: log every light change of those traffic light programs.
OMSI_DEBUG_LIGHT_GRID bool off use render, render-mx Log lights left out of a full light-grid cell.
OMSI_DEBUG_MESHES text off use app, app-mx Log per material slot which part of its texture a mesh shows (display texts).
OMSI_DEBUG_MIRRORS bool off use app, app-mx Log each mirror's eye, angles and field of view.
OMSI_DEBUG_MISSING bool off use scene, scene-mx Log where missing textures were looked for.
OMSI_DEBUG_NAN bool off once script Warn at every write of a NaN or infinity into a script variable.
OMSI_DEBUG_NAV bool off use mapdraw, mapdraw-mx, navigator, navigator-mx, scene, scene-mx, sim Log navigation details (e.g. stops whose tiles are not loaded).
OMSI_DEBUG_OBJECTS bool off use scene, scene-mx Log objects placed outside their tile.
OMSI_DEBUG_OBJMAT text - use scene, scene-mx Log how the material slots of the objects whose file name contains this text are made.
OMSI_DEBUG_PAD bool off use input Log every game controller button event: the raw buttons the assignment menu waits for, and the system gamepad ones.
OMSI_DEBUG_PARTICLES bool off use scene, scene-mx Log the smoke particles.
OMSI_DEBUG_PASS bool off use sim Log twice a second why a car standing behind something does not go round it.
OMSI_DEBUG_PAX bool off use sim Log every change of state of the passengers.
OMSI_DEBUG_PHYSICS num off use app, app-mx, scene, scene-mx, sim Log the player's pose, speed, wheel contacts and crashes (offscreen: =secs, the interval).
OMSI_DEBUG_POPULATION bool off use sim Log where cars appear and vanish relative to the view.
OMSI_DEBUG_PROPS bool off use app, app-mx Log the destination-display (matrix) variables.
OMSI_DEBUG_PUDDLES num 0 use render, render-mx Puddle debug view (a number selects it).
OMSI_DEBUG_RAIN bool off use scene, scene-mx Log the tyres' spray and puddles.
OMSI_DEBUG_RASTER text - use scene, scene-mx x,y: log the ground raster at that point.
OMSI_DEBUG_REPEATERS bool off use world Log repeater objects whose spline chain disagrees with the map.
OMSI_DEBUG_REST bool off use app, app-mx Log where the bus came to rest on the ground after spawning.
OMSI_DEBUG_ROUTES bool off use sim Log where consecutive lanes of an AI route do not join.
OMSI_DEBUG_RT num off use render, render-mx Log the ray tracing structures every 30 frames (with a number: a debug view).
OMSI_DEBUG_SEAT bool off use sim Log the driver seat's suspension meshes.
OMSI_DEBUG_SERVICES bool off use app, app-mx Log petrol station boxes and the bus's distance to them.
OMSI_DEBUG_SHADOW num off frame render, render-mx Shadow debug overlay (with a number: its radius, default 3).
OMSI_DEBUG_SHADOW_FAR bool off frame render, render-mx Log each redraw of the far shadow map.
OMSI_DEBUG_SIGNALS bool off use sim Log what each railway signal shows.
OMSI_DEBUG_SKY bool off frame render, render-mx Log the sky and sun values per frame.
OMSI_DEBUG_SOUND num 5 once app, app-mx Log which sounds were heard (number: the interval in seconds).
OMSI_DEBUG_SPLINES bool off use scene, scene-mx Log the splines and lanes built per tile.
OMSI_DEBUG_STARTUP bool off use sim Log the start-up steps of a vehicle's systems.
OMSI_DEBUG_STOPS bool off use sim Log the bus stops a bus missed.
OMSI_DEBUG_STUCK bool off use app, app-mx, sim Log the report of stuck AI cars (also explains junction waits).
OMSI_DEBUG_SURFACES bool off use scene, scene-mx Log the painted ground layers per tile.
OMSI_DEBUG_SWITCHES bool off use sim Log railway switches thrown for a train.
OMSI_DEBUG_TEXT bool off once sim Log the scripts' string variable operations.
OMSI_DEBUG_TEXTURES bool off use scene, scene-mx Log all textures by size and format.
OMSI_DEBUG_TRAFFIC bool off use app, app-mx, scene, scene-mx, sim Log traffic light programs, cars standing for long and hard bends.
OMSI_DEBUG_TRAILER bool off use sim Log a trailer's rest, sag and lift on the ground.
OMSI_DEBUG_TRAILERS bool off use sim Log coupled parts off the level of what pulls them.
OMSI_DEBUG_TRIGGERS bool off use app, app-mx Log the variables a mouse trigger changed.
OMSI_DEBUG_TROLLEY num off use app, app-mx, scene, scene-mx, sim Log the trolleybus gear (offscreen: =secs, the interval): voltage, current, controller position, the poles, and every event of the poles (frogs, insulators, dewirings).
OMSI_DEBUG_UNLINKED bool off use sim Log lane ends with an untaken lane start near them.
OMSI_DEBUG_UPLOAD bool off use scene, scene-mx Log slow GPU uploads item by item.
OMSI_DEBUG_VARIANTS text - use app, app-mx Log material variants whose variable name contains this text.
OMSI_DEBUG_VARS num - use app, app-mx Offscreen: log these script variables of the player's bus (comma-separated).
OMSI_DEBUG_VARS_EVERY num - use app, app-mx With OMSI_DEBUG_VARS: log them every this many seconds through the drive.
OMSI_DEBUG_VAR_SYNC text - use lan LAN: log this variable, ours every two seconds and theirs as it comes.
OMSI_DEBUG_VIEW_LAMPS bool off frame render, render-mx Log the view lamps value per frame.
OMSI_DEBUG_WALLS bool off use sim Log the walls a walking player slides along.
OMSI_DEBUG_WARP bool off use scene, scene-mx Log crossings whose ground was moved by more than a metre.
OMSI_DEBUG_WHEELS bool off use app, app-mx Log where the wheel meshes of every vehicle type turn.
OMSI_DUMP_CLASSES bool off use scene, scene-mx mapgen_dump example: paint the paving by class (road, footway, yard) in telling colours.
OMSI_DUMP_CUT text - use scene, scene-mx Directory: write each tile's road-cut alpha masks as images.
OMSI_DUMP_GROUND text - use scene, scene-mx File: every loaded tile's final terrain and road cut as text.
OMSI_DUMP_SCENERY_TEXT text - use scene, scene-mx Directory: write the scenery objects' text textures as drawn.
OMSI_DUMP_SCRIPTTEX text - use app, app-mx Directory: write the player's bus's script (display) textures.
OMSI_ENV_PHOTO num 1 use render, render-mx 0 leaves the environment photo out of the debug views.
OMSI_FG_SHOW text - use render, render-mx Frame generation: generated or drawn - the window shows only that kind of frame, to look at it alone.
OMSI_FORCE_LOD bool off use scene, scene-mx Draw the lower levels of detail of the AI vehicles at any size (to look at them).
OMSI_FRAME_ORDER bool off once app, app-mx Log the window's frame and the offscreen run's step as their ordered stages (phase, what each reads and writes, its profile key), once at start.
OMSI_GPU_TIMERS bool off use app, app-mx, render, render-mx Measure GPU time per pass with timestamp queries.
OMSI_GPU_TIMERS_RAW bool off use render, render-mx With OMSI_GPU_TIMERS: the passes in the order the GPU finished them.
OMSI_GROUND_GAP text - use sim Offscreen CSV (or -): how far every drawn tyre stands over or sinks into the ground.
OMSI_GROUND_GAP_RADIUS num 150 use sim With OMSI_GROUND_GAP: the radius in metres.
OMSI_GROUND_LANES bool off use sim Along every street lane, every metre, how far the ground lies over or under the lane.
OMSI_LAN_TRACE text - use app, app-mx LAN CSV file: where the host's people are drawn.
OMSI_LIST_ALIGNED bool off use scene, scene-mx Log the splines aligned to the terrain.
OMSI_PROFILE bool off use app, app-mx, platform, render, render-mx, scene, scene-mx, sim, xr, xr-mx Time per stage of the frame, logged; the session summary comes after --exit-after or when the game is closed.
OMSI_PROFILE_GPU bool off use app, app-mx Profile: wait for the GPU so its time shows as a stage of its own.
OMSI_PROFILE_JSON text - use app, app-mx With OMSI_PROFILE: the session summary written after --exit-after or when the game is closed (after the 15 s warm-up) as JSON into this file, see scripts/compare-performance.py.
OMSI_SUSP_TRACE text - use app, app-mx Offscreen CSV: body height and each wheel's travel and load every frame.
OMSI_SUSP_TRACE_WINDOW text - use app, app-mx Window CSV: each wheel's travel every frame.
OMSI_TRACE_AI text - use sim CSV: every AI car's pose, steering and speed every frame.
OMSI_TRACE_AI_BUSES bool off use sim With OMSI_TRACE_AI: the timetable buses only.
OMSI_TRACE_FFB text - use input CSV: the force feedback frame by frame (Windows): the wheel's position and the force sent.
OMSI_TRACE_LOOK text - use app, app-mx CSV: the mouse look frame by frame and event by event - the cursor, the head's turn and the camera drawn.
OMSI_TRACE_PAX text - use app, app-mx File: trace the passengers.
OMSI_TRACE_REMOTE text - use lan LAN CSV: where each other player's bus is drawn every frame.
OMSI_TRACE_STEER text - use app, app-mx CSV: the mouse steering frame by frame.
OMSI_TRACE_VARS text - use app, app-mx a,b,$c: the listed variables every half second of the run.
OMSI_TRAFFIC_STATS text - use sim CSV: the traffic's flow every minute (standing cars, waits-for cycles, junction entries, red runs, overlaps), a summary at the end.
OMSI_TROLLEY_DEAD text - use app, app-mx Section ids of the overhead wire (comma separated) that carry no current, whatever trolley.txt says.
OMSI_WATCH_VARS text - use app, app-mx a,b: log every change of these variables of the player's bus.
OMSI_WHEEL_TRACE bool off use app, app-mx Log the deepest a drawn tyre goes into the road, once a second.
OMSI_ZFIGHT_PROBE num - once render, render-mx Z-fighting check: the draw order's depth steps within an object from a hash (1) or its reverse (2); offscreen pictures of both differ where an object's surfaces lie in one plane.

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

↑↓ to move↵ to open