Suggestion: PnC Potentiometer
z64555 opened this issue ยท 8 comments
Since several of the pressure tube modules use redstone levels to set the pressure limit (such as the regulator) it would be a good QoL feature to have a potentiometer/rheostat that player can place on or nearby so that they can set the redstone level without needing a clunky chest + comparator.
Currently the only mod that I know of that has this kind of block is Draconic Evolution.
Alternatively, instead of adding a new block, the UI of the modules and other analog RS devices could have a manual setting by right clicking on the block with a wrench to set the desired levels
The Universal Sensor can actually already do this (define a "Constant" sensor). The only downside is that it uses a little pressure to run - not much though. The Universal Sensor can do a lot; it's one of the more underrated machines in PneumaticCraft, IMHO. Well worth playing with.
Also, if you add an Advanced PCB to your regulator or pressure gauge modules, you have pretty much unlimited control over the pressure->redstone level mapping (the Advanced PCB gives the module a GUI upgrade which allows the mapping to be graphically manipulated).
How does that fit your needs?
Ahh, did not know that about either of those. The Advanced PCB is probably the closest to the desired effect, as its standard GUI mode allows you to directly set the threshold, and the advanced mode opens up some refinement for redstone automation.
The Universal Sensor is also good, but a bit clunky when you just want to set a constant redstone signal, so a potentiometer/rheostat might still be a good addition.
Most of my experience with the mod is from the Project Ozone 2 days, and haven't actually gone through all of the items until now. (actually still in the process of doing this)
Yeah, constant pressure requirement just for a constant redstone signal does make the US a bit clunky, agreed (although by definition you're placing it down close to a pressure tube here anyway).
I'd be open to the argument that it shouldn't consume air while running, while needing to be "primed" with enough pressure to start up. i.e. once it has the right pressure (can't remember how much offhand), it can be disconnected from the pressure source.
Note that would only apply to the Constant sensor - other more powerful sensors (e.g. the remote comparator sensor) would still continue to consume a small amount of air.
Do note that we are likely removing this 'you need a specific redstone level for modules' requirement:
a0a615d#diff-373ba1ed262a383f19bf3f73ee889565R48
@desht That does seem to be a reasonable exception for the universal sensor, to have a pressure value to generate an RS level, but doesn't consume air.
@MineMaarten The removal of the pressure requirement makes sense on the safety valve, since folks really just want to make sure their machines don't blow up. If they want to do something more advanced, then they can just install an advanced PCB on it.
The regulator module on the other hand may still want the RS sensitivity, since you can do a lot of things by controlling the pressure level to off-branches of a supply line, or when using a compression chamber as the main air storage. but I dunno. (shrug)
The idea would be to be for the basic regulator just to regulate to 4.5 bar (without a signal) or 0.0 bar (with a signal) - that covers basic high (tier 2) -> low (tier 1) pressure conversion, as well as cutting off a section of tubing. That makes it very simple to use, and covers the basics of what most setups would need.
Your scenario would really be for a more advanced setup where you'll likely already have access to the Advanced PCB, which can unlock the full flexibility of the regulator.
As of v0.6.6 the Universal Sensor can be used as a potentiometer without requiring air (although it does still need to be primed with at least 0.5 bar pressure to run at all).