Making a train pack
Players of The Transit Game can add train packs of their own: the trains of a city or a region the game does not yet have. A pack is data only, a folder of text files; nothing in it runs.
The folder
A pack is a folder named for the pack's id, in the packs folder beside the game's saves folder. It holds four files:
| File | Holds |
|---|---|
pack.toml |
the pack itself: its id, its name, its version and its kind, city or region |
trains.toml |
the catalog: each model's id, name, length, room, top speed, weight, power, pulling force and brakes, and whether it is light rail |
running_costs.toml |
what each model costs to run: its crew an hour and its energy a kilometre |
train_cars.toml |
how each model is drawn: its cars, their sections and colours; the cars add up to the train's length |
The simplest start is to copy the folder of a shipped pack, such as Boston's, and change it: the files' comments say what each figure is.
Rules
- The id is lowercase letters, digits and underscores, and no shipped pack's.
- Each model's id is unique among every pack of a game, and is the place, the kind of train and its type, never an operator's, a maker's or a product's name or initials. A model's id is kept by every save that uses it, so it should never change.
- Names follow the shipped packs': the place, the kind of railway, the line or lines it runs and its consist. No pack may carry an operator's or maker's name, logo, writing or fleet number on its trains.
- Running costs should use the same pay and energy prices as the shipped packs, so that every pack's trains cost alike.
Loading it
Packs are read when the game starts; a folder added while it runs is seen at the next start. A folder that does not read is listed on the packs page with the reason and is not used.
A save remembers each of its packs and its version. If a pack's trains are changed, saves made with the old version no longer load, unless the pack lists the old version as retired, saying which model takes the place of any model it dropped. Raise the version at every release.