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
1 year, 1 month ago
0.15 - 2.0
472K

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

1 year, 1 month ago

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.

1 year, 1 month ago

same here

1 year, 1 month ago

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

1 year, 1 month ago

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

1 year, 1 month ago

I'm also experiencing this issue :(

1 year, 1 month ago

Same thing for me :(

1 year, 1 month ago

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

1 year, 1 month 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.

1 year, 1 month ago

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

1 year, 1 month 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>

1 year, 1 month 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.

1 year, 1 month 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

1 year, 1 month ago
(updated 1 year, 1 month 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.

1 year, 1 month ago
(updated 1 year, 1 month ago)

delete

1 year, 1 month ago
(updated 1 year, 1 month ago)

delete

1 year, 1 month ago
(updated 1 year, 1 month 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.

1 year, 1 month 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>

1 year, 1 month ago

Fixed in version 2.0.1

1 year, 1 month ago

WOOT! It works now! Awesome work!

1 year, 1 month ago

Fixed in version 2.0.1

Thank you!

1 year, 1 month 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.

1 year, 1 month 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.