Page 1 of 1

Stack inserters with negative stack size

Posted: Sat Apr 29, 2017 9:30 am
by steinio
Hello,

I suggest, that stack inserters which get a negative stack size by circuit network should reverse to unload instead of load.

Greetings, steinio.

Re: Stack inserters with negative stack size

Posted: Sat Apr 29, 2017 9:39 am
by Tekky
A very interesting proposal. I support it.

It would also be nice to be able to reverse belts. For example, if the signal is positive, the belt is enabled normally. If the signal is zero, the belts stops. If it is negative, the belt goes into reverse mode.

Re: Stack inserters with negative stack size

Posted: Wed May 03, 2017 8:38 pm
by nemostein
+1
This would make buffers a LOT easier...

Re: Stack inserters with negative stack size

Posted: Thu May 04, 2017 2:57 am
by audigex
This is a great idea, but please can we only have it as an option, not the default?

Currently negative stack sizes are used a LOT for things like MadZuri's smart loading train station, which this would completely break (using negative averages to ensure chests are loaded in a balanced manner, for example)

But yeah, having it as an option "reverse on negative" would be great.

Re: Stack inserters with negative stack size

Posted: Thu May 04, 2017 5:06 am
by Yann20x
As 0.15 brought us configurable stack sizes, I feel that adding negative stacksizes for reversing movement (of splitters, belts, inserters) is definitely a lot more possible now, on the other hand I'm struggling with the complexity of this one for a lot of players.

Wouldn't it be nice to just have a separate condition for this?

For Belts and Splitters:

- Read Contents
- Enable/Disable
- Reverse <-- this one would be added

For Inserters:

- Read Hand Contents
- Enable/Disable
- Override Stacksize
- Reverse <-- again, this is the new one


That looks like an easier solution to me, not to code it, but to actually use it later on (and while reversing an inserter you could still set the stacksize!).

Re: Stack inserters with negative stack size

Posted: Thu May 04, 2017 12:34 pm
by zanven
Yann20x wrote:As 0.15 brought us configurable stack sizes, I feel that adding negative stacksizes for reversing movement (of splitters, belts, inserters) is definitely a lot more possible now, on the other hand I'm struggling with the complexity of this one for a lot of players.

Wouldn't it be nice to just have a separate condition for this?

For Belts and Splitters:

- Read Contents
- Enable/Disable
- Reverse <-- this one would be added

For Inserters:

- Read Hand Contents
- Enable/Disable
- Override Stacksize
- Reverse <-- again, this is the new one


That looks like an easier solution to me, not to code it, but to actually use it later on (and while reversing an inserter you could still set the stacksize!).
once you have that level of customisation the next thing that would be asked for would be to set the stack size to a circuit network value to have full control of all use cases.

Re: Stack inserters with negative stack size

Posted: Fri May 05, 2017 1:57 pm
by ssilk
We only have one wire into an inserter, below are similar/concurring suggestions.

viewtopic.php?f=6&t=46101 Control orientation of inserter based on circuit network
and
viewtopic.php?f=6&t=39571 Reversible Inserters
and
viewtopic.php?f=6&t=35198 Filter Inserters: INVERT filter.
and
viewtopic.php?f=66&t=27673 Make inserter stack bonus individually configurable

Re: Stack inserters with negative stack size

Posted: Fri May 05, 2017 3:25 pm
by Tekky
One of the threads you posted is the thread you are posting in. :) Or at least the link is wrong,the title of the thread may be correct.

Re: Stack inserters with negative stack size

Posted: Sun May 07, 2017 1:57 pm
by ssilk
Thanks, corrected.