Empyrion - Galactic Survival

Empyrion - Galactic Survival

Donny May 9, 2022 @ 5:11pm
Multiple Switching
I was wondering, is it possible to have more than one switch for a group of lights?
I'm trying to build a far bigger capital craft than i usually build, it has a large hanger for multiple small craft.
The light switch is currently at the entrance to the hanger the craft exit is by a hanger door at the other end.
To economize on fuel whilst I'm away I want to turn off the lights, there are a lot of them, so it would be very useful to have a secondary switch at the hanger door as well, can this be done?
I did think of using multiple movement activated switches and having lights in small groups for each switch but i'm hoping there is a simpler 2 switch option available.
< >
Showing 1-10 of 10 comments
Natjur May 9, 2022 @ 5:14pm 
use the circuits option (xor gate)
where the two inputs are the switches and the output is used to control the lights
Last edited by Natjur; May 9, 2022 @ 5:15pm
El Poto May 9, 2022 @ 6:35pm 
XNOR, actually, that way lights will turn off only when both switches are in the same state, doesn't matter if off or on. This way you can switch off / on regardless of the other switch state. Hope I'm not confusing you. Otherwise, with the XOR gate you'll have to have both off for the lights to shutdown.

By the way, you can still use multiple switches to activate a movement sensor. I use it this way because during the day I really don't need lights at all.
Last edited by El Poto; May 9, 2022 @ 6:56pm
XOR or XNOR both accomplish the same task here. Either is acceptable and will accomplish what you're trying to do. The truth tables both have 2 ons and 2 offs and you can effectively control it with one switch regardless.

XOR
Switch A Switch B Light Status
ON ON OFF
OFF ON ON
ON OFF ON
OFF OFF OFF

XNOR
ON ON ON
OFF ON OFF
ON OFF OFF
OFF OFF ON

For the sake of having two logic gates, it'll accomplish the same task. If you really wanted to get funky, you could tie the output of this XNOR/XOR to the output of a motion sensor, feed it threw an OR gate, and then really have a signal intensive light setup. You know, if you're feeling freaky.
Last edited by Bofa Ligma of Segondese; May 9, 2022 @ 8:19pm
Natjur May 9, 2022 @ 7:25pm 
This is why I just use the scripting mod instead and just have the code control it all instead of so many circuit gates. (turn off excess lights when in the pilot seat, auto turn off engines when I leave the pilot seat etc etc)
Last edited by Natjur; May 9, 2022 @ 7:25pm
El Poto May 9, 2022 @ 7:58pm 
"For the sake of having two logic gates, it'll accomplish the same task."

Not really. The XOR will work but not as conveniently as the XNOR.

The XNOR is the only one that'll give you that staircase double switch functionality. Want to go up the stair case? Flip the switch at the bottom to turn on the light, go up, flip the switch at the top to turn the light off. Your mom was also downstairs or you just happen to have another exit and you are coming up again: just flip the switch a the bottom again and the light comes on again, go up the stairs and flip the switch at the top, the light comes off. Works every time no matter at what lever you are, you can always switch off/on by flipping the switch at your current location.

With the XOR, in the other hand, when you reach the first lever and the lights are off you'll be able to turn them on, but when you reach the top of the stairs (the other location), you won't be able to turn the light off. You only have one one option for off (funny, you said you had two but your table is showing only one). :steamhappy:
I myself had that one backwards so not mocking you, we all make mistakes.
Last edited by El Poto; May 9, 2022 @ 8:02pm
Thanks for pointing out the Typo, it still works the same. You have either switch is capable of opening and closing the door regardless of the status of the switch.

Bottom switch is on? Turn the top one on. Lights are now off.
Bottom switch is off? Turn the top on off. Lights are now off.

An XNOR gate is literally the same as an XOR gate with an inverter. They behave the exact same in that regard.
I just assign the Lights group to a shortcut.
El Poto May 9, 2022 @ 8:53pm 
Originally posted by Entroponial:
Thanks for pointing out the Typo, it still works the same. You have either switch is capable of opening and closing the door regardless of the status of the switch.

Bottom switch is on? Turn the top one on. Lights are now off.
Bottom switch is off? Turn the top on off. Lights are now off.

An XNOR gate is literally the same as an XOR gate with an inverter. They behave the exact same in that regard.

I stand corrected! :steamthumbsup:
Donny May 10, 2022 @ 9:48am 
Thanks to everyone for their input, as everyone answered my question correctly it would be unfair to quote any specific person giving the correct answer.



Originally posted by Natjur:
use the circuits option (xor gate)
where the two inputs are the switches and the output is used to control the lights


Originally posted by El Poto:
XNOR, actually, that way lights will turn off only when both switches are in the same state, doesn't matter if off or on. This way you can switch off / on regardless of the other switch state. Hope I'm not confusing you. Otherwise, with the XOR gate you'll have to have both off for the lights to shutdown.

By the way, you can still use multiple switches to activate a movement sensor. I use it this way because during the day I really don't need lights at all.


Originally posted by Entroponial:
XOR or XNOR both accomplish the same task here. Either is acceptable and will accomplish what you're trying to do. The truth tables both have 2 ons and 2 offs and you can effectively control it with one switch regardless.

XOR
Switch A Switch B Light Status
ON ON OFF
OFF ON ON
ON OFF ON
OFF OFF OFF

XNOR
ON ON ON
OFF ON OFF
ON OFF OFF
OFF OFF ON

For the sake of having two logic gates, it'll accomplish the same task. If you really wanted to get funky, you could tie the output of this XNOR/XOR to the output of a motion sensor, feed it threw an OR gate, and then really have a signal intensive light setup. You know, if you're feeling freaky.


Originally posted by Natjur:
This is why I just use the scripting mod instead and just have the code control it all instead of so many circuit gates. (turn off excess lights when in the pilot seat, auto turn off engines when I leave the pilot seat etc etc)


Originally posted by Entroponial:
Thanks for pointing out the Typo, it still works the same. You have either switch is capable of opening and closing the door regardless of the status of the switch.

Bottom switch is on? Turn the top one on. Lights are now off.
Bottom switch is off? Turn the top on off. Lights are now off.

An XNOR gate is literally the same as an XOR gate with an inverter. They behave the exact same in that regard.


Originally posted by The Big Brzezinski:
I just assign the Lights group to a shortcut.


Originally posted by El Poto:
Originally posted by Entroponial:
Thanks for pointing out the Typo, it still works the same. You have either switch is capable of opening and closing the door regardless of the status of the switch.

Bottom switch is on? Turn the top one on. Lights are now off.
Bottom switch is off? Turn the top on off. Lights are now off.

An XNOR gate is literally the same as an XOR gate with an inverter. They behave the exact same in that regard.

I stand corrected! :steamthumbsup:
Yascherrica May 10, 2022 @ 10:22am 
Why not use motion sensor or two? way easyer
< >
Showing 1-10 of 10 comments
Per page: 1530 50

Date Posted: May 9, 2022 @ 5:11pm
Posts: 10