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
15 days ago
0.15 - 2.1
513K

g 2.1 please

a month ago

Please, i need this mod to start a new run at 2.1

a month ago

+1

a month ago

Me too please

15 days ago

With 2.1 manually enabled, I get the following crash when trying to distribute coal across miners/furnaces that already have coal in them:

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

Error while running event even-distribution::on_tick (ID 0)
'inventory index': real number expected got nil.
stack traceback:
    [C]: in function 'get_inventory'
    __even-distribution__/scripts/helpers/LuaControl.lua:78: in function 'inventory'
    __even-distribution__/scripts/helpers/LuaControl.lua:129: in function 'insert'
    __even-distribution__/scripts/helpers/LuaControl.lua:236: in function 'customInsert'
    __even-distribution__/scripts/drag.lua:54: in function 'func'
    __even-distribution__/scripts/util.lua:116: in function 'distribute'
    __even-distribution__/scripts/drag.lua:43: in function 'distributeItems'
    __even-distribution__/scripts/drag.lua:19: in function 'func'
    __even-distribution__/framework.lua:49: in function <__even-distribution__/framework.lua:48>
15 days ago
(updated 15 days ago)

Please, i need this mod to start a new run at 2.1

Me too. Please, update.

15 days ago

From the 2.1 patch notes:

Removed defines.inventory.assembling_machine_input, furnace_source, and rocket_silo_input. Use defines.inventory.crafter_input instead.
Removed defines.inventory.assembling_machine_output, furnace_result, and rocket_silo_output. Use defines.inventory.crafter_output instead.
Removed defines.inventory.assembling_machine_modules, furnace_modules, and rocket_silo_modules. Use defines.inventory.crafter_modules instead.
Removed defines.inventory.assembling_machine_trash and furnace_trash. Use defines.inventory.crafter_trash instead.
15 days ago

I have a working local copy, and have created a pull request: https://github.com/321freddy/even-distribution/pull/60

15 days ago

Fixed in version 2.1.0

New response