[Solved] How I get 7 Item in a chest?

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

Re: How I get 7 Item in a chest?

Post by DOSorDIE »

Very complicated ... but it works :D
A very nice solution.
But need much space ... to much for my little Smart Factory.
Jupiter
Fast Inserter
Fast Inserter
Posts: 174
Joined: Thu Jun 23, 2016 2:38 pm
Contact:

Re: How I get 7 Item in a chest?

Post by Jupiter »

I posted a solution already in another thread: viewtopic.php?f=5&t=28110

Copied here:
========================================================================

So I came up with the following setup in an attempt to create an inserter that can grab only a specified number of items at a time. This only works when grabbing from belts. Grabbing out of anything with an inventory (trains, chests etc) does not work at all. A work-around is of course to put a belt between the inventory thing and your inserter.

Image Image

In this setup I use arithmetic overflow of signal values in a network to let the signal be >0 (thus removing the filter from the inserter) when I want it to and otherwise be some (high) number above 0 otherwise (and activating the filter). As shown, the constant combinator outputs 2 signals of the type of item that you're going to grab. One signal is always 2^31 - 1= 2147483647. By experiment I found out that signal values are stored in 32-bit signed 2-complement integers thus the number of bits signifying the magnitude of the number is 31 (so 2147483647 is the biggest positive number possible and -2147483648 the largest negative).
The second signal is -x + 1 where x is the limit of items grabbed at a time.

So how this works is that the inserter also reads what it is holding and adds it to the big number. As long as it doesn't reach the item limit then no overflow will occur. When it does, then overflow occurs and the signal value will be -2147483648 and it removes the filter from the inserter. The small signal from the combinator will prevent overflow from happening for a while so it controls your item limit.
DOSorDIE
Filter Inserter
Filter Inserter
Posts: 257
Joined: Sat Oct 11, 2014 3:43 pm
Contact:

Re: How I get 7 Item in a chest?

Post by DOSorDIE »

:o You my hero!
That is perfect :D

Thanks!
Jupiter
Fast Inserter
Fast Inserter
Posts: 174
Joined: Thu Jun 23, 2016 2:38 pm
Contact:

Re: How I get 7 Item in a chest?

Post by Jupiter »

DOSorDIE wrote::o You my hero!
That is perfect :D

Thanks!
No problem! ;)
User avatar
siggboy
Filter Inserter
Filter Inserter
Posts: 988
Joined: Tue Mar 29, 2016 11:47 am
Contact:

Re: How I get 7 Item in a chest?

Post by siggboy »

Gertibrumm wrote:Normal inserters should not be effected by stack bonus upgrades, due to the fact that many old saves are broken now.
Filter inserters should not prioritize signals but have unlimit filter slots.
Also the count that fully upgraded stack inserters could insert (13) makes no sense for smart furnacing (steel wants 10 not 13)
I think this summarizes my problems for .13
All the setups that require precise item counts are super-hard now. It's not because normal inserters have a stack bonus (they did have it in 0.12), but it's because they now pick up multiples from belts. So you can't force single item drops anymore by putting a belt in between the chest and the inserter.

Filter inserters can't have unlimited slots (that's impossible to represent in the UI, and it's probably overpowered). However, there needs to be a way to influence which of the signals is picked for the filter input(s). XKnight has proposed an extension to the Decider Combinator that would allow us to at least know which signal will be input.

You can make a complicated contraption to reduce several input signals down to one (I'm not talking about a signal filter, what I mean is signal "disambiguation), but that requires at least 7 combinators and some Black Magic. However, if you absolutely need to know which filter you're actually setting (and most smart setups do need to know), then this is probably your best bet right now.

We need a way to influence the stack count dynamically (also being discussing in another thread).

We also should be able to use both the "enable/disable" mode and the "set filter" mode at the same time on an inserter. Currently you can use only one, and that's a bit limiting.

Right now the inserter situation is unsatisfactory. Some advanced setups have become just too tedious or even impossible to solve.
Jupiter wrote:I posted a solution already in another thread: viewtopic.php?f=5&t=28110
Wow, that is clever, and so simple.

Unfortunately, having the "read hand" output also setting the filter can be a hindrance in other scenarios. But in this case it opens a clever way to limit the item count. I'll have to think about if I can solve my current train loader problem with that technique.
Is your railroad worrying you? Doctor T-Junction recommends: Smart, dynamic train deliveries with combinator Magick
DOSorDIE
Filter Inserter
Filter Inserter
Posts: 257
Joined: Sat Oct 11, 2014 3:43 pm
Contact:

Re: [Solved] How I get 7 Item in a chest?

Post by DOSorDIE »

That solution work great for chests ... but not for Trains (Train to chest)?
How i can solve that problem?
I need to get out a exact amout of items out of the train.
User avatar
Deadly-Bagel
Smart Inserter
Smart Inserter
Posts: 1498
Joined: Wed Jul 13, 2016 10:12 am
Contact:

Re: [Solved] How I get 7 Item in a chest?

Post by Deadly-Bagel »

See this discussion on getting a better solution for this problem.
Money might be the root of all evil, but ignorance is the heart.
Post Reply

Return to “Gameplay Help”