[2.1.7] Fluids in connected storage deleted on recipe change

This subforum contains all the issues which we already resolved.
User avatar
MEOWMI
Filter Inserter
Filter Inserter
Posts: 381
Joined: Wed May 22, 2019 12:21 pm
Contact:

[2.1.7] Fluids in connected storage deleted on recipe change

Post by MEOWMI »

In the new experimental 2.1.7, fluids are deleted from connected storage if a producer changes recipe.

See attached save for example (look at the fluid storage tank as the recipe automatically resets periodically).

- What did you do?
Clear a recipe by circuit control. In this case, it's the recipe for quantum processors.

- What happened?
All fluid is cleared, everything in the tank (all 10k) and in the electromagnetic plant.

- What did you expect to happen instead? It might be obvious to you, but do it anyway!
Fluid from the plant is cleared (and flushed to the tank), otherwise tanks contents remain as they are (it should not make 10k fluid disappear).

- Does it happen always, once, or sometimes?
Every time (about 20/20 attempts)
Attachments
liquids_deleted_fluoroketone_00.zip
(1.02 MiB) Downloaded 14 times
Last edited by MEOWMI on Thu Jun 25, 2026 10:47 am, edited 1 time in total.
gridstop
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Sun Jul 17, 2016 1:46 am
Contact:

Re: [2.1.7] Fluids in connected storage deleted on recipe change

Post by gridstop »

I was just coming to report this. Clearing the recipe on a EM plant flushes the entire pipe extent on both sides for a passthrough.

That is, a EM plant is consuming light oil to make superconductors, with storage tanks on both sides of the through pipe containing light oil. When the recipe clears due to the circuit clearing, it completely flushes both sides including storage tanks. I think this behavior is unique to the new logic around through-pipes. I don't see the behavior on normal inputs of assembly machines.

What I would expect:
The fluid should be pushed out into the pipes if possible (perhaps half to each newly separated pipe extent, though not critical), and only the internal buffer destroyed if there is no room, same as happens on a normal input for an assembly machine.


Demonstration:
Place the BP, wait a few ticks for the fluid network to fill. Delete the one pipe connecting the infinity pipe to the tank. Then turn off the constant combinator to clear the recipe.

Code: Select all

0eNqVlO1u6jAMhu/Fv9OJlPJV6VwJQlVoTRctTXrysQ2h3vucIsqAcM4m/hTHfuy8tnOCvQrYW6k9lCeQtdEOyu0JnGy1UNGmRYdQgvPGihYzL/QbDAykbvATSj6whDMqrL01nWg1ellnvRKU4BqVDzsGqL30Es/5xj/HSoduj5awLJmXQW8cBRkdk0XQrHhZMDhCOef8ZTHEau5Q+YTqZU8ck7XWBN2kYMsJlhOMQSMtXWT04HmCPf8Fe/OcXSTQBfu3mI8ZeH7hE50aSTGq2uOreJfGjt3VffAVQT6MfXPRYrGB0tuADFqLSKiDUA4p3gSfdB7PJ+8YSs4OfUWXIQkuNIuiqaQmt0bSxdzkenEDF3q0VGUTauowXE6qv0Eo0oE8tLEdTVVCm8XPZee38/H/li4ndtwFmjqf1abbSy3OZT4kmGZmth4TpJR355Tu9nt7mraIwUEqj/beelmCe7EeVIp5u17YscoS/oyGELeaKLLrjfXVgYaIzg5BtbRTMOzol9qY1S/kXT2XNzXV65/uNb9dlwRqc1NlApHzCTFPI/jsumSYSX2Qmo6zZ7z8hhcfs3NARfPvadjdtxdQyfbVZ0bGzsTeUWa6LZSzyPDYkU34YMmSk6EzzVjEp6i9OsIQn8cPUjKOw7ZgnC0Z35FNUiT5Xd9sBu80NGORi2W+WRR5sV4Xq/mSD8MXYlrziQ==
Rseding91
Factorio Staff
Factorio Staff
Posts: 17070
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Fluids in connected storage deleted on recipe change

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Yoyobuae
Filter Inserter
Filter Inserter
Posts: 516
Joined: Fri Nov 04, 2016 11:04 pm
Contact:

Re: [2.1.7] Fluids in connected storage deleted on recipe change

Post by Yoyobuae »

This issue seems to only have been fixed in 2.1.8 when switching from a recipe that requires fluid to the "no recipe set" state. Setting recipe by circuits always goes thru the "no recipe set" state.

Fluid is still voided when switching recipe by other methods from a recipe requiring a fluid to a different one that doesn't require fluids (or requires a different fluid).

In the attached save file try changing the recipe of the Electromagnetic plant via either copy&paste of the blueprinted ghosts, or via shift+right-click from the ghost and shift+left-click on the placed EM plant. The fluid in storage tank will misteriously disappear for some recipe changes:
  • Any recipe --> No recipe set: Fluid is preserved
  • No recipe set --> Any recipe: Fluid is preserved
  • Any recipe --> Processing Unit recipe: Fluid is preserved
  • Processing Unit recipe --> Any recipe (except No recipe): Fluid is deleted
2.1.8_recipe_change_voids_fluids.zip
(522.94 KiB) Downloaded 7 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 17070
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1.7] Fluids in connected storage deleted on recipe change

Post by Rseding91 »

Can you make a new report with the details?
If you want to get ahold of me I'm almost always on Discord.
Yoyobuae
Filter Inserter
Filter Inserter
Posts: 516
Joined: Fri Nov 04, 2016 11:04 pm
Contact:

Re: [2.1.7] Fluids in connected storage deleted on recipe change

Post by Yoyobuae »

Rseding91 wrote: Sun Jun 28, 2026 7:52 pm Can you make a new report with the details?
Made new report here.
Post Reply

Return to “Resolved Problems and Bugs”