openOMSI GitHub Discord

Docs / Reference / Content formats

Misc

4 min readEdit this pagedocs/FORMATS.md

  • Weather .owt: name description end fog clouds precip groundwet snow snowOnRoad wind temp press.
  • Options (.cfg/.oop): see [performance_*] table in the exe (full list in omsi-options).
  • Fonts .oft: [newfont] name bitmap alpha height gap + [char] ch x0 x1 y.
  • Languages .olf: KEY<TAB>text lines, first line = language code.
  • Money: [currency] name decimals, [coin]/[bill] o3d value. Tickets .otp: ticketpack voicepath ticket ticket_2.
  • Humans .hum: model seatheight walk_param humangeom links voice age.
  • Drivers .odr: ident busstops hektom crashs tickets rating perbusinfo. The personnel file is UTF-16 LE with a BOM like a situation. [ident] is name, sex, date of birth, date of hire; [busstops] counts the stops served and, of those, the ones reached too late and the ones left too early (in that order, like Omsi.exe's driver record);

    [hektom] is the distance driven in hectometres; [crashs] counts crashes, hurt pedestrians, abscondings and, of those, the heavy ones; [tickets] the tickets sold and the takings;

    [rating] the ratings the personnel dialog shows (driving on a 0 = excellent to 10 = perilous scale, passenger comfort, ticket selling) followed by two accumulators (the stock file has them all at zero, so the last two are ours: the distance the ratings were averaged over, and the number of jolts).

  • Situations .osn: name description end map actuWeather time centerkachel mapcam egopos TT_active myvehicle view vehicle coupledwith ismyVehicle vars stringvars settimetable.
  • Descriptions .dsc: [name] (or [friendlyname]) lines and a [description] text, for a map's global.cfg, a .bus/.ovh or a .owt, in a file named after the stem: global_ENG.dsc beside global.cfg. The German text is the file's own description, so only other languages have a .dsc, and a language without one falls back to _ENG.

    They are Latin-1 like the rest, except that some were saved as UTF-16 with a byte-order mark.

  • Sound conditions: [conditionSingle] / [conditionInt] give the variable, the value and then the relation - 0 <>, 1 =, 2 <, 3 >, 4 <=, 5 >= (engine_n 200 3 = the engine runs, velocity 2 2 = standing); [conditionBool] has no relation and compares for equality.

    How an entry plays (the exe's TSound update): with a [trigger] it plays once each time the trigger fires, from the start and never looped (a [loopsound] too), without looking at its conditions;

    without one it loops for as long as its conditions hold and it is audible (the long horn, rain, the compressor, the heater) - [sound] and [loopsound] both loop by default - unless it has [noloop], which makes it play once when its conditions start to hold (a rising edge; the mod buses' ECAS kneeling, parking brake valve and start-up chime are written like that, and looped they hissed for ever).

    A [loopsound] plays at |pitch variable| · rate / reference Hz and is silent below DirectSound's 100 Hz. The rear section of an articulated bus has its own [sound] (on a pusher the engine is there) and plays it on the shared scripts' triggers and variables.

  • The player's bus's outside entries heard in its cab ([viewpoint] without 2) come in at Snd_OutsideVol of their volume as in Omsi.exe, and openOMSI also takes their treble away through what is shut: a low-pass at some 500 Hz with everything closed, rising evenly in octaves to the whole range at Snd_OutsideVol 0.95 and none from there (Omsi.exe has no filter; the traffic heard from the cab keeps it as Omsi.exe does, 0.2 + Snd_OutsideVol of its volume).

    Walking in or out through a door, the cab's entries and the street's are mixed by how far inside the bus's box the eyes are (0.4 m in: all cab), and the traffic's cab level with them.

  • AutoClutch (system variable) is 1 unless the options say [no_automaticClutch]: the manual-gearbox scripts (F90, T3, the Sprinter, PAZ and LAZ mods) work their clutch themselves then; at 0 a gear put in without the clutch pedal is thrown out at once.
  • Weather_Temperature is known before a vehicle's {init} runs: the engine and heater scripts start from it (a carburettor PAZ made at 0 °C in May wanted its choke).
  • Textures D3DX reads and GDI refuses: a palette bitmap counting more colours than its bit depth holds (4-bit, biClrUsed 17: the A21's and the Urbino's LCD-Innenanzeige.bmp), and DDS files whose fourcc is a D3DFORMAT number (36, 113 and 116: 16-bit and float RGBA).
  • wearlifespan is a plain vehicle variable the engine sets, and it must be 1: at 0 every random part lifetime the stock scripts draw is 0, which makes the SD200's rear door reopen by itself for ever.
  • Input: keyboard.cfg [game]/[vehicles] + [entry] name scancode modifier (the modifier is a mask, as Omsi.exe reads it (0x6478d0): 1 the action is told the key's state every frame - the throttle, brake and steering keys, " *" in OMSI's key list - 2 Shift, 4 Ctrl; Omsi.exe has no Alt, openOMSI's own Alt is 8, which OMSI leaves alone); gamectrler.cfg ctrl axis buttons FFScale.
  • Startup order (logfile.txt) documents the manager creation sequence, mirrored in omsi-sim.

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

↑↓ to move↵ to open