Page 1 of 1

Simplify barrel recipes.

Posted: Sat Feb 29, 2020 12:52 am
by waitofaiorur
TL;DR
Only need two: fill barrel, and empty barrel.

What ?
What's with all the recipes? There's an input. Put whatever comes in into the barrel and be done with it :)
Why ?
Less recipes makes for happy eyes :)
Also...
Why are there barrels? Feels like fluid-wagons pretty much nuked the concept.

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 3:38 am
by nctdev
You can't mix fluids tho

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 4:43 am
by Ranakastrasz
nctdev wrote:
Sat Feb 29, 2020 3:38 am
You can't mix fluids tho
That just means it doesn't have to swap recipies.


Basically this idea is to make a generic barreling recipie that makes it act like a furnace.

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 5:30 am
by wobbycarly
Once use for barrels is for bots to move liquids.

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 5:41 am
by ssilk
With the coming/existing changes of pipe handling you need to tell the pipes, which fluid must be in. How should that work, if you don’t know that?

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 11:02 am
by waitofaiorur
ssilk wrote:
Sat Feb 29, 2020 5:41 am
With the coming/existing changes of pipe handling you need to tell the pipes, which fluid must be in. How should that work, if you don’t know that?
I'm not sure I understand, could you elaborate?
Are your concerned with what would happen with any fluid-remainder when you connect a new fluid?

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 12:39 pm
by darkfrei
ssilk wrote:
Sat Feb 29, 2020 5:41 am
With the coming/existing changes of pipe handling you need to tell the pipes, which fluid must be in. How should that work, if you don’t know that?
The barreling processor reads the fluid by the input/output and sets the recipe automatically.
Yes, like a furnace sets the recipe based on input items.
No, there is no fluid changing after it.
Yes, if the connected pipe was total emptied, there is no recipe anymore, but if the new fluid comes, then the recipe will be changed to the right one.

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 2:02 pm
by Nemo4809
darkfrei wrote:
Sat Feb 29, 2020 12:39 pm
Yes, if the connected pipe was total emptied, there is no recipe anymore, but if the new fluid comes, then the recipe will be changed to the right one.
The way fluids work in the game is kind of "imprecise".

Don't think you can ever tell if a pipe system is truly empty.

Also the recipe list acts to inform the player what "fluids" can and cannot be barrelled - although there is only one exception to barrelling, steam.

Re: Simplify barrel recipes.

Posted: Sat Feb 29, 2020 6:30 pm
by waitofaiorur
Nemo4809 wrote:
Sat Feb 29, 2020 2:02 pm
darkfrei wrote:
Sat Feb 29, 2020 12:39 pm
Yes, if the connected pipe was total emptied, there is no recipe anymore, but if the new fluid comes, then the recipe will be changed to the right one.
The way fluids work in the game is kind of "imprecise".

Don't think you can ever tell if a pipe system is truly empty.

Also the recipe list acts to inform the player what "fluids" can and cannot be barrelled - although there is only one exception to barrelling, steam.
If user attempts to connect a different fluid any remaining fluid should be removed and the recipe should be replaced.
If steam is the only exception, a message regarding this instead of a gazillion recipes would be better imo.

Re: Simplify barrel recipes.

Posted: Sun Mar 01, 2020 6:10 am
by ssilk
So this should work for liquids like a furnace: create best matching recipe?

Developers of liquid network would not like it, because that makes things much more complex. ;)

Re: Simplify barrel recipes.

Posted: Sun Mar 01, 2020 2:26 pm
by waitofaiorur
ssilk wrote:
Sun Mar 01, 2020 6:10 am
So this should work for liquids like a furnace: create best matching recipe?

Developers of liquid network would not like it, because that makes things much more complex. ;)
There should never be anything but a single match.
The problem in itself is not very complex, but integrating it into existing code may very well be :)

My initial thought was that this was a low-hanging fruit, but if it is not, throw my suggestion right in the garbage can and spend the time working on something else :)

Re: Simplify barrel recipes.

Posted: Sun Mar 01, 2020 2:40 pm
by Selvek
I think it comes down to how the logic preventing fluid mixing works. AFAIK, which fluid is in a given pipe is defined by what producers and consumers are connected to it, and as soon as a pipe section has a fluid defined, you can no longer connect to pipes containing another fluid.

So, if the recipes don't tell the game logic which fluid they're producing, it doesn't know what pipe networks the assembler is allowed to connect to. So if you unbottle the wrong fluid, mixing would happen which is not ok 🤣