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 treatsCode: 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}}
}
}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}}
}
}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.

