For a normal inserter, they move all the items into machines, but for stack-inserter, things become different.
When the belt has 2 different items (with limit 4+16 = 19 for example). And thus the machine accept at most 4+max_stack items.
For stack-inserters, it will grab exact 16 items, but in case machine has more than 4 of item 1, the condition `(item 1's count) < 4 + max_stack` still holds, thus the stack-inserter will still grab item1.
The problem is that, if item 2 is used out, but item 1 have the count more than 4, the stack inserter will grab at most `max_stack + 4 - (item 1's count) < 16` items, then stuck since it cannot grab more items since it will exceed the 4+max_stack limit, and thus it cannot put all the items into the machine (since it cannot grab 16 items.)
This thing is tested under [2.0.12] and [2.0.13], which prevent using stack inserter for a mixed belt.
(Cannot really reproduce it under a small blueprint, but it could be easily triggered by put extra items into the machine)
[2.0.13] Stack inserter stuck grabbing from mixed belt (MR)
-
- Manual Inserter
- Posts: 1
- Joined: Fri Nov 01, 2024 8:33 am
- Contact:
Re: [2.0.13] stack-inserter got stuck while grabbing from a mixed belt.
this is really makes the stack inserters unusable at Gleba with the spoilage challenge
changing a recipe an also trigger this
Last edited by bonuspunkt on Fri Nov 01, 2024 9:30 am, edited 1 time in total.
Re: [2.0.13] stack-inserter got stuck while grabbing from a mixed belt.
Thanks for the report. That is intended and part of the limitations of using stack inserters.
If you want to get ahold of me I'm almost always on Discord.
Re: [2.0.13] Stack inserter stuck grabbing from mixed belt (MR)
Is this documented somewhere that I missed? I didn't see anything in the stack inserter configuration window, the Tips & Tricks tab, or the Factoriopedia. If not, can it be added to these places?
I was only able to find out after hours of confusion and finally searching here that stack inserters will ONLY PICK UP A FULL HAND-STACK (16 items) before placing any items down as layers on a belt (4 stacks of 4 layers). All other inserters, will wait 20 ticks to check for lagging belt items then give up, placing down however many they had in their hand at the time.
Not sure if this is related, but I am also confused why the "Override stack size" numbers skip around. Is this correct behavior?
I was only able to find out after hours of confusion and finally searching here that stack inserters will ONLY PICK UP A FULL HAND-STACK (16 items) before placing any items down as layers on a belt (4 stacks of 4 layers). All other inserters, will wait 20 ticks to check for lagging belt items then give up, placing down however many they had in their hand at the time.
Not sure if this is related, but I am also confused why the "Override stack size" numbers skip around. Is this correct behavior?
Code: Select all
Override set to 1, then output is 1 stack of items 1 layer high
Override set to 2, then output is 1 stack of items 2 layers high
Override set to 3, then output is 1 stack of items 3 layers high
Override set to 4, then output is 1 stack of items 4 layers high
Override set to 5, then output is 1 stack of items 4 layers high
Override set to 6, then output is 1 stack of items 4 layers high
Override set to 7, then output is 1 stack of items 4 layers high
Override set to 8, then output is 2 stacks of items 4 layers high
Override set to 9, then output is 2 stacks of items 4 layers high
Override set to 10, then output is 2 stacks of items 4 layers high
Override set to 11, then output is 2 stacks of items 4 layers high
Override set to 12, then output is 3 stacks of items 4 layers high
Override set to 13, then output is 3 stacks of items 4 layers high
Override set to 14, then output is 3 stacks of items 4 layers high
Override set to 15, then output is 3 stacks of items 4 layers high
Override set to 16, then output is 4 stacks of items 4 layers high
Code: Select all
0eNrNndty2zYURX+lw2cqw4MLSfgP+tzHjEcjS4zDqUypFJXUzfjfS8o3NQGsfXY5Y79FJrkAHgnYOBcgP7Kb7bHZ9203ZFc/sna96w7Z1ecf2aG97Vbb6W/d6q7JrrKhX3WH/a4fFjfNdsge8qztNs3f2ZU85JHbt7vVpunPbjMP13nWdEM7tM1jE6cP98vueHcz3nkl+fOzh6Fptov11+YwZHm23x3GZ3bdBJ+aM+6Tz7P77Grhqk/+YWr9J5J5IbXdl7YbL6Vh5X9g+csTy0MzDG13e5ju7Ju73bdmeRyvbYembzbLdmjuxktfVttDk2ePf358q+eW+1232G9XQzO2ut4dJ/tKUeTZ3W4zXV8Ni22zOvXpxY7XsZexZ2ZZrf9ctN2h6cfWYi8TXl6mPL3M2Om+bzfN8vTo8tD+0zx9Xz814vKfvrcIvP6PnTZt36wfr48PD/f76eHdcdgfp9/GLw34PPE7evMtfm0qgi5xtBUdulKgCx26VqCtDh0UaKNDS6FgeyVbFGynZBsFu1Sy7eXBY4HB03aJsSMOn89s+F/z2dAfm9gkJNz4dZD9SortITY3gl3kWxqVceh32+VN83X1rd3102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