Who is the new combinator stuff epxlained?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
DOSorDIE
Fast Inserter
Fast Inserter
Posts: 249
Joined: Sat Oct 11, 2014 3:43 pm
Contact:

Who is the new combinator stuff epxlained?

Post by DOSorDIE »

The combinator now have many new features like &, XOR, ...
But i have as a circuit beginner no idea what they make.
Where i can find information what they make?
A little example would also be nice.

EDIT:
More Info i have found here

Tutorial:Combinator Tutorial:
https://wiki.factorio.com/Tutorial:Combinator_Tutorial

Tutorial:Circuit-network Cookbook:
https://wiki.factorio.com/Tutorial:Circ ... k_Cookbook

But what i am ask is what make the game when he get no 0 or 1 ??? ... 7 as example.
Becausea ALL things i found are only with 1 as highest number.

Also found this:
Gate Description
NOT Inverts the input (HIGH becomes LOW, LOW becomes HIGH)
AND Outputs HIGH if all the inputs are HIGH; otherwise, outputs LOW
OR Outputs HIGH if at least one of the inputs is HIGH; otherwise, outputs LOW
NAND Outputs HIGH if all the inputs are LOW; otherwise, outputs LOW
NOR Outputs HIGH if at least one of the inputs is LOW; otherwise, outputs LOW
XOR Outputs HIGH if one, and only one, of the inputs is HIGH; otherwise, outputs LOW
NXOR Outputs HIGH if one, and only one, of the inputs is LOW; otherwise, outputs LOW
Last edited by DOSorDIE on Wed May 10, 2017 8:32 am, edited 2 times in total.

Serenity
Smart Inserter
Smart Inserter
Posts: 1000
Joined: Fri Apr 15, 2016 6:16 am
Contact:

Re: Who is the new combinator stuff epxlained?

Post by Serenity »

Boolean logic is pretty self-explanatory. Though I think these actually perform bitwise operations. So if you just use them with 0 and 1 they behave like logic gates. But you can also do bit manipulation on larger numbers by the looks of it. Like using XOR to flip bits. And in combination with the left shift operator set and clear bits.

The % operator is also new. That's a modulo division.

The Eriksonn
Fast Inserter
Fast Inserter
Posts: 230
Joined: Wed Jun 08, 2016 6:16 pm
Contact:

Re: Who is the new combinator stuff epxlained?

Post by The Eriksonn »

Dont forget << and >> for right and left bitshift:

a<<b = a*(2^b)

a>>b = a/(2^b)

may cause unexpected results if negative...

Serenity
Smart Inserter
Smart Inserter
Posts: 1000
Joined: Fri Apr 15, 2016 6:16 am
Contact:

Re: Who is the new combinator stuff epxlained?

Post by Serenity »

But what i am ask is what make the game when he get no 0 or 1 ??? ... 7 as example.
Then it's a bitwise operation. Like the difference between & and && in C/C++. Just apply the logic operation to each bit of the number

For example:
1001
AND
0011
=
0001

Post Reply

Return to “Gameplay Help”