Fluid Wagons, Curved Rails, and fluid_wagon_connector_alignment_tolerance
Posted: Mon May 26, 2025 11:36 pm
Hi, I'm trying to get pumps working with a fluid wagon on an ever-so-slightly curved rail. There's a mod called Fluid Wagon on Curved Rails (https://mods.factorio.com/mod/fluid-wagon-curved-rails/) but it's out of date and there's no source, so I'm trying to replicate the basic mod functionality myself. I found an old 2021 thread here (viewtopic.php?p=553446) that mentions fluid_wagon_connector_alignment_tolerance, with a user saying they set this value to 1.0 in Factorio\data\base\prototypes\entity\entities.lua and it worked for them.
I have tried setting this value to a range of things (1.0, 5.0, 100.0) but my pumps never start pumping into the wagon on the curved rail. I've also tried commenting out the fluid_wagon_connector_graphics initialization (thinking maybe it was waiting for an animation to finish) but that doesn't seem to help - the pumps don't animate connecting to the wagon anymore but they still pump/don't pump the same. Line 7081 to 7083 in my entities.lua are the only things I've changed and are simply this:
(to be explicit, I'm restarting the game between every entities.lua edit, as well).
I've attached a screenshot where the top, straight wagon is actively receiving fluid and the bottom wagon is just *barely* curved and not getting anything.

Is there a way to get the pumps to start pumping into the bottom wagon? Am I looking in the right place?
I have tried setting this value to a range of things (1.0, 5.0, 100.0) but my pumps never start pumping into the wagon on the curved rail. I've also tried commenting out the fluid_wagon_connector_graphics initialization (thinking maybe it was waiting for an animation to finish) but that doesn't seem to help - the pumps don't animate connecting to the wagon anymore but they still pump/don't pump the same. Line 7081 to 7083 in my entities.lua are the only things I've changed and are simply this:
Code: Select all
fluid_wagon_connector_alignment_tolerance = 100.0,
--fluid_wagon_connector_graphics = require("prototypes.entity.pump-connector"),
I've attached a screenshot where the top, straight wagon is actively receiving fluid and the bottom wagon is just *barely* curved and not getting anything.

Is there a way to get the pumps to start pumping into the bottom wagon? Am I looking in the right place?