Merging Chests

by Atria

Enables merging of multiple chests into one entity. Supports merging of arbitrary number of chests (configurable in mod settings).

Content
9 days ago
0.13 - 2.0
118K
Storage

g Incompatibility with AAI containers mod

2 months ago

Error while sorting items-to-place for entity prototype "WideChests_steel-chest-trashdump-10x10" (container): item-to-place "steel-chest" count (100) can't be larger than the the item stack size (50).

2 months ago

Same problem here.

2 months ago

Same for me.

2 months ago

What other mods do you have enabled? And what max width, height and area mod settings do you have?

2 months ago

I've also received this error yesterday, from swapping out mods I believe it's caused by using this mod and AAI containers and warehouses at the same time

sorry I didn't report this yesterday, I figured it would've gotten caught very quickly since AAI's fairly popular

2 months ago

Confirmed at my end that it conflicts with AAI containers and warehouses. Disabling that mod let merging chests load.

2 months ago

Made issue post for Earendel https://github.com/EarendelDevelopers/factorio-mods/issues/354 , but I'm not expecting fast response.

There is just incompatibility between two mods, so he's not going to fix it in "some amount of days" I'll declare the mod incomplatibility on my side.

2 months ago

Confirmed at my end that it conflicts with AAI containers and warehouses. Disabling that mod let merging chests load.
thank you it works

2 months ago

Проблемы с AAI Containers & Warehouses - при отключении этого мода все работает

2 months ago

Да спасибо

2 months ago

Add after 259 line in "data_init.lua":
MergingChests.chest_override = MergingChests.chest_override or {}
MergingChests.chest_override[entity_data.chest_name] = math.max(data.raw.item[entity_data.chest_name].stack_size, max_area)

create new file "data-final-fixes.lua":
if MergingChests and MergingChests.chest_override then
for name, size in pairs(MergingChests.chest_override) do
data.raw.item[name].stack_size = size
end
end

It's fix all conflicts.

2 months ago

You should send that a PR to the git repo iZlovreD

2 months ago
(updated 2 months ago)

This would be a workaround. For proper solution the AAI containers mod should not just set the stack_size, but also use math.max(current_stack_size, new_stack_size).

2 months ago

Just wondering, why would you use math.max() that way?

Is it to eliminate datatype errors?

2 months ago

The stack size shouldn't be lowered exactly because of this problem

Anyway, AAI Containers mod was updated (0.3.1) to reuse ols stack_size, so it should work now.

2 months ago

Yep, I know, I poked at Earendel about it yesterday :P

New response