Merging Chests

by Atria

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

Content
13 days ago
0.13 - 2.0
118K
Storage

g Incompatible with Ultracube

1 year, 12 days ago
(updated 1 year, 12 days ago)

Hi, as reported in a thread (https://mods.factorio.com/mod/Ultracube/discussion/65987d4075514d8c7a8b81fc) this mod causes script errors when used in Ultracube because it calls surface.create_entity and entity.destroy on chests without setting raise_built = true and raise_destroy = true respectively. I'm not sure if changing this is something you would consider, but otherwise I had to mark this mod as incompatible for now.

1 year, 11 days ago

Hi, I think the events for merged chests shouldn't be raised in general because theoretically the entity was not created/destroyed. Do you know if the event is used by the game itself (for example to show the created/destroyed entities in the kill statistic dialog)?

Anyway I'll raise the event if your mod is detected.

1 year, 11 days ago
(updated 1 year, 11 days ago)

That would be great.

Do you know if the event is used by the game itself (for example to show the created/destroyed entities in the kill statistic dialog)?

I haven't tested but it's at least my reading of the docs here that this is only used for inter-mod communication: https://lua-api.factorio.com/latest/events.html#script_raised_destroy e.g. "A static event mods can use to tell other mods they destroyed something by script."

theoretically the entity was not created/destroyed

I would say in practice it wasn't, but theoretically it was since we might have entity references that are no longer valid etc :P

1 year, 11 days ago

I'll check the statistic screen and I'd always raise the events if it doesn't show up there. Hopefully it won't cause problems with other mods :D

1 year, 4 days ago

Create/destroy events raised in 5.0.0

New response