[boskid][2.0.37] setting Labs trash_inventory_size deletes the trash inventory

This subforum contains all the issues which we already resolved.
Puke
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jun 13, 2016 7:00 pm
Contact:

[boskid][2.0.37] setting Labs trash_inventory_size deletes the trash inventory

Post by Puke »

Hello there !
It's me again, your friendly inventories bug finder :D

First, I thank you for fixing the trash inventory size setup for assembling machines : I tested it and it works fine.
However it seems to be broken for labs.

By default, the labs create a trash inventory when an item spoils inside the lab. This behavior can be seen here :
When no item has spoiled inside the lab :
03-02-2025, 12-31-23.png
03-02-2025, 12-31-23.png (144.99 KiB) Viewed 364 times
When an item has spoiled inside the lab :
03-02-2025, 12-27-29.png
03-02-2025, 12-27-29.png (225.12 KiB) Viewed 367 times
----------------------------

However, when I try to alter the prototype to set trash_inventory_size = 3
On the screenshot below, the item has spoiled into a placeholder item that spoils into itself.
The normal behavior of a lab, from what I've seen, is that the item spoils and the spoil_result goes in the "trash inventory".
However, when I put trash_inventory_size = 3, the item spoils "in place" and the spoil result stays in the same slot.
03-02-2025, 12-27-17.png
03-02-2025, 12-27-17.png (263.97 KiB) Viewed 367 times
Regards
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3545
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.37] setting Labs trash_inventory_size deletes the trash inventory

Post by boskid »

Thanks for the report. Issue is now fixed for 2.0.38. Issue was that when trash inventory size is given, spoiling code no longer attempts to resize the trash inventory and because it was of size 0, spoiling failed to move items to trash inventory. Trash inventory was supposed to be resized when lab was created/loaded but it was not causing it to remain of size 0.
Puke
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jun 13, 2016 7:00 pm
Contact:

Re: [boskid][2.0.37] setting Labs trash_inventory_size deletes the trash inventory

Post by Puke »

Nice ! Thanks !

By the way, that raises another question : is it normal that the vanilla behavior is that, if you don't set the trash_inventory_size, it won't grow above 1 slot ?
Post Reply

Return to “Resolved Problems and Bugs”