fluid mixing prevention should take the maximum of minimum_temperature and minimum of maximum_temperature

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
graugram
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Jul 13, 2026 4:19 pm
Contact:

fluid mixing prevention should take the maximum of minimum_temperature and minimum of maximum_temperature

Post by graugram »

Hello everyone,
sorry for the strange title and for not knowing in which sub-forum this topic belongs.
In the Factorio Friday Facts #442 the fluid mixing prevention was presented. While this system does a good job I find it does the job a bit too good.
The Problem
The system treats

Code: Select all

fluid_box = {
	production_type = "input",
	filter = "steam",
	minimum_temperature = 100.0,
	pipe_covers = pipecoverspictures(),
	volume = 100,
	pipe_connections = {
		{flow_direction = "input-output", direction = defines.direction.east, position = {1, 1}},
		{flow_direction = "input-output", direction = defines.direction.west, position = {-1, 1}}
	}
}
steam with a minimum_temperature of 100°C as "unrelated fluid" to

Code: Select all

fluid_box = {
	production_type = "input",
	filter = "steam",
	minimum_temperature = 465.0,
	pipe_covers = pipecoverspictures(),
	volume = 100,
	pipe_connections = {
		{flow_direction = "input-output", direction = defines.direction.east, position = {1, 1}},
		{flow_direction = "input-output", direction = defines.direction.west, position = {-1, 1}}
	}
}
steam with a minimum_temperature of 465°C. (These definitions are used for a FluidEnergySource) The solution should be to take the 465°C for the resulting filter.
The Why
I'm tinkering on a "steampunk" mod (well, more steam then punk) and replacing the entire energy distribution system. Meaning every building is powered with steam. To make things more interessting my "early game" buildings are powered with 165°C steam while my "end game" buildings require at least 465°C steam. It's like having two electric grids for two different voltages. To make it easier all entities have two pipe_connections with flow_direction = "input-output", where the fluid mixing prevention is triggerd. All my inserters use the first filter (minimum 100°C) so placing them between my "end game" entities with the second filter (minimum 465°C) will raise the fluid mixing error.
In the 2.0 version without the fluid mixing prevention this worked fine. Now in 2.1 with the fluid mixing prevention this is a nightmare.
The Proposed Solution
For me it would be fine if the fluid mixing prevention would take the harder condition for the new filter. Meaning taking the highest minimum_temperature (and lowest maximum_temperature) of all involved fluid_box'es (identical fluid required, of course).
User avatar
Osmo
Filter Inserter
Filter Inserter
Posts: 325
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: fluid mixing prevention should take the maximum of minimum_temperature and minimum of maximum_temperature

Post by Osmo »

This might be the same problem as this bug viewtopic.php?t=134184
Post Reply

Return to “Modding interface requests”