Page 1 of 1

Chemical plants output fluids from inputs after resetting recipe

Posted: Thu Nov 07, 2024 4:27 am
by galure
11-07-2024, 03-02-13.png
11-07-2024, 03-02-13.png (1.7 MiB) Viewed 147 times
My setup. Chemical plant : set recipe check, read ingredients chek.
So the constant combinator sets up the recipe of the chemical plant, who in turn sends the ingredients to the requester chest and to the 4 pumps connected to the intake

The incoming pump is set as follow :
11-07-2024, 03-06-55.png
11-07-2024, 03-06-55.png (1.06 MiB) Viewed 147 times
Meaning, it will sets its filter to any requested liquid. In this case, if acid is requested, it will pump the acid, if anything else is requested it will pump nothing,

The outgoing pump is set like this ;
11-07-2024, 03-05-40.png
11-07-2024, 03-05-40.png (587.14 KiB) Viewed 147 times
Basically, if any recipe is set that does not need acid, the pump will enable and thus purge the Chemical plant's intakes from any acid.

It is the same setup for water, on the other side. As for the external pumps connected to the storage tanks, they just ensure that there is never more than 10k water/acid in the storage tanks to allow the purges. This is a pretty basic setup, nothing fancy.

------------------------------------

Here is the (very minor) bug :
I decide to make batteries :
11-07-2024, 03-20-44.png
11-07-2024, 03-20-44.png (1.1 MiB) Viewed 147 times
Note that there is acid only on the right intake.

I switch to making explosives :
11-07-2024, 03-23-37.png
11-07-2024, 03-23-37.png (1.43 MiB) Viewed 147 times
You'll see that now, there is acid on the left intake.
In this particular case this is easily solved by connecting the two intakes, because the chemical plant requests only one liquid.
But what if I want a third recipe, let's say sulfur :
11-07-2024, 03-35-14.png
11-07-2024, 03-35-14.png (1.56 MiB) Viewed 147 times
Now, because there is two different liquid in the recipe, I can't connect the intakes together, right ? So I'm stuck with acid flowing were I don't want it to be.

----------------------------------
What I think is happening : when changing the recipe, the chemical plant "discharges" the leftover liquids stored where it can, in this case in both intakes. But once this happen, the intakes are not "connected" via the chemical plant anymore, thus, you cannot purge all acid in the intake using a pump on only one side.
There are multiple solutions to this problem. A simple solution can be this :
11-07-2024, 03-42-29.png
11-07-2024, 03-42-29.png (1.41 MiB) Viewed 147 times

So I'm not looking for a fix.

-----------------------------------
I just need to understand. Because here's the catch : this doesn't happen for every liquid. As an example, light oil never flows in the "other side", neither does water or petroleum. It ONLY seems to concern acid, in my particular case. This is just a strange behavior and I can't explain the inconsistencies.