Starbound

Starbound

View Stats:
TOGGLE DOOR
How do you make a toggle between two switches (not buttons) and one door?
Last edited by Skinnyscience; Aug 14, 2016 @ 6:40pm
< >
Showing 1-6 of 6 comments
Dr Pump-a-rum Aug 14, 2016 @ 6:51pm 
Two switches > OR Switch > Door
Dr Pump-a-rum Aug 14, 2016 @ 6:53pm 
Or maybe switches > AND switch > NOT switch > door
Hoshikudaki Aug 14, 2016 @ 7:02pm 
Why not 2 switches connected to XOR?
Dr Pump-a-rum Aug 14, 2016 @ 7:10pm 
I'm just thinking of logic gates off the top of my head, I'll test em in a moment.
Hoshikudaki Aug 14, 2016 @ 8:00pm 
All good, XOR should work, accepts 2 inputs and will only send the open door signal if the inputs are different
http://starbounder.org/X_Or_Switch
MassConnect Aug 14, 2016 @ 8:01pm 
I'm not sure what exactly you are aiming for. But I'll describe what I did.

I wanted to open a door on one side with a switch, then close it on the other side with another switch. Switches stay toggled as supplying power or not supply power, so in order to make the door respond to both switches, I had to use the XOR gate (most space efficient solution).

The result is that the door is closed (not powered) whenever the switches are in the same position. One switch on gets you through the door, and the second switch on closes the door again. Turn them off in reverse order to have the door closed while you're on the opposite side.

The reason I did this was because, for whatever reason, there is a switch the crew doesn't seem to interact with. This allowed me to keep the crew out of cockpit, and created a more immersive feeling that only pilots could open the door.

This won't give you the freedom to open and close the door with both switches, regardless of what position the other switch is in. What it does do is provide you the ability to control whether the door is opened or closed with each switch, and it doesn't really require you to pay attention to which switch is in which position, or force you to use a particular switch. This gives the door more utility in a multiplayer scenario.

If you really wanted to make one switch a master switch to outprioritize the other, you'd have to add a latch, and maybe a third switch. Two switches with a XOR that can be operated when the master switch isn't powered, and then a latch so that the master switch can force the door to remain in one state. In the situation I described, a pilot could use the master switch to ensure that the door was locked and no players on the other side of the door could get in and change the ship's location.

Not entirely as useful as it sounds, but it's more about roleplay than utility. If you really wanted to go to the trouble, and had a means to turn tile protection on for at least part of the ship, you could put a teleporter and flag in the cockpit so that you and only you had a way to get back into the locked cockpit. You could do something similar for any ship's storage room you don't want things stolen from. But no such feature is yet enabled for vanilla.
Last edited by MassConnect; Aug 15, 2016 @ 6:19am
< >
Showing 1-6 of 6 comments
Per page: 1530 50

Date Posted: Aug 14, 2016 @ 6:39pm
Posts: 6