Page 1 of 1

Inserter Set Stack size has the same result for 0 and 1 value

Posted: Wed Dec 01, 2021 7:58 am
by gGeorg
Bug
-----------------------------------------------------------------------

Inserter switched to Set Filter only work with non-zero input.
Inserter switched to Set Stack work even with zero input.
-------------------------------------------------------------------------------
Inconsistency

Test bed


Signal S control the stack. Turn constant combinators On to add more S signal.
Image
Here are results for values of signal S:
value 0 inserting 1 item
value 1 inserting 1 item
value 2 inserting 2 item

In the user interface, it makes sense to allow only 1 .. max stack. (to prevent confusion of a player who accidentally set stack to zero) However, when feature Set_Stack is active, then value is (should be) fully controlled by circuitry, then valid range should be 0 .. max stack.
Thank you for a consistency fix.

==========================================
Request for an improvement:
When changing stack_control behaviour could you add option of wild card? "Anything" Set Stack wild card will mean, the stack control uses the highest id number item. e.g. when used Set Filter AND Set stack together, it will process the same input.

Re: Inserter Set Stack size has the same result for 0 and 1 value

Posted: Wed Dec 01, 2021 1:23 pm
by Loewchen
That is not a bug.

Re: Inserter Set Stack size has the same result for 0 and 1 value

Posted: Wed Dec 01, 2021 1:50 pm
by mrvn
But would be a nice feature, or features as there is more than one idea here. Would be consistent with other places where a 0 signal or no signal disables the entity.

For the feature improvement I would suggest "each" so the stack size is the signal strength for the item it picks up instead of the maximum signal.