Loot Chest UPS

by ptx0

Automagically collects all the loot, on all surfaces. When no lootchest is placed, loot will be stored in a list so that it isn't lost.

Content
4 days ago
1.1 - 2.0
3.66K
Logistics

i [Implemented] Container prototype custom stack size

a month ago

Hey, since 2.0.56 there's a way to modify stack size in container prototype. What do you think about adding this to the loot chest.
https://lua-api.factorio.com/latest/types/InventoryWithCustomStackSizeSpecification.html

Main motivation is that the loot chest can grab stuff from all surfaces but some items are unstackable and even the 120 slots at legendary quality seem like a bottleneck in heavily modded games - even if you have 1 separate chest per surface. Usually most mods avoid large inventory size since that oftentimes causes UPS drops due to the way how the engine handles containers, so raising the stack size instead the slot number seems like a solid solution.

Here's what mine looks like from line 107 in entity.lua
This multiplies all stacks within that particular container prototype x 10'000.

chest.inventory_size = 48 
chest.inventory_type = "with_custom_stack_size"
chest.inventory_properties = {stack_size_multiplier = 10000}

a month ago

Ooh, that's sick! I've been debating re-installing this mod on my next play through. This change would be really nice.

Pi-C
12 days ago

@ -Trainman-: Thanks for the suggestion, that really was a good idea! I've implemented the changes in version 2.0.9, please check out that version!

12 days ago

Epic! Can’t wait to try it out.

New response