Merging Chests

by Atria

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

Content
4 months ago
0.13 - 2.1
143K
Storage

g Incompatibility with AAI containers mod

2 years 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 years ago

Same problem here.

2 years ago

Same for me.

2 years ago

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

2 years 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 years ago

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

2 years 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 years 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 years ago

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

2 years ago

Да спасибо

2 years 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 years ago

You should send that a PR to the git repo iZlovreD

2 years ago
(updated 2 years 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 years ago

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

Is it to eliminate datatype errors?

2 years 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 years ago

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

New response