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 Multiplayer Server Crash on Shift+C

5 years ago
(updated 5 years ago)

EDIT Apologies, after posting this, I did some more digging on my server and found it had somehow kept using an older version of ED vs the most recent! Currently working amazing! EDIT

Using Shift+C will consistently crash a locally hosted multiplayer server.

178.151 Error MainLoop.cpp:1195: Exception at tick 2243221: The mod Even Distribution caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::inventory-cleanup (ID 150)
real number expected got nil.
stack traceback:
even-distribution/scripts/helpers/LuaControl.lua:52: in function 'inventory'
even-distribution/scripts/helpers/LuaControl.lua:60: in function 'contents'
even-distribution/scripts/helpers/LuaPlayer.lua:18: in function 'trashItems'
even-distribution/scripts/cleanup.lua:14: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>
stack traceback:
[C]: in function 'get_inventory'
even-distribution/scripts/helpers/LuaControl.lua:52: in function 'inventory'
even-distribution/scripts/helpers/LuaControl.lua:60: in function 'contents'
even-distribution/scripts/helpers/LuaPlayer.lua:18: in function 'trashItems'
even-distribution/scripts/cleanup.lua:14: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98
178.152 Error ServerMultiplayerManager.cpp:92: MultiplayerManager failed: "The mod Even Distribution caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::inventory-cleanup (ID 150)
real number expected got nil.
stack traceback:
even-distribution/scripts/helpers/LuaControl.lua:52: in function 'inventory'
even-distribution/scripts/helpers/LuaControl.lua:60: in function 'contents'
even-distribution/scripts/helpers/LuaPlayer.lua:18: in function 'trashItems'
even-distribution/scripts/cleanup.lua:14: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>
stack traceback:
[C]: in function 'get_inventory'
even-distribution/scripts/helpers/LuaControl.lua:52: in function 'inventory'
even-distribution/scripts/helpers/LuaControl.lua:60: in function 'contents'
even-distribution/scripts/helpers/LuaPlayer.lua:18: in function 'trashItems'
even-distribution/scripts/cleanup.lua:14: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>
178.153 Info ServerMultiplayerManager.cpp:776: updateTick(2243221) changing state from(InGame) to(Failed)
178.153 Quitting: multiplayer error.

New response