Steam Revolution | Documentation

Track editing and layout files

How track geometry works

Track endpoints are placed on the map grid. A track record connects two endpoints; a straight track follows the direct line between them. Curves are not free-form splines: the game derives their end tangents from the straight tracks connected at each end, then calculates a smooth curve between the endpoints. This is why a curve's shape depends on the surrounding track, and why editing or removing a connected straight can change the curve.

Endpoint coordinates are integer grid positions. The third coordinate is height above the terrain: zero follows the ground, while a nonzero height makes the track a bridge. Ground tracks conform to terrain; bridge tracks use their specified clearance.

Junctions and placement limits

These checks are made when the simulation initializes. A layout can be saved before it is valid, but the game reports the blocking geometry errors when you try to run it.

Editing a playable layout

In track-edit mode, build straight and curved track, then place signals and platforms where trains should stop or load. A depot schedule specifies the engine, cargo cars, train count, and signal routes. Storage buildings provide another destination for cargo. Signal orientation and the sequence of connected blocks matter: a depot needs a valid route forward, and a loop needs appropriate stop signals.

Saved layout text

Layout saves use a versioned text format. The current header is steam_revolution_layout with version 12. The game writes track, signal, schedule, platform, and storage blocks to the save file. Coordinates and references are numeric; track and signal IDs are their zero-based positions in the corresponding lists.

steam_revolution_layout
version 12

track {
    curve false
    v0 2 3 0
    v1 8 3 0
}

signal {
    track 0
    dist 0.5
    side forward
    passage blocking blocking
}

platform {
    pos 5 3
    bridge false
}

storage {
    pos 6 3
    type coal
}

In a track block, curve selects straight or curved geometry, and v0/v1 are endpoint coordinates. The curve's tangent data is reconstructed from connected track rather than stored as editable control points. A signal's dist is its position along the referenced track; side is forward, reverse, or bidirectional. Signal passage types include blocking, free, and chain.

A schedule block stores depot position, number of trains, engine type, cargo list, name, colors, wait settings, and routes. Each route names an entry signal and one or more destination signal IDs. A route's passage pair sets a load mode (auto, load, or unload) and wait policy ( partial, full, or none); cargo_modes can override those settings for individual resources.

schedule {
    pos 2 3
    trains 1
    engine wood
    cars { wheat wheat wheat coal }
    name "Short run"
    color 0 0
    wait_industry 0
    wait_storage 0
    routes {
        route {
            signal 0
            destinations { 1 }
            passage auto partial
            cargo_modes {
                cargo_mode {
                    resource wheat
                    passage load full
                }
            }
        }
    }
}

This schedule excerpt assumes that signals 0 and 1 already exist in the layout. References must resolve: each signal refers to a valid track, and each route refers to valid signals. engine selects the wood, coal, or oil engine slot, regardless of the fuel assigned to that engine.

Layout saves are stored in the user's save data as .sav files. The game also reads its older legacy layout format, but the text format shown here is the current save format.

Copying and blueprints

In track-edit mode, select layout elements and use Ctrl+C to copy them to the system clipboard. Ctrl+V reads clipboard text as a layout fragment and opens a floating placement preview; move it with the cursor, rotate with comma or period, then click to place it. These are the default shortcuts.

Copy and paste use the same steam_revolution_layout text format as saved layouts, including the version header. The clipboard fragment is produced by the normal layout serializer, so you can paste it into a text editor, edit it, copy the complete text back to the clipboard, and paste it into the game. The text must retain a valid layout header and format. Signals attached to copied tracks are included automatically. Copied schedules keep their train and car setup, but their routes and industry/storage wait targets are cleared and need to be set up again.

A blueprint saves the current selection as a reusable .sav layout fragment in the current save's _blueprints folder. Use Ctrl+Shift+B to save a selection as a blueprint and Ctrl+B to load one (default shortcuts). Loading a blueprint puts its text on the system clipboard and opens the same placement preview used by paste.

Back to documentation