Train Foundry for Smart Train Combinator


A large train foundry that assembles complete trains from Smart Train Combinator models: pick a train shape, choose its resource, and the finished train fuels up and drives off onto your rail network on its own. Requires Smart Train Combinator.

Content
7 days ago
2.0 - 2.1
22
Owner:
kardagan
Source:
https://github.com/kardagan/factorio-...
Homepage:
N/A
License:
MIT
Created:
7 days ago
Latest Version:
0.1.0 (7 days ago)
Factorio version:
2.0 - 2.1
Downloaded by:
22 users

Train Foundry for Smart Train Combinator

The train factory for your Smart Train Combinator network. If you drive your
trains with Smart Train Combinator,
this foundry closes the loop: it reads the train shapes your combinators already
define, builds those exact trains for you, and sends them out pre-wired to your
STC stops
— no blueprint, and no hand-editing a single schedule.

Requires Smart Train Combinator.
Prefer defining trains with a blueprint? Get the companion mod
Train Foundry instead — you can run both,
one building of each per surface.

Built around Smart Train Combinator

Smart Train Combinator already knows everything about your trains: which shapes
run on your network (solid/fluid, wagon type and count, storage or not) and how
their stops are named. This foundry taps straight into that:

  • Your combinators are the catalogue. The window doesn't ask you to draw a
    train — it lists the exact shapes your STC combinators describe on the surface.
    Add or change a combinator, and the list follows.
  • The trains slot right into your STC setup. Every train leaves with the
    loading/refuel/stop/unload schedule and a train group built to Smart Train
    Combinator's own station-naming convention
    — so its interrupts match your STC
    stops immediately, exactly as if you'd wired the train by hand.
  • You only choose the cargo. Pick a shape, pick what it carries — that's it.
    The foundry handles composition, fuel, schedule, group and dispatch.

So instead of blueprinting a train, tuning its schedule, and hoping the stop
names line up, you press two buttons and a matching train rolls onto your STC
network.

How it works

  • Place it anywhere buildable. The foundry lays its own exit track — no need
    to prepare a rail first. Just connect your network to the exit afterwards.
  • Pick a train shape. The foundry's window lists the distinct shapes your
    Smart Train Combinator combinators describe on this surface: solid or fluid,
    wagon type, wagon count, and the storage variant. There is no blueprint chest —
    the shapes come straight from your combinators.
  • Choose the resource. Click a shape, then pick what the train carries (the
    picker only offers items for a solid shape, fluids for a fluid shape).
  • Feed the parts. Each build pulls its locomotives and wagons from the
    foundry's internal stock — fill it by hand or with inserters. Each component
    shows an available/required ratio, green when covered, red when short.
  • Off it goes. The finished train leaves with a ready-made schedule — a
    loading stop plus refuel, stop and unload interrupts — and a train group that
    encodes its shape. The station names match Smart Train Combinator's own naming,
    so the interrupts line up with your STC stops out of the box.

Fuel, handled for you

You don't pick a fuel. The foundry fills every locomotive with the best unlocked
fuel
available in its stock, and only starts a build once one compatible fuel is
present in a full load. The generated refuel interrupt covers every fuel the
locomotive can burn (it tops up at 10% and leaves once full). A solar locomotive
needs no fuel and gets no refuel interrupt. The window shows a fuel row, and the
circuit "read requests" mode asks for every candidate fuel so at least one is
delivered by your logistics.

Left or right exit, longer trains, and more

  • Exit sides. Trains leave to the left (west) by default; enable a right
    (east) exit in the Configuration window. The train takes whichever open
    side its schedule leads to.
  • Longer trains. Chain extensions against the east side — each module adds
    room for five more vehicles.
  • Circuit network. Broadcast the stock contents or the components (and fuels)
    still needed.
  • Clear a stuck train. If a built train cannot leave, one click destroys it
    and refunds its cost.
  • Remote control. A shortcut-bar button (or CTRL+ALT+F) opens the foundry
    from anywhere. One foundry (chain) per planet.
  • Compatible with vanilla, Space Age and Nullius.