Skip to content

Auto-detect fluid (water, steam) #9

Description

@bengardner

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:

  • the requester pipe/tank starts in 'auto' mode (not configured).
  • on each service, it scans the connected fluid boxes looking for requests.
  • if it finds demand for exactly one fluid, then the pipe/tank is reconfigured to request that fluid

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions