openOMSI GitHub Discord

Docs / Reference

Content formats

Every OMSI 2 file format as openOMSI reads it.

60 min readEdit this pagedocs/FORMATS.md

The file formats of OMSI 2 content (maps, objects, vehicles, scripts, timetables …) as openOMSI reads them.

Chapters

1Text encodingMap files (global.cfg, tile_x_y.map, Chrono *.map, *.chronoterrrelevant) are UTF-16LE with BOM (FF FE). Every other text file is read by OMSI in the s…1 min
2The [keyword] block format (used by .bus .ovh .sco .sli .cfg .hof .ttp .ttl .ttr .owt .oop .odr .otp .osn .dsc .hum .txt …)Quoting the original .bus header comment: the program ignores everything except keywords like [mesh] when they stand at the start of a line, alone on …2 min
3Scripts (.osc) - unit mc_exprcalcAn 8-float working stack (st[0..8]) and a 10-float register file (l0..l9 load, s0..s9 store without popping; the exe's TCache is array[0..9] of Single…4 min
4o3d (binary mesh) - unit mc_o3dfiles84 19 magic ver u8 (1,3,4,5,7 seen) [flags] u8 (ver >= 3) bit0: 32-bit triangle indices [key] u32 (ver >= 4) usually 0 sections, tagged by one byte, u…4 min
5Map - units mc_mapclass, mc_terrain_2, mc_chronoglobal.cfg keywords (from the exe): name friendlyname description/end version NextIDCode worldcoordinates dynhelperactive entrypoints realrail LHT map…9 min
6Splines (.sli) - unit mc_splineslength texture scaleTexByLength patchwork_chain heightprofile profile profilepnt path path_2 rail_enh third_rail halfcantwidth onlyeditor terrainholep…1 min
7Traffic paths of objects ([path] / [path_2] in .sco)12 lines (path_2: 14): start x, y, z in the object frame (x right, y forward, z up), heading (degrees, clockwise, relative to the object), radius (0 s…1 min
8Timetables (TTData)Busstops.cfg: [busstop] name tile-index object-id offset 0 0 (tile index = position of the tile in global.cfg's [map] list). .ttp trip: [trip] + 3 lin…1 min
9Scenery objects (.sco) - unit mc_complMapObjfriendlyname groups onlyeditor complexity rendertype(presurface|surface|on_surface) LightMapMapping nomaplighting NightMapMode fixed absheight collisi…1 min
10Model (.cfg) - unit mc_complobjLOD VFDmaxmin detail_factor tex_detail_factor noDistanceCheck terrainhole CTC CTCTexture scripttexture texttexture texttexture_enh mesh item setvar me…12 min
11Vehicles (.bus/.ovh) - unit mc_roadvehicletype friendlyname friendlyname_inv ai_veh_type coupling_back/front control_cable_back/front couple_back/front coupling_front_character boogies sinus r…1 min
12HOF - mc_station/mc_roadvehiclename global_strings servicetrip stringcount_terminus stringcount_busstop addterminus_allexit addterminus addterminus_list {ALLEX} end addbusstop addbu…1 min
13Timetable (TTData) - mc_timetableTrains/*.zug: pairs of lines, vehicle file (or pool group name) and a reverse flag (1 = coupled with its rear end forward: its [couple_back] point mee…1 min
14MiscWeather .owt: name description end fog clouds precip groundwet snow snowOnRoad wind temp press. Options (.cfg/.oop): see [performance_*] table in the …4 min
15Radio variables (plugins)OMSI plays no music itself. The radios of the buses only set variables that plugins read: Snd_Radio - the cassette player (KR_play/KR_stop) of the sto…1 min
16Textures on the GPU - unit mc_texManDDS files with DXT1-DXT5 data (and DX10 BC1-BC3) go to a GPU that takes block formats (every Apple silicon Mac does) as they are: sRGB BC1/BC2/BC3 wit…2 min
17Lighting (envir.cfg, model lights)envir.cfg: [sky_textures] day/twilight/night, [twilight_start_end] sun altitudes, [lightcolor_A/B/C] = 5 RGB stops (nadir, twilight start, sunrise, tw…3 min
18Script textures and the IBIS callbacks[scripttexture] w h (model.cfg) declares an RGBA image per index; [useScriptTexture] n puts it on a material, [matl_transmap] \S:n uses its alpha as t…3 min
19Vehicle list and coupled partsOMSI offers the .bus/.ovh files that have a [friendlyname] (all stock buses; the GN92's rear section, most _KI AI variants and the AI cars have none).…2 min
20Humans (.hum)[model], [seatheight], [humangeom] feetdist height, [links] = 22 numbers: hip xyz, knee xyz, waist yz, shoulder xyz, elbow xyz, neck yz, hand xyz, fin…7 min

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

↑↓ to move↵ to open