Factorio

Factorio

View Stats:
Zentaki Dec 4, 2017 @ 12:44am
Each signal
I think that there is something wrong. Could be a bug.

So im just asking for people here and also leaving a report, if someone can proove im wrong i just delete this post.

OK, so i have setup 6 chests with 10 red belts inside each.
Have connected 4 chests with red wire and another 4 with green wire. Note that 2 chests are in common. So the way i did the output that goes is as fallow.
Green wire net = 40 red belts
Red wire net = 40 red belts

I use a decider to compare values. So i did as fallow:
Each signal == 40

As the name each sugests it should return true, but the each signal does not function.

So i tested to see if the decider compares the each signal means for the 2 signals possible that is from wires red and green or the each compares each type of items in the chest.

So i did put another item in there and compares just with red network , 10 red belts in each one of the 4 chests and just in one of them i put 50 blue inserters. And it returned true, because it is only comparing the red belt which is true it is 40, but for each item to be 40 and return true the inserters must also be 40, so as i understands the word "each" means it will do same math for each one of a X times, so it must be done for each item. But could it be that it is not meant to work for diferente types of items in a chest.

So gain i think it would be nice that it works for the 2 signal we can carry, the red network and the green net work, which it would do something to work for. OK so i did the tests nad the each signal has prooven useless.

It doesn't calculate each type of item in a network
it doesnt calculate each network input.

So why this signal is in the game?

If i can see in the power post i use to get to look at the ouput running in the network and it gives me the read of 40 for the green and 40 for the red, the truth table should be:

Everything == 80 = true
Anything == 80 = true
Each == 40 = true

I also had to test each == 10, to see if it means each for the chests, which they do have 10 in each chest. And the result is negative.

So i do think the each signal is meant to breakdown the 2 networks and calculates each one of them, if both are true it will return true. Return false otherwise. But it simply doesn't work.

So i know if you plug network green and red to a combinator it will sum them up, but isn't that why the each signal is for? Other than that don't know why the each is there if it seems not to be working.

So if the each function works in the game, show me pls, and i don't know why it doesn't work as im thinking it should.
Last edited by Zentaki; Dec 4, 2017 @ 12:51am
< >
Showing 1-7 of 7 comments
Nellvan Dec 6, 2017 @ 3:06am 
As far as I can tell, it's supposed to be used in arithmetic combinators.

Input Each, Output Each : Perform an operation on each individual signal, output all of them seperately, just as they came in.

Input Each, Output [some signal] : Perform an operation on each individual signal, then add the results all together into [some signal].

No idea why it can be used in a decider when it seems it's acting just the same as Everything. hold on, this is totally wrong, I'm just a neanderthal when it comes to this stuff.
Last edited by Nellvan; Dec 6, 2017 @ 3:23am
Nellvan Dec 6, 2017 @ 3:38am 
So yeah, "i know if you plug network green and red to a combinator it will sum them up"

Yup, It can be used when you got different signals, and now I've noticed what the difference is.

Everything : Output 1 (or input count) if all signals fulfill the condition
Each : Output 1 (or input count) for each signal that fulfills the condition.

E.G. : Chest connected to combinator , Each = 10, Output X, 1
Put in 10 red belts, 10 blue belts, and whatever else that is not a 10 stack : X = 2
10 red belts, 10 blue belts, 10 blue inserters : X = 3
Zentaki Dec 6, 2017 @ 4:11am 
i did test little more, and each signal seems dumb.... as the combinator permit to use it, but the results from combinator are always 1 output. Which the game doesnt offer means to read outputs, which would be very nice to have.

So if it could just calculate each signal, where im refering to the 2 possible networks we can have.... so basically a combinator can recieve 2 inputs and make 1 outputs.

Each should mean to calculate the comparison for each signal separately and returns true or false. Like i have said, true if every tests is true , false otherwise.

I have tried on the decider, yes, but game let you choose each signal to work with, but it doesn't work the way you expect. So this is a bug or a very dumb thing. And gets me very desapointed.

So lets say i have 4 chests and i want to make sure that each of them have same amount of 1 type of item. How can i do that? it should use just 1 decider to do that using each signal.

As i did some search and they say that each type of item is a signal, So that makes sense when you put 2 red wires together to add values from same types. I guess i am ok with this, but the sum is not to be done by the arithmetic? and also we have green wire that should never ever mix with the values of the red wire. Unless you use an arithmetic to do operations.

Nellvan Dec 6, 2017 @ 5:56am 
It doesn't work they way you expect it, but .. uhm yeah well that's how it works. Red and green wire allow seperate "versions" of signals to be transferred on the same poles, if that makes any sense. But when it comes to combinators, all red and green inputs get summed up because combinators only work with different signals in the sense of differently named signals.

This is what you can do with "Each" in a decider:
http://steamcommunity.com/sharedfiles/filedetails/?id=1223046043

Originally posted by Zentaki:
So lets say i have 4 chests and i want to make sure that each of them have same amount of 1 type of item. How can i do that? it should use just 1 decider to do that using each signal.
You can do this with 1 arithmetic combinator:
http://steamcommunity.com/sharedfiles/filedetails/?id=1223066829
I hope this is recognizable, if not I could give a better picture later today.
All chests are connected to the input, and then the output to all inserters. Each inserter is connected to it's chest with green wire. Ignore the red wire going off to the right, that's going to the train stop.
The inserters are set to enable when Stone =< 0.
Last edited by Nellvan; Dec 6, 2017 @ 11:50am
Zentaki Dec 6, 2017 @ 7:17am 
ok. you have helped me a lot. thank you very much.

the example of decider you gave me i have done that.

But for me, i wanted a way to calculate same type of item in many chests.

i didn't get it the example 2 using that arithmetic combinator there.

And last thing i should delete this post, or move this to general, how do i move it?
Nellvan Dec 6, 2017 @ 11:49am 
Originally posted by Zentaki:
i didn't get it the example 2 using that arithmetic combinator there.
I totally forgot to actually explain that. That setup gives you what you asked, that there's the same number of 1 item in every chest.
http://steamcommunity.com/sharedfiles/filedetails/?id=1223363823
I put the chests 1 to the left so that the wire can be seen better, they need to be next to the inserters, ofc.

  • From the bottom every chest is connected to the next one, and the last one to the input of the combinator.
  • This sums up all the items in the chests for the combinator.
  • Divide by the negative number of chests. You now have the negative average of items per chest.
  • The output goes to every inserter, giving them this neg. average.
  • Each chest is connected to the inserter feeding it with green wire, this gives the number of items in the chest to the inserter, seperate from the values on the red wires.
  • In the inserter , green COAL and red COAL are added. Every inserter where COAL is equal or smaller than 0, this chest has less than the average inside, and the inserter is enabled
You can see this in the picture, every chest has 10 coal inside, only the top one has 11. Average is still 10 , the top inserter is turned off because greenCoal (11) + redCoal(-10) is 1.
Last edited by Nellvan; Dec 6, 2017 @ 11:51am
Zentaki Dec 6, 2017 @ 1:56pm 
Now i finally understand . And also learned new ways. Thank you so much for your patience and time.

I was looking the tool completely wrong. Now see how wrong it was.
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Dec 4, 2017 @ 12:44am
Posts: 7