SUPERSEDED — moved to a new listing with the "Continued" family naming: mods.factorio.com/mod/Fluid_Trains_Continued. Please use that one; this listing is deprecated and won't be updated further.
Lua libraries for use by other mods and submods that are parts of a larger mod.
Version: 2.0.0
Date: 2026-07-15
Features:
- Ported to Factorio 2.0 (continuation of fluidTrains 0.18.7 by ksmonkey123, MIT).
- Remote interface "fluidTrains_hook" kept unchanged: addLocomotive, addFluid, removeFluid, dumpConfig.
- Pump connection visuals: the pump's own connector arm deploys onto the locomotive when a fluid connection forms, and retracts when the train departs (new - the 1.1 original had no connection visuals).
- Departure hold: like fluid wagons, a train with deployed pump arms cannot leave (scheduled or manual driving) until the arms finish retracting.
- Automatic reconnection: pump connectivity is re-checked while a locomotive is stopped, so pumps that receive fluid after being built now connect (fixes a workflow trap in the original).
- Pump detection now matches any entity of type "pump", so modded pumps work.
- Debug commands: /fluidTrains-dump, /fluidTrains-probe, /fluidTrains-refresh, /fluidTrains-cleanup.
Changes:
- global -> storage, 2.0 get_contents() array format, event.entity rename, prototypes.* accessors, 16-way directions.
- Proxy tank prototypes rebuilt for 2.0 (fluid_box.volume, {direction, position} pipe connections, collision_mask layers).
- Bundled 1.x stdlib removed.
Bugfixes:
- Fake fuel item scrubbing now uses the fluid registry instead of a prototype-group comparison that could never match (dead code in the 1.1 original).
- An unregistered fluid reaching a proxy tank no longer crashes the game (latent crash in the 1.1 original).