.ttb file

Revision as of 10:13, 22 January 2023 by Krizar (talk | contribs) (→‎Glossary: Added more detail to TTB page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A .ttb file is a program readable timetable file. It contains information about the timetable for a route. It is designed to be opened in Railway Operation Simulator, however, it can also be opened and edited in ROSTimetableEditor.

Glossary

  • Entry: a single block within the timetable, this can be either the global start time, a comment, or a service definition.
  • Service: a train service consisting of a specification followed by service type, then a list of calling points for that service, finally concluding with finish type and optional repeats.
  • Line: a single line of the timetable file, this is any statement represented as a single line within the program editor.

Structure

Timetable files are structured as a single block of text making use of three characters as delimiters to separate information. Although manual editting of such files is not recommended, knowledge of the file structure is useful for quick value/entry patching by search pattern.

Data separation

A single line of a timetable entry uses a semicolon (;) as a delimiter to separate each statement:

08:00;LM - London Euston to Bletchley;0;120;200;100;2400

Line separation

New lines within the timetable are separated using a null string \0 (this can be represented in many ways depending on the programming language syntax/application).

Entry separation

Entries are separated using a comma (,).