need help with fluids on bot mall

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
boeljoet
Inserter
Inserter
Posts: 32
Joined: Fri Sep 09, 2016 7:54 am
Contact:

need help with fluids on bot mall

Post by boeljoet »

hi all. this is going to be a long post.

tldr: i am looking for a way to handle fluids on a full bot mall.

here is a picture and the bps to show u how i want it and what i have so far
afbeelding.png
afbeelding.png (571.46 KiB) Viewed 331 times

explination of the blueprint so far
to use the blueprint u need to set it up:
the red wire is comming off site. it carries what needs to be made in positive numbers and what needs to be recycled in negative numbers.

this red wire goes to a decider combinator. this decider combinator has alsow a green wire going to an constnt combinator.
this constant combinator has saved the items in levels
as i think levels are not commenly used i explain it in this spoiler sections
------------------------------
levels are: number of steps needed to craft an item.
iron ore comes from the ground and is level 0
to smelt an iron ore into an iron plate (using smelters) u do 1 step, so iron plate is level 1
to turn an iron plate into a gear u need another step, so gears are level 2, same with iron sticks and steel beams
uranium ore is alsow mined but when mining it consumes sulferic acid.
as sulferic acid is level 7 uranium ore becomes level 8
the level of an item can be calculated as: "the highest level of allingrediënts +1"

as you go trough the game and unlock new recepies an level of an item can change
early game iron plate is level 1 as you need to just use a smelter.
late game you need to mine both iron ore and calcite to melt the iron ore into molten iron(molten iron is level 1) and then cast it into plates (level 2)
------------------------------

the selector picks the item of lowest level first (if an item has a low level it is more likely to be used in higher level items)
the red wire from the selector is going to the machines that produce and is just set to "set recepie"
the green wire is going to an isolated assembler with both "set recepy" and "read ingredients"
this way it doenst give wrong info to the other assemblers

the "read ingridients" signal is clamped between 0 and 10. and there are some items i always want into a requestor chest. these are items that are commenly used (think of gears)
the clamped signal is fed into all the requester chests with the setting "set request".
the goal/request/chalange
now for the hard part.
in the middle is a pipe, that pipe can use multiple fluids. think of belts witch uses lubricant and concrete wich uses water.

i have the barrels on the robot network. i just dont know how to unload the fluids into the pipe.
once done clear the pipe
and repeat.
other info
i am now using this solution but it is not optimal


alsow added my calculator to see what items i want in the base for testing purposes


if you made it this far thank you for reading this absolutly error infused piece of text and i hope a solution will come fast.
cheers. B
Tertius
Smart Inserter
Smart Inserter
Posts: 1723
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: need help with fluids on bot mall

Post by Tertius »

boeljoet wrote: Wed Jun 24, 2026 1:20 pm in the middle is a pipe, that pipe can use multiple fluids. think of belts witch uses lubricant and concrete wich uses water.

i have the barrels on the robot network. i just dont know how to unload the fluids into the pipe.
For every fluid, build a storage tank. If you have barrels, add an assembling machine to unbarrel, one for each of these fluids (usually just fluoroketone (cold)). For the others, you have a direct connection usually. Connect each of these pipes with a pump to their corresponding buffer tank.
Add circuits to these pumps and to the unbarreling machine and make it so that the tank is just filled up to 5000. It's crucial to not completely fill the tanks, so if you need to swap fluids there is still space to flush the fluid back into the tank. And keep the tank reasonably empty, because flushing into an almost full tank is extremely slow.

Add filtered pumps from each tank to the mall pipe where you want to swap fluids. 2 pumps for each fluid: one to supply this fluid to the pipe and one to remove this fluid and fill it back into its tank.

Add circuits to these pumps so that if a given fluid is required, the corresponding supply pump is activated and all other supply pumps are deactivated, and that the corresponding removing pump is deactivated and all other removing pumps are activated. This way, whenever a fluid is requested, this fluid is being supplied and all other possible fluids are being removed.

Sample image from my automall:
06-24-2026, 20-02-45.png
06-24-2026, 20-02-45.png (1015.37 KiB) Viewed 297 times
boeljoet
Inserter
Inserter
Posts: 32
Joined: Fri Sep 09, 2016 7:54 am
Contact:

Re: need help with fluids on bot mall

Post by boeljoet »

Tertius wrote: Wed Jun 24, 2026 6:04 pm
boeljoet wrote: Wed Jun 24, 2026 1:20 pm in the middle is a pipe, that pipe can use multiple fluids. think of belts witch uses lubricant and concrete wich uses water.

i have the barrels on the robot network. i just dont know how to unload the fluids into the pipe.
For every fluid, build a storage tank. If you have barrels, add an assembling machine to unbarrel, one for each of these fluids (usually just fluoroketone (cold)). For the others, you have a direct connection usually. Connect each of these pipes with a pump to their corresponding buffer tank.
Add circuits to these pumps and to the unbarreling machine and make it so that the tank is just filled up to 5000. It's crucial to not completely fill the tanks, so if you need to swap fluids there is still space to flush the fluid back into the tank. And keep the tank reasonably empty, because flushing into an almost full tank is extremely slow.

Add filtered pumps from each tank to the mall pipe where you want to swap fluids. 2 pumps for each fluid: one to supply this fluid to the pipe and one to remove this fluid and fill it back into its tank.

Add circuits to these pumps so that if a given fluid is required, the corresponding supply pump is activated and all other supply pumps are deactivated, and that the corresponding removing pump is deactivated and all other removing pumps are activated. This way, whenever a fluid is requested, this fluid is being supplied and all other possible fluids are being removed.

Sample image from my automall:
06-24-2026, 20-02-45.png
thank you for the reply and that is a solution however not the one i am looking for.
each slot is 32 by 16 and even a double slot is 32 by 28

if i need to put a storage tank for each fluid inside each slot the amount of usable space dwindels fast .
Tertius
Smart Inserter
Smart Inserter
Posts: 1723
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: need help with fluids on bot mall

Post by Tertius »

Since fluids cannot be shared within one pipe, you have to flush and refill to exchange fluids. You need pumps for that. You need space in the fluid system where you're flushing into, since you cannot flush into something that's full.
All this needs some amount of space.
As far as I see this, I built this in the minimum amount of space. If you find a way to make it smaller, that would be great.

From your response I guess you want to build multiple tiles of what you posted, and every tile should be able to have its own fluid exchange. You can share the 3 tanks across all tiles, but the 2 pumps per fluid for filling/flushing cannot be shared - they need to be present in all tiles, since they are specific to the fluid segment they're filling/flushing.

Ok, I checked your 2nd blueprint (the one with fluid unloading as top left assembler) and I understand now what you're trying to do. Directly fill the pipe by unbarreling. And what's missing or half implemented is filling back into barrels if you want to exchange fluids.
Filling back into barrels cannot work that simple, because they can only handle batches of 50 fluid, but if you consumed some, there is a remainder you cannot fill back into a barrel but have to get rid of to push new fluid into the pipe. It may seem the pipe is empty, but the remainder is in the input buffer of the assembling machine doing the barreling, and if you change the recipe of that machine, the remainder is pushed into the pipe, so it clogs the next fluid.

In case you want to use the same assembler for unbarreling and barreling, you have to take into account the input and output fluid connectors are on opposite sides, so if you output to the bottom at unbarreling, and you change the recipe to fill barrel, the connector will appear at the top.

May be you flush into shared storage tanks, global for all your tiles, and fill back into barrels as soon as there is > 50 fluid. You need separate storage for each fluid, but shared across all tiles. This is half of what I proposed above.

These are so many edge cases and pipe requirements, I would take a different approach.

By the way, in 2.1 we gain the ability to connect circuits directly to a pipe to read pipe and pipeline content, not only storage tank content, so we're able to get rid of storage tanks we just built to be able to read fluid amounts, so you don't need that single storage tank in your 2nd blueprint any more.
06-25-2026, 10-07-11.png
06-25-2026, 10-07-11.png (96.5 KiB) Viewed 246 times
Post Reply

Return to “Combinator Creations”