Barotrauma

Barotrauma

Yet Another Airlock
8 Comments
uberdrück  [author] 15 Jul, 2022 @ 8:37am 
Thank you! Also, there's an option now to open the airlock faster when flooding.
Noble 15 Jul, 2022 @ 6:55am 
Just wanted to say, all the electrotraa stuff is great! Thanks!
uberdrück  [author] 15 Jul, 2022 @ 6:42am 
Btw, I'm working on implementing your suggestion for the 80% option. You could just set the target signal of a signal component to "80" (the one at the bottom of the overview labeled flooding->open, that's connected to water detector % output) - it can be done with an external input as well, so it's configurable in-game. However, that solution is not 100% safe. It should work for one or two ducts, but if for some reason the water level rises fster than the game can keep up with, the detector might skip the number "80" and the door won't open.

I will include a few regex components that use ranges instead (eg 80-100), as optional replacements for the signal component; that solution would always work but is hard-wired.
Jun Gling 15 Jul, 2022 @ 5:45am 
Oh, i see! Kudos for such detailed answer. Also, i didn't want to bother you with more wiring, as i've said, two duct blocks mostly did the job, i was just asking out of curiosity if there is a better way that i've missed.
uberdrück  [author] 15 Jul, 2022 @ 4:06am 
As for the speed issue, I've never had this problem when using two duct blocks, but then my airlocks tend to be tiny.
For now, I think that the control inputs are exhausted and can't be used for that without some deeper modifications, and more ducts is the way to go (up to four should be possible easily, since the signal comp. that controls ducts has three slots left, but you can have dozens by splitting the signal output with a relay).
Adding a true skip option would require the outer door to have buttons as well, I'll try to come up with something like this later.
uberdrück  [author] 15 Jul, 2022 @ 4:00am 
Thanks for your feedback!
There is no difference in the signals of the two "state" relays, they are just to split the memory input/output (the relays for water detector, inner door and buttons are a different in that regard).
To connect another module, simply use the relay that comes with the extra module:

-Remaining signal_out of blue relay in airlock circuit - > signal_in of the blue relay of the extra module (which ever channel is connected to the components)
-Signal_out of green relay of extra module (whichever channel is connected) -> Remanining signal_in of green relay in airlock circuit

You can connect the relays of the next module in a similar fashion, directly to the airlock circuit relays if wire slots remain, or to the relay(s) added by the first module.
(I should maybe add a few examples for this later)
Jun Gling 15 Jul, 2022 @ 1:53am 
Also, is there a difference between outputs from signal_out_1 and signal_out_2 or they are just to increase wiring capabilities? I'm asking because on upper airlock i use basic version with no docking, and i wanted to add auto close and color change and as i understood, you need to rewire needed modules to state in and state out relays, but on basic version there is only two unused slots for wiring on state out relay, others are used by logical components already, so im a little confused. I'm new to sub edidting, so i might be missing something obvious...
Jun Gling 15 Jul, 2022 @ 1:53am 
Great assembly, huge thanks for adding it. Installing it is really intuitive and simple, i installed it on Orca's lower docking port and airlock, works like a charm. Few questions though. People i play with tend to be rather impatien sometimes, is there a way to speed up exiting process if you want? I got that you can skip draining/flooding only when you try go get IN, but not OUT, so i just slapped additional duct block and that did the trick, but maybe there is a way to make it more subtle, like for outer hatch to open when airlock if flooded for 80% maybe?