[0.15.10] overflow contents in small space hangs indefinite

This subforum contains all the issues which we already resolved.
malventano
Filter Inserter
Filter Inserter
Posts: 355
Joined: Thu Apr 27, 2017 4:31 pm
Contact:

[0.15.10] overflow contents in small space hangs indefinite

Post by malventano »

Overflowing/spilling contents (i.e. when player inventory overflows onto the map) will indefinitely hang the game if there is no more room on the map for those contents to overflow onto. This applies to small custom maps and Factorissimo buildings. I realize the game goes to great lengths to never inadvertently destroy items, but in this case, that would be preferable to hanging the game indefinitely. Since destroying the items is probably the only way to fix this, perhaps a console message along with the 'inventory full' message informing the player that their overflow event resulted in destroyed items would also be useful.

*edit* this also applies to spillover from direct replacing where the previous container size/contents were larger than the container replacing to (steel chest to wooden chest, etc).

*edit 2* actually, would it be possible to simply prevent such direct replace events by checking that the capacity of the placed item is large enough to hold the contents of the currently placed storage item? That would help prevent the larger part of the issue in a way that makes more sense since the player would generally not intentionally cause a large spill into their own inventory / onto the map.
Allyn Malventano
---
Want to improve fluid flow between pumps / across longer distances? Try my Manifolds mod.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14806
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.10] overflow contents in small space hangs indefinite

Post by Rseding91 »

The contents of a chest can be too large to even fit back into itself if you've changed stack sizes through mod removal/prototype changes so it's not possible to say "everything in this chest can fit in another" without actually doing the transfer at which point you can't un-do it.

As for the freezing: I'll change it so if the search goes outside the map bounds it stops and just drops the items directly under the source position (stacking them forever).
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”