Hating The Circuit Network
- MakeItGraphic
- Fast Inserter
- Posts: 237
- Joined: Sat Jan 06, 2018 7:53 am
- Contact:
Hating The Circuit Network
Tried making this post yesterday but the computer died before I could submit it. I quit playing one save for 14 days because it's just giving me a migraine and anxiety. I've read the wiki, and videos give me sensory overload. I wish there was something more tangible like a book on this game, or series of books.
I had this working at one point and time but I neglected to take notes.
INPUT | OUTPUT
| Clock Combinator outputs D, H. M, S
Decider Combinator:
H = X | Colour signal
Lamp:
Color Signal ----> works
adding a second decider combinator and arithmetic combinator is where it breaks down. I want to be able to read the hour and minutes and if both = true make the lamp x color.
If your inputs only consist of boolean values (1 or 0) the arithmetic combinator's operators can be used as logic gates.
So I tried outputting 1 instead on both deciders still nothing.
Flash forward to a different setup:
This is where I just throw the computer and don't look back. It makes me reevalute everything I thought I learned and toss it out the window regardless if it was true or not.
South_Yard_Iron001 works fine with the enable/disable boolean. Condition B=1. The lamp works fine outputs a red signal if Iron is less than X. Then the decider outputs B as a value of 1 and the station is enabled. Great I'm learning, there is positive feedback.
Then I drag the line all the way out to Iron_Hills001 via power pole and the condition now is B=0 and the station is disabled. I don't understand, I have mods in place to do Shortwave, and Remote signals. But I want to learn/semi-master vanilla logic first.
I would say I wish there was in-game tutorials but mods are somehow able to disable tutorials through errors so that's a moot point. I am going to try to find as much information online and throw together a packet to print out. I been on reddit, I been on the wiki and it's either too complex, and or not enough explanation for someone as simple as I.
https://wiki.factorio.com/Circuit_network
https://wiki.factorio.com/Tutorial:Circ ... k_cookbook
https://wiki.factorio.com/Tutorial:Combinator_tutorial
https://www.reddit.com/r/n00bwaffles/co ... _factorio/
https://en.wikipedia.org/wiki/Logical_connective
https://en.wikipedia.org/wiki/Boolean_algebra
https://en.wikipedia.org/wiki/Logic_gate
There was at a time a puzzle game on Android that helped teaches logic gates, but I can't find the right app anymore.
http://nandgame.com/
https://academo.org/demos/logic-gate-simulator/
Going to start reading more on the Wikipedia side of things, and try the simulator. Any help or pointing into useful directions would be appreciated thanks.
I had this working at one point and time but I neglected to take notes.
INPUT | OUTPUT
| Clock Combinator outputs D, H. M, S
Decider Combinator:
H = X | Colour signal
Lamp:
Color Signal ----> works
adding a second decider combinator and arithmetic combinator is where it breaks down. I want to be able to read the hour and minutes and if both = true make the lamp x color.
If your inputs only consist of boolean values (1 or 0) the arithmetic combinator's operators can be used as logic gates.
So I tried outputting 1 instead on both deciders still nothing.
Flash forward to a different setup:
This is where I just throw the computer and don't look back. It makes me reevalute everything I thought I learned and toss it out the window regardless if it was true or not.
South_Yard_Iron001 works fine with the enable/disable boolean. Condition B=1. The lamp works fine outputs a red signal if Iron is less than X. Then the decider outputs B as a value of 1 and the station is enabled. Great I'm learning, there is positive feedback.
Then I drag the line all the way out to Iron_Hills001 via power pole and the condition now is B=0 and the station is disabled. I don't understand, I have mods in place to do Shortwave, and Remote signals. But I want to learn/semi-master vanilla logic first.
I would say I wish there was in-game tutorials but mods are somehow able to disable tutorials through errors so that's a moot point. I am going to try to find as much information online and throw together a packet to print out. I been on reddit, I been on the wiki and it's either too complex, and or not enough explanation for someone as simple as I.
https://wiki.factorio.com/Circuit_network
https://wiki.factorio.com/Tutorial:Circ ... k_cookbook
https://wiki.factorio.com/Tutorial:Combinator_tutorial
https://www.reddit.com/r/n00bwaffles/co ... _factorio/
https://en.wikipedia.org/wiki/Logical_connective
https://en.wikipedia.org/wiki/Boolean_algebra
https://en.wikipedia.org/wiki/Logic_gate
There was at a time a puzzle game on Android that helped teaches logic gates, but I can't find the right app anymore.
http://nandgame.com/
https://academo.org/demos/logic-gate-simulator/
Going to start reading more on the Wikipedia side of things, and try the simulator. Any help or pointing into useful directions would be appreciated thanks.
- MakeItGraphic
- Fast Inserter
- Posts: 237
- Joined: Sat Jan 06, 2018 7:53 am
- Contact:
Re: Hating The Circuit Network
Input 1 and Input 2 = 1 | Output 1
Ok did all that but no matter what I set the second decider to the light magically lights green. I've had a lot of issues before with circuit entities being backwards, or wires drawn wrong. So grain of salt here.
Now another thing that happened that I want to figure out is strobe lights. Flashing lights, I had at one time that light pulse green when condition was true, but no idea how I did it.
EDIT: ok so
I can confirm the decider logic is working soundly, it's just breaking down when I use the arithmetic combinator as an and gate.
EDIT 2:
viewtopic.php?t=14556
Tried "if everything = 1" output color. The two lamps in front say nothing = 1 but it lights up.
EDIT 3:
Tried each, "if each input =1 output color". But this only works on the lamp if 1 input = 1 not both.
- MakeItGraphic
- Fast Inserter
- Posts: 237
- Joined: Sat Jan 06, 2018 7:53 am
- Contact:
Re: Hating The Circuit Network
AND operator
both don't work, and this is where I stop.
Re: Hating The Circuit Network
I'll just list screw ups I see from top to bottom since this is so horribly structured.
Further more, read the wiki!
You use circuits logic as you want it to work not as it actually works.
- wrong color
- signal "1" =/= signal = 1
- failure to chose output signal (this is still the same issue as I explained to you last time)
- rdfm of "everything"
- rdfm of "each"
Further more, read the wiki!
You use circuits logic as you want it to work not as it actually works.
Re: Hating The Circuit Network
Would like to help, but your question is not clear to me.
What do you want to achieve, exactly? And which mod(s) are you using?
What do you want to achieve, exactly? And which mod(s) are you using?
-
- Filter Inserter
- Posts: 477
- Joined: Tue Jun 26, 2018 10:14 am
- Contact:
Re: Hating The Circuit Network
I recommend to not use [0] and [1] signals for discrete logic because this can cause confusions. If you have [0]=1, [1]=0 or [0]=[1] you may need an extra thinking who is who, which is not necessary.
Also, double check what exactly combinator inputs are every time, wiring mistakes are quite common.
Also, double check what exactly combinator inputs are every time, wiring mistakes are quite common.
Last edited by coppercoil on Sat Feb 29, 2020 4:48 pm, edited 1 time in total.
Re: Hating The Circuit Network
I see 3 concepts you might not be getting about logic circuits that are causing problems:
1. Signals must be transmitted on a channel to travel on a wire between devices. Constants are local to the combinator/device. An arithmetic gate set to 1 (TRUE) AND 1 (TRUE) will always evaluate to 1 (TRUE), irrespective of any inputs, because it's not even reading the input channels. Likewise, a decider set to output a value of 1, but not given a channel to output on, will do nothing.
2. the ALL input is a special case that only considers channels that have a signal (i.e. those which≠0), because otherwise you'd have to set every single channel to the condition value to ever get it to evaluate to TRUE, which would be unhelpful. Therefore, an ALL input will always evaluate to TRUE if there are no input signals, because ALL present signals (of which there are none) meet the condition.
3. The EACH input on a decider is a special case that evaluates each input channel against the condition separately and combines the results of that evaluation on the output. If the output channel is EACH, it will output on the same channels as the input channels, but if you specify one output channel, it will output all of the results on that channel, and per Factorio rules for multiple outputs on the same channel, will add the values together to come up with the final signal value.
1. Signals must be transmitted on a channel to travel on a wire between devices. Constants are local to the combinator/device. An arithmetic gate set to 1 (TRUE) AND 1 (TRUE) will always evaluate to 1 (TRUE), irrespective of any inputs, because it's not even reading the input channels. Likewise, a decider set to output a value of 1, but not given a channel to output on, will do nothing.
2. the ALL input is a special case that only considers channels that have a signal (i.e. those which≠0), because otherwise you'd have to set every single channel to the condition value to ever get it to evaluate to TRUE, which would be unhelpful. Therefore, an ALL input will always evaluate to TRUE if there are no input signals, because ALL present signals (of which there are none) meet the condition.
3. The EACH input on a decider is a special case that evaluates each input channel against the condition separately and combines the results of that evaluation on the output. If the output channel is EACH, it will output on the same channels as the input channels, but if you specify one output channel, it will output all of the results on that channel, and per Factorio rules for multiple outputs on the same channel, will add the values together to come up with the final signal value.
- MakeItGraphic
- Fast Inserter
- Posts: 237
- Joined: Sat Jan 06, 2018 7:53 am
- Contact:
Re: Hating The Circuit Network
Sorry yeah constantly all over the place. I am using https://mods.factorio.com/mods/binbinhfr/TimeTools.
Trying to output if hour = X then X, and if minute = X then X. I can do both of these functions fine, but it's when I try to add them together I run into problems.
Eg. if hour = X and minute = X output signal value of 1
-
- Filter Inserter
- Posts: 477
- Joined: Tue Jun 26, 2018 10:14 am
- Contact:
Re: Hating The Circuit Network
You mean "if hour = X and minute = Y"? This would be an important difference.MakeItGraphic wrote: ↑Sat Feb 29, 2020 5:01 pmEg. if hour = X and minute = X output signal value of 1
- MakeItGraphic
- Fast Inserter
- Posts: 237
- Joined: Sat Jan 06, 2018 7:53 am
- Contact:
Re: Hating The Circuit Network
Right then if X and Y = 1 output Zcoppercoil wrote: ↑Sat Feb 29, 2020 5:05 pmYou mean "if hour = X and minute = Y"? This would be an important difference.MakeItGraphic wrote: ↑Sat Feb 29, 2020 5:01 pmEg. if hour = X and minute = X output signal value of 1
This is the furthest I have been able to reach:
X = 0
Y = 1
Z = 0
X = 1
Y = 1
Z = 1
X = 1
Y = 0
Z = 1
Then my logic faults in this step.
Last edited by MakeItGraphic on Sat Feb 29, 2020 5:17 pm, edited 1 time in total.
Re: Hating The Circuit Network
Try taking the setup in CIRCUIT021.PNG and changing the arithmetic combinator input equation from "1 AND 1" to "[GREEN] AND [ORANGE]"
Note: lamps do not output signals, so there is nothing on the red wire in CIRCUIT022.PNG, CIRCUIT023.PNG, and CIRCUIT024.PNG
Note: lamps do not output signals, so there is nothing on the red wire in CIRCUIT022.PNG, CIRCUIT023.PNG, and CIRCUIT024.PNG
- MakeItGraphic
- Fast Inserter
- Posts: 237
- Joined: Sat Jan 06, 2018 7:53 am
- Contact:
Re: Hating The Circuit Network
Yep, you're right. Exactly what I was getting confused about. Was in regards to the output signals and their visual representation.
All three cases work now, thank you. I'm just over thinking this, and getting confused by the output value.
- Attachments
-
- CIRCUIT029.PNG (254.49 KiB) Viewed 2992 times
-
- CIRCUIT028.PNG (231.64 KiB) Viewed 2992 times
-
- CIRCUIT027.PNG (265.76 KiB) Viewed 2992 times
- TheRangerLOL
- Long Handed Inserter
- Posts: 74
- Joined: Fri Sep 18, 2020 11:56 pm
- Contact:
Re: Hating The Circuit Network
I was working on another project and I accidentally figured out strobe lights. Very simple. Here's the link: viewtopic.php?f=193&t=89598MakeItGraphic wrote: ↑Sat Feb 29, 2020 2:56 pmNow another thing that happened that I want to figure out is strobe lights. Flashing lights, I had at one time that light pulse green when condition was true, but no idea how I did it.
The one and only.