Page 1 of 1
Standard logic gate combinators
Posted: Thu Apr 20, 2017 9:16 am
by MrWilliam932
The current logic system of the game it's not intuitive whatsoever. So some logic gates like AND, OR, NOT that can be used with the existing logic system would be great
Re: Standard logic gate combinators
Posted: Thu Apr 20, 2017 9:25 am
by Deadly-Bagel
There is some pretty heavy circuit improvements coming in 0.15 but this is all possible already. Have a bunch of Deciders output [A](1) for various conditions, link them up to another decider. if [A] == 2 that's AND, if [A] > 0 that's OR, A == 1 is XOR, etc. Pretty messy in enormous circuit setups but it gets the job done for standard use such as deciding in Bob's Mods when to vent Petroleum.
Re: Standard logic gate combinators
Posted: Thu Apr 20, 2017 10:17 am
by SyncViews
Do you mean in the traditional programming sense for integer bitwise operation (and presumably assuming twos-complement for handling negatives)? Not really sure on the use case there, since while sure I can encode extra meaning into a signal value, in Factorio its easier just to use a different signal most of the time.
Or do you mean logical operators for making more complex deciders (e.g. so instead of say "if light-oil > 1000 output red=1", do say "if light-oil > 1000 AND gas < 3000 output red=1")? Like said that can already be done with multiple deciders.
NOT can be done with arithmetic (multiple by -1, since requester chests, inserters, etc. ignore negative inputs) or decider ("if x > 0 output x=-1").
The virtual signals like "Each", and multiple outputs linked by a wire implicitly adding can also be important in many cases.
Not sure how either is more intuitive, just makes already complex things more compact?
Re: Standard logic gate combinators
Posted: Thu Apr 20, 2017 2:00 pm
by MrWilliam932
Yep, I know that the logic gates are possible to be made with the actual combiners, but they are not intuitive and it gets messy for a simple and apart from the fact that you have to use various variables to make it. So I thought it would be great if they add logic doors and the current combiners could use that system, like, instead of only outputing variable and value, output true or false in another output, (you know: green, red, and the logic output.... blue maybe)
Re: Standard logic gate combinators
Posted: Thu Apr 20, 2017 8:33 pm
by ssilk
AFAIK implemented for 0.15.