Docs / Reference / Content formats
Maps and tiles
A map is a folder under maps\ with a global.cfg, one tile_x_y.map per tile and the
timetable, depot and AI files.
Map files#
| File | What it is |
|---|---|
global.cfg |
The map's header: name, tiles, entry points, ground textures, seasons (UTF-16) |
tile_x_y.map |
One tile's objects and splines (UTF-16) |
tile_x_y.map.terrain |
Terrain heights: u32 (= 60), then 61 × 61 f32 heights |
tile_x_y.map.water |
u32 count, then four f32: one water plane with a height at each corner (every stock file has count 1) |
tile_x_y.map.LM.bmp |
256 × 256 24-bit night light map |
tile_x_y.map.prt |
Precache list (text: sco path, min id, max id, -1) |
texture\map\tile_x_y.map.<n>.dds |
Paint mask of ground texture n |
texture\water.tga, texture\water_envmap.bmp |
The water's colour and reflection (stock swatch: 8 × 8 pixels of 47, 74, 83, alpha 192) |
.terrain_x.rdy |
Editor cache, ignored |
Chrono\<folder>\ |
Timetable changes over time (below) |
Holidays.txt |
[holidays] ranges and [holiday] single days, each with a name |
timezone.txt |
[timezone], [DST], [location] |
humans.txt |
The people the map's pedestrians and passengers are drawn from, one Humans\<group>\<file>.hum per line |
parklist_p.txt, parklist_p_<n>.txt |
Parked-car objects (see Parking spaces) |
ailists.cfg |
AI vehicle groups and depots |
radio.cfg |
The map's radio stations (openOMSI; see Radio) |
trolley.txt |
Overhead wire (openOMSI; see Trolleybuses) |
Other openOMSI map files (openomsi_weather.cfg, openomsi_climate.cfg, openomsi-realmap/,
dependencies.json) are listed in Modding overview.
global.cfg#
| Keyword | Parameters |
|---|---|
[name], [friendlyname] |
Map name |
[description] ... [end] |
Description text |
[version], [NextIDCode] |
File version, next free object id |
[worldcoordinates] |
Tile grid in geographic degrees (see below) |
[dynhelperactive], [realrail], [LHT] |
Flags; [LHT] is left-hand traffic |
[mapcam] |
Start camera of the editor |
[standarddepot], [moneysystem], [ticketpack] |
Default depot, currency and ticket files |
[repair_time_min], [years], [realyearoffset] |
Repair time, year range, year offset |
[pax_late_tolerance_min] minutes |
How late a bus may be before boarders complain; overrides the player's setting, 0 off |
[backgroundimage] |
Editor background picture |
[groundtex] |
A ground texture (below) |
[addseason] kind start end |
Season by day of year (see Seasons) |
[trafficdensity_road], [trafficdensity_passenger] |
hour factor lines: a curve over the day that scales AI traffic and waiting passengers |
[entrypoints] |
Places where the player can start |
[splineObjTypes], [scenObjList] |
Object and spline type lists |
[map] |
A tile: position and file name |
[entrypoints] records: index, object id, 0, x, height, y (within the tile), a quaternion
(x, y, z, w; heading = 2·atan2(y, w)), the index of the object's tile in the [map] list, name.
Tile indices in a map's files (entry points, [splineAttachement_repeater], timetable tracks)
count every [map] entry, including a tile listed twice (Westcountry 3 lists 33 twice) and
tiles whose files are missing (Berlin-Spandau lists 369 and ships 329). Object ids are not
unique across a map joined from two maps.
Tile size. A tile is 300 m square. With [worldcoordinates] (Berlin-Spandau) the grid is
1/300 degree and the edge is 371.9 m on both axes (measured on 271 cross-tile spline links).
Local coordinates then run 0..372, and objects may be saved in a neighbouring tile's file with
coordinates beyond the edge.
[groundtex] is one ground texture the map may be painted with: texture, detail texture,
then three numbers: the paint mask's size as a power of two, how often the texture repeats
across a tile, how often the detail texture does.
- The first entry is what the whole map starts as and has no mask.
- Each further entry has a per-tile mask
texture\map\tile_x_y.map.<index>.dds: an 8-bit alpha DDS of exactly that size, sometimes with mipmaps. Its first row is the north edge. - The detail texture is multiplied in plainly. The stock ones are bright (noise_low averages 242), so doubling them like a grey-centred Direct3D detail map would blow the ground out.
Tile files (tile_x_y.map)#
| Keyword | What it is |
|---|---|
[version] |
File version (older versions write shorter records, below) |
[terrain], [water] |
The tile has terrain / water |
[variable_terrain], [variable_terrainlightmap] |
Editable terrain; light map baked at load |
[object], [attachObj] |
A placed object; an object hung on another |
[spline], [spline_h] |
A spline |
[splineAttachement], [splineAttachement_repeater] |
A row of objects along a spline |
[varparent] |
The object whose variables this one uses |
[spline_terrain_align], [spline_terrain_align_2] n |
The spline cuts its outline out of the ground |
[rule], [kill_rule] |
Traffic rules |
[selobject], [selspline], [delete], [typ], [relabel] |
Chrono patches only |
[object]: 0 (detail level), path, IDCode, x, y, z, heading, pitch, bank (degrees,
heading clockwise from north), then the labels: a count and exactly that many lines.
- z is relative to the terrain, except for
[absheight]objects and objects with[splinehelper]connectors (crossings, switches), whose z is absolute like their splines'. - Labels are what the editor's Labels dialog edits: sign texts (
@breaks a line), line numbers, a tree's texture, height and height/width ratio, a stop's name and timetable data. They fill the object's string variables in order. Any line counts, even an empty one or one that looks like a keyword. The count is no type: trees write 3 or 4.
[attachObj]: 0, path, IDCode, the parent's IDCode, the parent's instance, the index of
the parent's [new_attachment] point, heading, pitch, bank, labels.
- Only instance
0loads: OMSI refuses objects hung on later objects of a spline attachment row. - The parent is looked up among the
[object],[attachObj]and[splineAttachement]records written before it in the tile. An attachment whose parent comes later is not loaded. - An
[attachObj]may name a row's IDCode. It then hangs on the row's first object, with the row's own type.
[spline] / [spline_h]: 0, path, IDCode, previous, next, x, height, y, heading,
length, radius (0 straight, > 0 turns right), gradient start and end (%), cant start and end,
skew start and end, alignment length, optional mirror. A mirror spline has its cross-section
turned over: every path lies at the negated offset and runs the other way.
Older versions write shorter records:
| From version | Added |
|---|---|
| 4 | Labels |
| 5 | Spline cant |
| 6 | IDCodes (older records are numbered as they load) |
| 7 | Spline mirror line |
| 8 | [attachObj] heading |
| 9 | Leading detail level (an object above the detail setting is not loaded) |
| 10 | [attachObj] parent by IDCode (before: its index among the tile's records so far) |
| 11 | Two spline neighbour ids (before: one line, -1 none, else it continues the previous spline); texture offset |
| 12 | [attachObj] pitch and bank |
| 14 | Spline skew |
[rule]: belongs to the [object] or [spline] written before it. Its first line is the
[path] index within that element. Kinds: speedlimit, overtaking_prohib, bus, trucks,
no_cars, trafficdensity, priority. Most rules follow an object: Berlin-Spandau has 5402
trafficdensity, 693 speedlimit, 576 trucks and 64 no_cars rules on objects, against
3114/810/284/4 on splines.
Spline attachment rows#
[splineAttachement]: 0, path, IDCode, spline index (in the tile's spline order), lateral
offset, height, start distance, heading, pitch, bank, interval, range, tilt flag, string count,
strings.
[splineAttachement_repeater] has two more lines after the 0: the index of the master's
tile in the [map] list, and the index of the row's first object on its spline.
How a row is placed:
- Object j lies at start distance + j × interval along the chain from its start, while
j × interval ≤ range. The chain is the splines before the master's, following the
prevlinks, with direction flips where two splines meet end to end. - A record places its row on its own spline and on the following splines of the chain, as long as they lie in its tile. Where the chain enters another tile, a repeater there carries on.
- This reproduces 177 of the 180 checkable repeater indices of Berlin-Spandau and puts buffer stops a few metres before the ends of their tracks.
Chrono (timetable changes)#
<map>\Chrono\<folder>\Chrono.cfg:
[startdate]
19910602
[enddate]
0
[deactivate_lines]
5 & 5N| Keyword | Parameters |
|---|---|
[startdate], [enddate] |
YYYYMMDD; enddate 0 = never |
[ticketpack], [moneysystem] |
Ticket and currency files from that date |
[deactivate_lines] |
Line names, one per line |
- The folders are taken in name order. One is active when
startdate ≤ dateand (enddate= 0 ordate < enddate). - An active chrono's
.mappatches,ailists.cfgand timetable files are laid over the map's. - A line a chrono switches off stays off on every later date too. Berlin-Spandau on 2026-09-17 has 27 lines, without the "5 & 5N" that the change of 1991-06-02 removed.
Terrain, holes and crossings#
Terrain align. [spline_terrain_align] (no parameter) and [spline_terrain_align_2] n
follow a [spline]. The editor's "align terrain" already wrote the heights into the .terrain
file; at load the flag only makes the spline cut its outline out of the ground.
- The outline is the spline type's
[terrainholeprofile]extruded along the spline. n2 and 4 keep the far end at the spline's end, 3 and 4 the near end at its start. Otherwise each point's third value moves it past the end.- A
.sliwithout[terrainholeprofile]gets one per string of joined[profile]s: its ends 3 cm in and 3 mm down, a bottom 10 cm under its lowest point reaching 0.5 m past both ends. - An outline that crosses itself cuts nothing.
Object holes. Each [terrainhole] <mesh.o3d> in a .sco or model.cfg names an
object-wide cutter. It counts even before the first [mesh] and when repeated. The cutter
lies next to its declaring file or in its model folder; a .sco's declaration also applies
when it uses a separate model.cfg.
Explicit cutters apply even to deep excavations. Without them the terrain stands over the carriageway, which from the driver's seat looks like a missing road.
Road surfaces. Spline profiles are extruded as they are: a road's outer points sit at kerb height (0.25 m on the Marcel street splines) with no skirt down to the terrain. The terrain is only cut away under surfaces within about 12 cm of it.
[crossing_heightdeformation] mesh.o3d (scenery) is how a junction plate meets the
ground. The plate is one flat object placed at an absolute height; the named mesh is a coarse
copy of it.
Every vertex of the object moves by the difference between the ground under it and that base mesh, so the plate keeps its kerbs while its arms come down onto the roads. The plate's paths take their heights from it. The ground is not pressed into the plate at load.
Night light maps#
tile_x_y.map.LM.bmp (256 × 256) holds pools of street lamp light on the ground, north at the
top row. It is added to the terrain at night.
- It covers the tile and its eight neighbours: the tile is the middle third (texels 85⅓..170⅔ each way). Neighbouring light maps are the same picture shifted by a third.
- A tile with
[variable_terrainlightmap]has its light map baked from the[maplight]s of the nine tiles at load (OMSI writes it over the file unless options.cfg has[no_generateTerrLightMaps]). openOMSI bakes it the same way. - A texel takes each lamp's colour × min(1, (radius / distance)²), added up, held at 1. A lamp more than 15.96 radii away along x or y adds nothing.
Street names#
Street names are not stored in a map. They are on its street name signs: a StreetSign_*
object (Verkehrszeichen_MC; 670 on Berlin-Spandau) has type flag 1 and the name as its first
string. Its heading is the road's heading + 90°. The navigator reads them for the city map.
Something wrong or missing? Fix it on GitHub or open an issue.