Barotrauma

Barotrauma

View Stats:
Best setup for a certain kind of auto door?
I'd like to make an autodoor that behaves as follows:
- By default, is open all the time
- Closes if it detects water (2 sensors; one on each side)
- But, if closed due to water, opens via motion sensor when a crew member approaches

I can do these things individually but I'm not quite sure how to tie it all together. Can anyone advise? Thank you.
< >
Showing 1-15 of 21 comments
simsyu Nov 5, 2022 @ 7:51am 
You want it with or without buttons? Like half or fully automated?
Last edited by simsyu; Nov 5, 2022 @ 7:53am
Yumemirareru Nov 5, 2022 @ 7:53am 
Well, I would be attaching it to the doors that have built in buttons (campaign in-game editing, not the sub editor). But full automation is the idea.
Last edited by Yumemirareru; Nov 5, 2022 @ 7:58am
simsyu Nov 5, 2022 @ 7:56am 
I can make it in the sub editor with each step explained.
Yumemirareru Nov 5, 2022 @ 7:59am 
That would be great if it's not too much inconvenience. But if that's a bit time consuming, I could also probably get it with just an explanation on how to combine the inputs to an output for the door too.
Last edited by Yumemirareru; Nov 5, 2022 @ 7:59am
simsyu Nov 5, 2022 @ 8:03am 
Originally posted by Yumemirareru:
That would be great if it's not too much inconvenience. But if that's a bit time consuming, I could also probably get it with just an explanation on how to combine the inputs to an output for the door too.
I don't know what you had in mind but it's simpler than it looks, you'll see.
simsyu Nov 5, 2022 @ 8:18am 
Done. I'll upload it
Yumemirareru Nov 5, 2022 @ 8:30am 
Found it. Thank you again
Yumemirareru Nov 5, 2022 @ 8:43am 
Hmm. So if I understand what it's doing... if either water detector detects water, the 'or' component sends "0" to the door to close it, but then the motion detector uses relays to block this signal and send its own if crew (well, anything in the example config) is nearby?
simsyu Nov 5, 2022 @ 8:45am 
Sorry, I had problems uploading it.

For others eventually interested:
1 Or component
2 water detectors
1 motion detector

-Set water detectors placed on each side of the door output to 0 and false to 1
-Connect motion detectors and water detectors to the Or comp input
-Then connect the Or comp to door set_state
Done.
Yumemirareru Nov 5, 2022 @ 8:50am 
Hm, even after restarting my workshop doesn't seem to want to update to that version. Though the relay method seems like it might be handy to build on for more complex logic.
simsyu Nov 5, 2022 @ 8:53am 
Originally posted by Yumemirareru:
Hm, even after restarting my workshop doesn't seem to want to update to that version. Though the relay method seems like it might be handy to build on for more complex logic.
I thought about it at first but less items is always simpler to install.:barotrauma::ambition:

Still, I don't know how to upload an update on the new workshop upload interface, gotta figure that out...
Last edited by simsyu; Nov 5, 2022 @ 8:55am
Yumemirareru Nov 5, 2022 @ 8:59am 
Yeah definitely. I just have trouble thinking in the right way to translate the logic I want into circuit logic.

But, one more question. In the post above... if the water detectors are sending '1' for false output, wouldn't this mean both detectors have to see water before it would close? Since the 'or' component, then, wouldn't change state unless both inputs are 0? (Am I missing something?)
simsyu Nov 5, 2022 @ 9:13am 
Originally posted by Yumemirareru:
Yeah definitely. I just have trouble thinking in the right way to translate the logic I want into circuit logic.

But, one more question. In the post above... if the water detectors are sending '1' for false output, wouldn't this mean both detectors have to see water before it would close? Since the 'or' component, then, wouldn't change state unless both inputs are 0? (Am I missing something?)
You're right, it but it wouldn't be much of a problem since the door is always open.
The initial relay method I had will solve this issue but it's a lot more steps, it needs 1 relay and 1 not comp added to required items in the previous post.

Set water detectors back to normal (output 1 and false 0)
Set Or comp output to 0 and false to 1
Connect water detectors to Or comp input
Connect Or comp to Relay signal_in 1
Connect Relay to signal_out 1 to door set state

Connect motion detector to door set_state and Not comp input
Connect Not comp output to Relay set state
Done.
Last edited by simsyu; Nov 5, 2022 @ 9:15am
Yumemirareru Nov 5, 2022 @ 9:18am 
Hmm. While it might not be a problem when flooding first starts - it could be a bit more problematic once the door is closed, and one compartment drains but the other (perhaps with a breach) doesn't, and then the door starts to flicker open and closed as water hits sensor 2, then gets drained, then the door opens and hits it again, etc etc...

Since my group plays with vanilla subs anyways it's already light on components - so I think I'll use the relay solution if that's what's necessary.
simsyu Nov 5, 2022 @ 9:32am 
Originally posted by Yumemirareru:
Hmm. While it might not be a problem when flooding first starts - it could be a bit more problematic once the door is closed, and one compartment drains but the other (perhaps with a breach) doesn't, and then the door starts to flicker open and closed as water hits sensor 2, then gets drained, then the door opens and hits it again, etc etc...

Since my group plays with vanilla subs anyways it's already light on components - so I think I'll use the relay solution if that's what's necessary.
It seems like you've made your choice, take it. It's yours now.
< >
Showing 1-15 of 21 comments
Per page: 1530 50

Date Posted: Nov 5, 2022 @ 7:15am
Posts: 21