Standard logic gate combinators
Moderator: ickputzdirwech
-
- Manual Inserter
- Posts: 4
- Joined: Wed Mar 23, 2016 2:15 pm
- Contact:
Standard logic gate combinators
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
- Deadly-Bagel
- Smart Inserter
- Posts: 1498
- Joined: Wed Jul 13, 2016 10:12 am
- Contact:
Re: Standard logic gate combinators
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.
Re: Standard logic gate combinators
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?
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?
-
- Manual Inserter
- Posts: 4
- Joined: Wed Mar 23, 2016 2:15 pm
- Contact:
Re: Standard logic gate combinators
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
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...