Merging Chests

by Atria

Enables merging of multiple chests into one entity. Supports merging of arbitrary number of chests (configurable in mod settings). Version 5.0.0 introduced potentially breaking changes for old saves. If your have chests larger than 42 don't update to 5.0.0.

Content
13 days ago
0.13 - 2.0
115K
Storage

b Error when merging 40x40 chest

8 months ago

I set merhing chest setting: 1xN 40x40.
I get an error when trying to combine a 40 by 40 chest

Error while running event WideChests::on_player_selected_area (ID 51)
Given bar value (76801) is too big, the data type allows values from 1 to 65536
stack traceback:
[C]: in function 'set_bar'
WideChests/control_init.lua:82: in function 'move_inventory_bar'
WideChests/scripts/event_handlers/merge_chest.lua:185: in function <WideChests/scripts/event_handlers/merge_chest.lua:174>

8 months ago

Fixed in brand new 5.1.0

8 months ago

The same error. I play with krastorio and 48 base chest size.

The mod Merging Chests (5.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event WideChests::on_player_selected_area (ID 51)
Given bar value (65537) is too big, the data type allows values from 1 to 65536
stack traceback:
[C]: in function 'set_bar'
WideChests/control_init.lua:82: in function 'move_inventory_bar'
WideChests/scripts/event_handlers/merge_chest.lua:185: in function <WideChests/scripts/event_handlers/merge_chest.lua:174>

8 months ago

Omg, off by one error, fixed in 5.1.1

8 months ago

Given bar value (65537) is too big, the data type allows values from 1 to 65536
look carefully, you lost where the 1 is in the algorithm

8 months ago

oh, sorry, I didn’t see that my mod wasn’t updated. everything works, you're great

New response