udf / factorio-auto-resource-redux

A factorio mod that automates most logistics so you can focus on combat
MIT License
3 stars 3 forks source link

Auto-detect fluid (water, steam) #9

Open bengardner opened 2 months ago

bengardner commented 2 months ago

I have been toying with a fork of Item Network for quite a while. I oddly ended up with something that was nearly the same as this mod, but not as refined. (And a lot more of a cheat.) I started pulling in the 'better' features from this mod and then decided it might be quicker to go the other way.

One of the features I added that I really love is the auto-configuration of requester pipes based on the fluid box requirement. Most of that had to do with assemblers, which doesn't apply here since this mod directly adds fluids to the assembling machine.

However, boilers and steam engines don't seem to auto populate with steam or water. I think some sort of auto-config would be useful for those cases.

The logic isn't terribly complicated:

On the other side, when the assembler changes recipe, it resets any directly-connected pipe/tank to auto mode. I'm not sure that applies here, as the assemblers don't need a requester pipe.

The net effect is that I rarely needed to configure a requester pipe.

Is there any interest in that feature? I think it would be helpful for water/steam.

The last WIP code, for reference (ugly, but functional). https://github.com/bengardner/item-network-factorio-mod/blob/arr-entity-gui/src/NetworkTankAutoConfig.lua

bengardner commented 2 months ago

Pull #10 implements this.