Docs / Reference / Content formats
Misc formats
Fonts (.oft)#
[newfont]
Matrix
matrix_colour.bmp
matrix_alpha.bmp
16
1
[char]
A
0
7
0[newfont] name bitmap alpha height gap + [char] ch x0 x1 y. Glyph pixels sit in columns
x0..x1 (x1 exclusive).
Languages (.olf)#
KEY<TAB>text lines; the first line is the language code.
Money and tickets#
- Currency:
[currency] name decimals,[coin] o3d value,[bill] o3d value. - Ticket pack (
.otp):[ticketpack](stamper probability, ticket-buying probability, chattiness, complaint probability),[voicepath], and[ticket]/[ticket_2]blocks: name, English name, max stations, minimum age, maximum age, price, display string.[ticket_2]adds a day-ticket flag and a probability. - Item lists (
.cti):[item] name variable textureand[setvar] name value.
Situations (.osn)#
A saved game, UTF-16 LE with a BOM and CR LF:
| Keyword | Parameters |
|---|---|
[name], [description] ... [end] |
Name and text |
[map], [actuWeather] |
Map and weather |
[time] |
Year, day of year, h, m, s |
[centerkachel] |
Tile x, y |
[mapcam] (6 numbers), [egopos] (5) |
Cameras |
[TT_active] |
Timetable on |
[vehicle] |
File, x height y, 7 orientation numbers, tile x y, odometer km, paint |
[coupledWith], [ismyVehicle] |
Per vehicle |
[vars] n, [stringvars] n |
Name/value pairs |
[settimetable] |
The vehicle's timetable |
[myvehicle], [view] |
Player's vehicle and view |
openOMSI adds [openOMSI_name_chosen] (the player named the save), [openOMSI_riders] (number
of passengers aboard) and [openOMSI_car] (the variables of a coupled car with scripts of its
own, such as a tram's rear cab; OMSI keeps one set per train).
Drivers (.odr)#
The personnel file, UTF-16 LE with a BOM.
| Keyword | Contents |
|---|---|
[ident] |
Name, sex, date of birth, date of hire |
[busstops] |
Stops served, of those reached too late, and left too early |
[hektom] |
Distance driven in hectometres |
[crashs] |
Crashes, hurt pedestrians, abscondings, and of those the heavy ones |
[tickets] |
Tickets sold, takings |
[rating] |
Driving (0 excellent to 10 perilous), passenger comfort, ticket selling, then two accumulators |
[perbusinfo] |
Per-bus data |
The stock file has the two accumulators at zero; openOMSI uses them for the distance the ratings were averaged over and the number of jolts.
Descriptions (.dsc)#
Translations of a name and description, in a file named after the stem: global_ENG.dsc beside
global.cfg, also for a .bus/.ovh or .owt. It holds [name] (or [friendlyname]) and
[description]. The German text is the file's own, so only other languages have a .dsc; a
language without one falls back to _ENG. They are ANSI like the rest, though some were saved
as UTF-16 with a byte-order mark.
Input and options#
keyboard.cfg:[game]/[vehicles]+[entry] name scancode modifier. The modifier is a mask: 1 the action gets the key's state every frame (throttle, brake, steering), 2 Shift, 4 Ctrl. openOMSI adds 8 for Alt, which OMSI ignores.gamectrler.cfg:ctrl,axis,buttons,FFScale.options.cfg: the[performance_*]keys and others. openOMSI imports what it uses; see Launcher and settings.
Something wrong or missing? Fix it on GitHub or open an issue.