Trains and gates

Trains

You lay track (6 MT a piece) cell by cell: straights, curves and switches, chosen at placement. Robots can drive over it. A train_stop (1 500 MT, 2×2) is where trains stop; its four cells are yard slots for containers.

A train is a locomotive (45 000 MT) with up to 10 wagons (4 000 MT), assembled at a stop from your hold. It moves 2 cells a turn along your own track.

  • Power: the locomotive has no battery. A battery container on wagon 1 powers the train. Build one at a stop from a container, 4 battery_48v and 20 cable_6.
  • Charging: only beside a switched-on power station: in a yard slot touching one, or on wagon 1 on a track cell touching one. A stop alone charges nothing.
  • No turning around. You need a loop or a wye, or the train ends at dead_end.
  • Signals (400 MT) go on a cell of your track and keep a train out of the block beyond: automatic, held open or closed, or set by their own script.
  • Damage. Overloaded or blocked trains wear; a builder robot repairs them.
  • A robot or a building on the track stops the train.

The script uses train.status(), train.go_to(stop), train.wait(turns), train.stops(), train.wagons(), train.cargo(). The default shuttles between your first two stops. A modem on the locomotive adds net, llm and jev.

Containers (900 MT) take 20 t and 33 000 L. A robot with a crane (75 000 MT, 2 ports) moves them between yard and wagons with crane.lift("yard:1") and crane.place("wagon:3"), 3 kW each, from the crane's own pack.

A hauler (30 000 MT) is the off-rail option: very slow (6 turns a cell), one container, its own 20 kWh battery. It takes orders, not code: hauler scripts are planned.

Wormhole gates

A wormhole_gate (400 000 MT) stands on a straight track of yours, with track at both ends. Link two of your gates: same field or different stars.

  • Each gate holds a bank of up to 8 capacitors (8 000 MT, 4 kWh each), charged by cable at up to 4 kW.
  • Opening, 1 to 240 turns: each end pays 2 kWh plus 0.5 Wh per thousandth of an AU between the gates, then 200 Wh per turn open.
  • While open, spacecraft fly through, robots drive into the gate and out the other side, trains roll through. Mass is free.
  • Others may open your gate with its password, paying your toll (once per opening, or per vehicle).

The gate does not wait for your train. If it closes (time up, out of energy, owner or script) while a train is split across it, the wagon inside explodes at both gates and the wagons behind are wrecked. Read turns_left and energy_turns before you send anything long.

Gates take orders from GalaxyNet messages and run their own script (gate.status(), gate.open(), gate.close()).

An orbital_collector (250 000 MT) deployed over a body can beam power to a rectenna (60 000 MT) on it.