Standard logic gate combinators

Suggestions that have been added to the game.

Moderator: ickputzdirwech

MrWilliam932
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Mar 23, 2016 2:15 pm
Contact:

Standard logic gate combinators

Post 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
User avatar
Deadly-Bagel
Smart Inserter
Smart Inserter
Posts: 1498
Joined: Wed Jul 13, 2016 10:12 am
Contact:

Re: Standard logic gate combinators

Post 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.
Money might be the root of all evil, but ignorance is the heart.
SyncViews
Filter Inserter
Filter Inserter
Posts: 295
Joined: Thu Apr 21, 2016 3:17 pm
Contact:

Re: Standard logic gate combinators

Post 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?
MrWilliam932
Manual Inserter
Manual Inserter
Posts: 4
Joined: Wed Mar 23, 2016 2:15 pm
Contact:

Re: Standard logic gate combinators

Post 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)
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Standard logic gate combinators

Post by ssilk »

AFAIK implemented for 0.15.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Post Reply

Return to “Implemented Suggestions”