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

b CTRL+Click/Drag not working as expected in v2.0.7

Just installed the latest version of the game, with DLC, and installed this mod along with other QoL mods that have also been updated.
Shift+C mode works as expected when trying to split coal (or wood) between furances and miners however CTRL+C isn't working as expected.
It's depositing the full amount into each item before the mod can kick in. So it might say 19 and 19 but it's already inserted 50 and 34 and displays red zeros above each.

I think the hooks into the game aren't working as expeccted.

2 months ago

same here

2 months ago

phew, good thing its not just me. i dont even know how to split stuff without this mod pls send help.

Glad it's not just me. Hopefully an easy fix. :)

2 months ago

I'm also experiencing this issue :(

2 months ago

Same thing for me :(

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

It only happens with copper ore into furnaces for me.
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>

is what i am getting hope it helps.

2 months ago

Iron plate to steel in stone furnace ctrl-click causes a crash (says it's an unrecoverable error).

2 months ago

Yeah, trying to use the ctrl-click with iron plates into a furnace causes this error:

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

I'm also getting this same crash that Irineras posted about, but it's with iron ore or copper ore. Shift C works for getting coal in though.

2 months ago

Yeah, trying to use the ctrl-click with iron plates into a furnace causes this error:

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>

I hade the same error

2 months ago
(updated 2 months ago)

I am getting this error.

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>

The way to reproduce it, is to have many stacks of the item in inventory.

If there is a small amount in personal inventory, there is no error.

2 months ago
(updated 2 months ago)

delete

2 months ago
(updated 2 months ago)

delete

2 months ago
(updated 2 months ago)

Just tried the same thing with Wood to mining drills and furnaces. Control + Click/Drag just dropped the entire inventory into one drill. Shift + C does nothing.

2 months ago

Same for trying to put stones into furnaces via this mod

2858.348 Error MainLoop.cpp:1429: Exception at tick 570043: 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

WOOT! It works now! Awesome work!

2 months ago

Fixed in version 2.0.1

Thank you!

2 months ago

i am having some issues with even distribution, in 1.1 and previous versions i could press the quick transfer button before hovering over an entity, allowing me to get an even distribution while having less than one stack in my hand.
but now i must have more than one stack in my hand in order to distribute the items, as i have to press quick transfer while hovering over the entity which transfers a stack into it before allowing me to balance the items. after which i can move the mouse over the same entity again to begin the balance between all that i prefer to use.

2 months ago

i am having some issues with even distribution, in 1.1 and previous versions i could press the quick transfer button before hovering over an entity, allowing me to get an even distribution while having less than one stack in my hand.
but now i must have more than one stack in my hand in order to distribute the items, as i have to press quick transfer while hovering over the entity which transfers a stack into it before allowing me to balance the items. after which i can move the mouse over the same entity again to begin the balance between all that i prefer to use.

Please don't post this here and make a new thread...

It still works exactly the same as in 1.1, start dragging while not hovering over anything...

This thread has been locked.