Docs / Reference / Content formats
Misc
- 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 inomsi-options). - Fonts .oft:
[newfont] name bitmap alpha height gap+[char] ch x0 x1 y. - Languages .olf:
KEY<TAB>textlines, 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'sglobal.cfg, a.bus/.ovhor a.owt, in a file named after the stem:global_ENG.dscbesideglobal.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
TSoundupdate): 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 / referenceHz 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 atSnd_OutsideVolof 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 atSnd_OutsideVol0.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_OutsideVolof 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_Temperatureis 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,
biClrUsed17: the A21's and the Urbino'sLCD-Innenanzeige.bmp), and DDS files whose fourcc is a D3DFORMAT number (36, 113 and 116: 16-bit and float RGBA). wearlifespanis 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.