Steam Revolution | Documentation

Simulation and balance

Trains and capacity

A depot schedule releases the number of trains configured for that schedule. Each train has an engine and tender, plus the cargo cars listed in the schedule. The default maximum is 13 configured cars per train. The engine and tender are separate from that cargo-car list.

By default, each cargo car holds 5 units of its cargo and each tender holds 5 units of fuel. Those values are configurable. Train performance also depends on the engine, train weight, slope, and track curvature: acceleration is reduced by slope and weight, while curvature and slope impose speed limits. Fuel is consumed over time while a train runs.

Signals and pathfinding

Track between signals is divided into blocks. During simulation setup, the game finds valid paths through each block and builds journeys between signals, respecting track connections, direction, and signal orientation. A weighted Dijkstra search finds the minimum-distance journey for each signal pair; the weights are the lengths of the block paths.

A schedule route associates an entry signal with one or more destination signals. At that signal, the destination list filters which journeys the train may use. If the schedule has no route for the signal, the game uses the default candidates, which include all valid destinations. The route destination is a constraint, not a command to use one exact sequence of track: the simulation still selects a valid journey through the current block.

Choosing between paths

The Dijkstra search chooses the minimum-distance journey between each pair of signals, but that does not mean every train always takes the globally shortest available destination. When a signal has several candidate journeys, the candidates are ordered by the length of their first block path, then by the path's finish signal ID and an internal ID. Blocking and free signals choose from this ordered list in round-robin order. Their counter is maintained per signal direction and shared across schedules, so trains from different schedules are distributed across alternatives. It advances only after a successful claim and only when there is more than one candidate.

A blocking signal does not try the next route merely because the selected block is occupied: the train waits for that block to become available. A chain signal is different: it tests candidates in order and looks ahead, claiming the path through connected blocks up to a free or terminal signal. It takes the first candidate whose chain can be claimed, rather than round-robining. Since candidate ordering prioritizes the first block path's length, this favors a short initial leg that is currently claimable, not necessarily the shortest complete journey.

Signal types

A placed signal can have a different type in each direction. The layout-file form is passage followed by the two directional signal types, for example passage blocking free. These types govern movement and block claims; they are separate from the cargo orders described below.

Loading and unloading orders

Cargo orders belong to a schedule's route at a signal and are edited in route mode. The general order applies to every cargo type. An entry in cargo_modes overrides both the load type and wait policy for that one resource; cargo types without an entry continue to use the general order. With no explicit order, the defaults are auto partial. These are per-resource behaviors at a stop, not a sequence of loading steps.

The resource in a car must match a platform storage or industry input/output for a transfer to be possible. Pickup is limited by the car's remaining capacity and stock available; delivery is limited by cargo in the car and free capacity at the receiving storage. Each loading transfer moves at most one unit, and the platform's cargo path, loading speed, and configured overhead determine how long the train remains stopped.

Wait policies

In the saved schedule text, passage inside a route means the general load type and wait policy; it is distinct from the signal block's directional passage types. For example:

route {
    signal 4
    destinations { 9 12 }
    passage auto partial
    cargo_modes {
        cargo_mode {
            resource coal
            passage load full
        }
        cargo_mode {
            resource steel
            passage unload partial
        }
    }
}

In this example, the route permits journeys to signals 9 or 12. Coal overrides the general order to load and wait until full; steel overrides it to unload and leave when no more delivery is immediately possible. Other cargo uses auto partial.

Industry conversion

Industry definitions contain one or more conversion recipes. Each recipe lists resource inputs and outputs, with an omitted quantity meaning one unit. All inputs listed in a recipe are required together for that conversion. For example, a recipe that consumes coal and iron ore does not run with only one of them. Recipes are checked in their declared order; a recipe that can run may consume stock before a later recipe is considered. Therefore, a boosted recipe listed before a base recipe takes priority whenever enough of its boosting resource is available and its other inputs are present. It will be used before the later recipe rather than saving the boosting resource for it.

Industry storage has a default capacity of 500 units per resource. A conversion needs its input quantities in storage; output storage is capacity-limited, and excess production is capped. The default production interval is 40 simulation ticks. Storage buildings have their own default capacity of 20 units per resource.

Loader paths and delivery priority

Loader paths are worker routes between track-adjacent platforms and reachable industries or storage; they are separate from train pathfinding. The game finds a minimum-cost path through cardinally adjacent platform tiles from each industry building or storage point to each platform. A same-level step costs one map unit. Where several platform paths serve a train car, storage destinations are considered before industries, then shorter paths first; destination IDs and platform position break ties. This lets storage collect excess cargo before it is sent to an industry.

Bridge platform tiles are walkable and let haulers cross over train tracks. Moving between ground and bridge platform levels requires stairs: a level transition costs 0.5 + 0.707 * cargoLoadStairMultiplier in path selection (about 2.62 units with the default multiplier of 3). The actual stair distance is also multiplied by cargoLoadStairMultiplier, so stairs increase both route cost and loading time. Industry buildings and storage are ground-level path origins; a route cannot start by stepping directly onto a bridge platform. Loader connections to trains are generated for ground-level track, not bridge track.

By default, cargoLoadSpeed is 1/24 map unit per simulation tick, or 24 ticks per unit of effective path length. A loader walks to the train car and back, so the complete round trip contributes to the time for a cargo transfer. cargoLoadOverheadTicks adds a fixed delay to each transfer.

Loaders have a default stamina distance of 30 map units on each one-way leg. Past that distance, the effective distance grows quadratically instead of using a hard cutoff: for leg distance d > cargoLoadPenaltyStamina, it is d + (d - cargoLoadPenaltyStamina)^2 * cargoLoadPenaltyScale . Stamina resets for the return leg. With the default penalty scale of 1/64, a 40-unit leg counts as about 41.56 effective units. This slowdown discourages using very long loader walks instead of transporting goods by train.

Overriding balance

A balance file contains one setting name and value per line. Pass its path with -balance when starting the game. It can be a partial file: settings not included retain their normal defaults.

industryProductionTicks 40
industryCapacity 500
siloCapacity 20
trainCarsMax 13
carCapacityCargo 5
carCapacityFuel 5
trainFuelConsumptionTicks 150
trackLengthScale 1.0
cargoLoadSpeed 0.041666667
cargoLoadStairMultiplier 3.0
cargoLoadOverheadTicks 0
cargoLoadPenaltyStamina 30
cargoLoadPenaltyScale 0.015625

Capacity and timing settings include industryCapacity, siloCapacity, levelCapacity, industryProductionTicks, carCapacityCargo, carCapacityFuel, and trainCarsMax. The loader settings shown above control walking speed, stair cost, fixed overhead, and the distance-based slowdown. The same file can adjust fuel consumption, acceleration, cornering and slope multipliers, track and platform prices, and other infrastructure costs. Use the setting names emitted by the game's balance save function.

Back to documentation