Valves


Adds three seperate animated valves for pipes: overflow, top-up and one-way/check valves. Inspired by Flow Control and Advanced Fluid Handling. The thresholds can be configured using shortcuts. Uses valve functionality provided by Factorio.

Utilities
2 months ago
2.0
50.4K
Logistics Fluids

i [Won't Implement] Add a GUI for configuration

4 months ago

Hi. Cool valves.

It is obvious that a GUI is needed for configuration.

And a mode is very much suggested, where there is one entity instead of three, for which the mode is simply configured.

Thank you.

4 months ago

I see dust when changing the valve setting, which suggests that the entity is replaced when the value is changed, so switching the mode should be easy to arrange :)

4 months ago

Hello!

It is obvious that a GUI is needed for configuration.

That's a subjective opinion :) I like the way it is now. A GUI would be nice to have, but it's complex to make. Maybe I'll add one sometime in the future.

And a mode is very much suggested, where there is one entity instead of three, for which the mode is simply configured.

Not sure what you mean with this. Like being able to change the valve type without having to replace the entity? I have another mod for that Configurable Valves. It doesn't have a GUI, but with a shortcut you can easily change the valve type.

I see dust when changing the valve setting, which suggests that the entity is replaced when the value is changed, so switching the mode should be easy to arrange :)

Nope, I add the dust using script. I'm not hot swapping any entities, just setting the valve_threshold_override. But changing it all into one entity is out of scope for this mod, or swapping between valve types using a shortcut. It's intended to use Configurable Valves if you want this.

4 months ago

Hello!
That's a subjective opinion :) I like the way it is now. A GUI would be nice to have, but it's complex to make. Maybe I'll add one sometime in the future.

GUI хорош тем, что он не выбивается из общей концепции интерфейса.

In fact, it seems impossible. As far as I remember, the API allows you to replace or expand the built-in GUI, and if there is no built-in one, then you won’t be able to attach your own. Only by some workarounds.

Not sure what you mean with this. Like being able to change the valve type without having to replace the entity? I have another mod for that Configurable Valves. It doesn't have a GUI, but with a shortcut you can easily change the valve type.

Yes, Configurable Valves does what it's supposed to do, but it's a monster compared to this mod, which uses the prototype built into the game.

4 months ago

GUI хорош тем, что он не выбивается из общей концепции интерфейса.

In fact, it seems impossible. As far as I remember, the API allows you to replace or expand the built-in GUI, and if there is no built-in one, then you won’t be able to attach your own. Only by some workarounds.

Yeah true, a GUI would integrate better. There are ways to get it to work though, but that's why I said it's complex to make.

but it's a monster compared to this mod

In what way is it a monster? Because of performance? I would argue that it's impossible to the measure the difference between the two valve mods in UPS in a normal use case, or even Py megabse.

Or do you mean it's more complicated to use? Yeah, that it true, but it's what happens if you make things more configurable.

New response