Fallout 4

Fallout 4

View Stats:
Flame 2512 Jul 20, 2016 @ 9:44am
How to use an XNOR Logic Gate?
I want to use an XNOR gate (transmits power when inputs are the same, powered or unpowered) with two inputs. How do you make it work because when you have the two inputs unpowered the requirements are met but there is no power to transmit?
< >
Showing 1-15 of 22 comments
Yhwach Jul 20, 2016 @ 9:46am 
Make them both powered, then toggle one of the switches to make a sort of "toggle", for a two day door or something, same goes for the XOR gate where it only powers if "one" input is powered.
mfree Jul 20, 2016 @ 9:53am 
Originally posted by War:
Make them both powered, then toggle one of the switches to make a sort of "toggle", for a two day door or something, same goes for the XOR gate where it only powers if "one" input is powered.

This is a deep issue with Bethesda's implementation... test a bit and see if adding an AND gate after the XNOR gate with XNOR output as one input and live power as the other input provides enough power to make the XNOR function. If not, well... there's a mod for advanced switches, that's about all I can tell you unless Bethesda recognizes and fixed the issue, because the gate functions are compiled into the main executable.
Flame 2512 Jul 20, 2016 @ 9:56am 
Originally posted by mfree:
Originally posted by War:
Make them both powered, then toggle one of the switches to make a sort of "toggle", for a two day door or something, same goes for the XOR gate where it only powers if "one" input is powered.

This is a deep issue with Bethesda's implementation... test a bit and see if adding an AND gate after the XNOR gate with XNOR output as one input and live power as the other input provides enough power to make the XNOR function. If not, well... there's a mod for advanced switches, that's about all I can tell you unless Bethesda recognizes and fixed the issue, because the gate functions are compiled into the main executable.
Yeah they should really add a second input terminal. One to decide if it should send power and one to actually provide the power to send.
Brandybuck Jul 20, 2016 @ 10:27am 
Gates also don't feed back into themselves properly, preventing the construction of many common logic circuits. Oh well.
SuperBobKing Jul 20, 2016 @ 10:44am 
This isn't just a problem with the XNOR gates, all gates will only transmit power to things other than logic gates if at least one input has power. The AND gate trick mfree mentioned is the best way I know of to get around it.

Originally posted by Brandybuck:
Gates also don't feed back into themselves properly, preventing the construction of many common logic circuits. Oh well.
You can get the same results as some circuits that require feedback by sending items through toggle switches like the conveyor and ball track ones.
Last edited by SuperBobKing; Jul 20, 2016 @ 10:45am
mfree Jul 20, 2016 @ 11:06am 
Originally posted by SuperBobKing:
This isn't just a problem with the XNOR gates, all gates will only transmit power to things other than logic gates if at least one input has power. The AND gate trick mfree mentioned is the best way I know of to get around it.

And I'm not certain if an AND buffer *after* an XNOR gate will do anything at all... it probably won't. But game world isn't real world, no idea what goes on in the background for these things.

Hell, I wouldn't be surprised if just parking a wire connector near a switch makes it behave differently. Actually I wish these things would take radiant power to operate, it would solve so many issues...
Flame 2512 Jul 21, 2016 @ 10:53am 
Ok it is supidly over comlicated but I got it working
Wade Jul 21, 2016 @ 1:32pm 
Glad you figured it out. Would you care to post what you wanted to do and how you did it?
I wasn't quite sure what you wanted to do i.e open/close a door from outside and/or inside. I played around with the AND and XOR gates along with 2 switches to be able to open/close powered doors without locking myself in or out.
If anyone is interested: http://steamcommunity.com/profiles/76561198261129945/images/
1. Connect power to both switches (both wall and powered pylon switches work).
2. Connect each switch to both the AND and XOR red terminals.
3. Connect the AND black terminal to the red terminal of the XOR red terminal.
4. Connect the black XOR terminal to the door terminal.

Getting power to the outside switch can be a pain, as well as the return line to the gates. I used the wall pass through conduits for both. They're tricky in finding a spot to pass through, though. Rhe nice thing about using those is that you can attach a light to the one bringing power to the switch. Plus it helps you keep the 2 conduits from being confused. The regular wall and ceiling conduit/insulator seem to screw things up for some reason (my thinking is that they supply power to the door and gates by just being attached to the door wall), so don't use those. Wooden pylons work, as well as the metal ones, but you'll still need to get the lines to the gates and switches through walls.

Pehaps I should screenshot it.

Anyways, have fun roaming!
Flame 2512 Jul 22, 2016 @ 10:14am 
I wanted a conveyor where no matter which end of it you were you could turn it on or off. It is probably over complicated but this is the trial and error system i got working:

https://i.imgur.com/5DgkcfN.png
SuperBobKing Jul 22, 2016 @ 11:31am 
Connect both switches to an XOR gate and that should work. It will only output power when one input is on, so it doesn't have the issue with the XNOR gate where you have to be able to supply power when both switches are off, and it will still make it so that toggling either of the switches will toggle the output of the XOR gate.
mfree Jul 22, 2016 @ 11:32am 
Yup, provided it works right a XOR gate will precisely mirror the operation of a household two-way switch.

Except it's easier to wire :)
Flame 2512 Jul 22, 2016 @ 12:04pm 
Originally posted by mfree:
Yup, provided it works right a XOR gate will precisely mirror the operation of a household two-way switch.

Except it's easier to wire :)
even if both switches are in the off possition?
SuperBobKing Jul 22, 2016 @ 12:11pm 
Originally posted by Flame 2512:
Originally posted by mfree:
Yup, provided it works right a XOR gate will precisely mirror the operation of a household two-way switch.

Except it's easier to wire :)
even if both switches are in the off possition?
With XOR when both switches are in the same state it is off, and when they are in different states it is on. So in order for the gate to be on one of the switches has to be on (and therefore providing power). When you have two switches, if they are in the same state and you toggle one they will be in a different states, which cuts the device on, and if they are in different states and you flip one of them they will both be in the same state cutting it off.
Flame 2512 Jul 22, 2016 @ 12:27pm 
Yeah just realised that when I fired up the game
< >
Showing 1-15 of 22 comments
Per page: 1530 50

Date Posted: Jul 20, 2016 @ 9:44am
Posts: 22