openOMSI GitHub Discord

Docs / Reference / Content formats

Timetables (TTData)

1 min readEdit this pagedocs/FORMATS.md

  • 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 lines (the track it runs on, empty for a bus trip that goes by its station links; terminus; line string), [station_typ2] object-id…, [profile] name minutes (+ profile_man_arr_time/dep_time).

    A "type 1 (old)" trip (trains, and whole mod maps such as Novi Sad) has [station] records of 8 lines instead - object id, index of the track entry the stop lies on, name, tile index, then four numbers - and runs on the track its [trip] names ("1 Klisa-Liman I" → 1_Klisa-Liman1.ttr), which need not be named like the trip.

    AI buses follow a route in whichever direction it goes along a path: station links and tracks do drive one-way paths backwards (invisible helper streets).

  • Map splines with the mirror flag have their cross-section turned over: every path lies at the negated offset and runs the other way (forward ↔ backward).
  • .ttr track: [track_entry] id path-index tile-index internal-path-no length 0 - the lane sequence of the trip (id = spline/object id in that tile, path-index = the [path] index in its .sli/.sco; the internal number is OMSI's per-tile path array index, a cache).
  • .ttl line: [userallowed], [priority], [newtour] number ai-group extra, [addtrip] trip profile departure-minutes.
  • StnLinks.cfg: [StnLink] length from to … + [StnLink_entry] id path tile length -1 0 0.

    A link often runs on a few paths past its station (the last entries mostly with length 0, into a turn lane or round a corner) while the next link starts at the stop on another path - in 122 of Spandau's 505 joins; those extra paths are not driven.

    Lanes are linked by proximity of end/start points (≤ 1.5 m, heading within 40°), which reproduces the prev/next spline chains and the [splinehelper] connections of crossings.

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

↑↓ to move↵ to open