Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
http://starbounder.org/X_Or_Switch
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.