Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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.
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
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.
This is what you can do with "Each" in a decider:
http://steamcommunity.com/sharedfiles/filedetails/?id=1223046043
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.
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?
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.I was looking the tool completely wrong. Now see how wrong it was.