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
30 days ago
0.15 - 2.0
405K

g Ctrl + Drag no longer working in 2.0

a month 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.

a month 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

a month ago

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

a month 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.

a month ago

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

a month ago

Same iissue on my side

a month ago

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

a month ago

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

a month 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>

a month 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

a month ago

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

a month 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>

a month ago

Fixed in version 2.0.1

a month ago

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

a month ago

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

New response