Even Distribution


Modifies CTRL + Click Drag to evenly distribute the items over multiple buildings. Also adds Inventory Cleanup hotkey (SHIFT+C) which evenly distributes unneeded items from inventory into nearby machines.

Utilities
2 months ago
0.15 - 2.0
412K

g Ctrl + Drag no longer working in 2.0

2 months ago

Hey, thanks for updating to 2.0 so quickly. I ran into some issues in a new save. Ctrl + left mouse drag doesn't seem to work at all anymore. Ctrl + right mouse drag works somewhat, but doesn't use half of my items, but rather like 90% of them. Also, the numbers that are displayed over each building that indicate the amount that will be inserted, is completely off.

Here's a video of what happens: https://imgur.com/a/qBsJ4gw. I use ctrl + left mouse drag there.

2 months ago

I have the same behavior. It seems to be a conflict with a new keybinding. Ctrl+Left Click now is mapped to Deselect (inside Advancded interaction). Removing that key binding fixes even distribution for me

2 months ago

Unsetting the ctrl+left click control hasn't helped for me - still broken

2 months ago

Hmm unbinding "Deselect" improves the behavior, but it's still broken for me. I've uploaded a second video to my imgur link above to show how it behaves now.

2 months ago

Yep, confirm... unsetting ctrl+left click does not work.. everything goes to first machine.

2 months ago

Same iissue on my side

2 months ago

Thanks for the report, I'll look into it. You can disable the drag feature in the settings window for now.

2 months ago

Yeah, suffered a crash too when I tried to keep ctrl drag distributing on furnace. Unfortunately didn't grab the error.

2 months ago

Yeah, suffered a crash too when I tried to keep ctrl drag distributing on furnace. Unfortunately didn't grab the error.

Error while running event even-distribution::on_player_fast_transferred (ID 140)
LuaGameScript doesn't contain key get_filtered_recipe_prototypes.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/helpers/LuaEntity.lua:32: in function 'canSmelt'
even-distribution/scripts/drag.lua:319: in function 'isEntityEligible'
even-distribution/scripts/drag.lua:225: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:210: in function 'func'
even-distribution/framework.lua:49: in function <even-distribution/framework.lua:48>

2 months ago

Looks like Ctrl+LMB drops a full stack(default behaviour) AND marks building for ED. If you have enough then buildings are already full when ED starts to distribute things. If you dont...well then there is nothing to distribute

2 months ago

I also crashed when trying to use the mod, same error as above

2 months ago

got this error on ctrl-drag (cleanup key works fine)

The mod Even Distribution (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::on_player_fast_transferred (ID 140)
LuaGameScript doesn't contain key get_filtered_recipe_prototypes.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/helpers/LuaEntity.lua:32: in function 'canSmelt'
even-distribution/scripts/drag.lua:319: in function 'isEntityEligible'
even-distribution/scripts/drag.lua:225: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:210: in function 'func'
even-distribution/framework.lua:49: in function <even-distribution/framework.lua:48>

2 months ago

Fixed in version 2.0.1

2 months ago

Your fix appears to have worked juts now (for me at least)

2 months ago

2.0.1 has fixed the ctrl-click for me as well -- thank you!

New response