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
5 months ago
0.15 - 2.0
429K

g Ctrl + Drag no longer working in 2.0

5 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.

5 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

5 months ago

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

5 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.

5 months ago

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

5 months ago

Same iissue on my side

5 months ago

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

5 months ago

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

5 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>

5 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

5 months ago

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

5 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>

5 months ago

Fixed in version 2.0.1

5 months ago

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

5 months ago

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

2 months ago

Looks like I'm getting this bug again after the patch. Is anyone else perhaps getting this issue again also? I started a brand new save today and it was working fine, accidentally flipped a switch in the settings while adjusting the fuel amount and now ctrl+click just stops on the first building I mouse over.

2 months ago

Looks like I'm getting this bug again after the patch. Is anyone else perhaps getting this issue again also? I started a brand new save today and it was working fine, accidentally flipped a switch in the settings while adjusting the fuel amount and now ctrl+click just stops on the first building I mouse over.
EDIT: Nevermind. Disabling and reenabling the mod after loading without it fixed the issue XP

a month ago

Broken again. Same issue

a month ago

Broken again. Same issue

Try this.
Disable the mod
Load your save without it
Immediately Save & Quit
Turn the mod back on and test it out

A temporary fix until the issue is patched, but it works every time for me now. I've had to three times since, but at least this works.

For me, even distribution just doesn't work sometimes. Sometimes ctrl+left click drag does vanilla behavior in which it inserts a full stack immediately into each building. It seems to be case-specific, as re-trying does not change it. I tried the above steps to fix but they did not help.

New response