From 51d4f805a54f4b900047b119cf77671bcf7dd43e Mon Sep 17 00:00:00 2001 From: Allister MacLeod Date: Fri, 2 Feb 2024 23:27:14 -0500 Subject: [PATCH 1/2] Widening tolerance for pumps if Mini Trains exist. Mini Trains fluid wagons are less precisely aligned with expected pump locations, so some tolerance is needed for pumps to reach properly. Mini Trains already adjusts the vanilla pump (Pump 3 in Nullius) to have a tolerance of 0.625. --- nullius/prototypes/mods.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nullius/prototypes/mods.lua b/nullius/prototypes/mods.lua index 2f755d5..a443027 100644 --- a/nullius/prototypes/mods.lua +++ b/nullius/prototypes/mods.lua @@ -4072,6 +4072,11 @@ if mods["Mini_Trains"] then prerequisites = {"nullius-personal-transportation-1", "nullius-checkpoint-freight-transportation"} } }) + -- Mini Trains fluid wagons are oddly aligned, so it helps to have a wider tolerance on pumps. + data.raw["pump"]["nullius-pump-1"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; + data.raw["pump"]["nullius-pump-2"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; + data.raw["pump"]["nullius-small-pump-1"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; + data.raw["pump"]["nullius-small-pump-2"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; end if mods["fcpu"] then From da20b5759153a31df0f95d134346b416c5d9434e Mon Sep 17 00:00:00 2001 From: Allister MacLeod Date: Sat, 3 Feb 2024 09:21:47 -0500 Subject: [PATCH 2/2] Removing small pumps from the alignment tolerance adjustment. --- nullius/prototypes/mods.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nullius/prototypes/mods.lua b/nullius/prototypes/mods.lua index a443027..1b64e71 100644 --- a/nullius/prototypes/mods.lua +++ b/nullius/prototypes/mods.lua @@ -4072,11 +4072,9 @@ if mods["Mini_Trains"] then prerequisites = {"nullius-personal-transportation-1", "nullius-checkpoint-freight-transportation"} } }) - -- Mini Trains fluid wagons are oddly aligned, so it helps to have a wider tolerance on pumps. + data.raw["pump"]["nullius-pump-1"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; data.raw["pump"]["nullius-pump-2"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; - data.raw["pump"]["nullius-small-pump-1"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; - data.raw["pump"]["nullius-small-pump-2"].fluid_wagon_connector_alignment_tolerance = 20.0 / 32.0; end if mods["fcpu"] then