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 Crash

2 years ago

I'm trying to insert rocket fuel on 2 silos using even distribution and this mod crashed:


819.009 Error MainLoop.cpp:1284: Exception at tick 101226964: The mod Even Distribution (1.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::on_tick (ID 0)
LuaInventory API call when LuaInventory was invalid.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/helpers/LuaControl.lua:94: in function 'insert'
even-distribution/scripts/helpers/LuaControl.lua:232: 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:99: in function <even-distribution/framework.lua:98>


Thanks

2 years ago

I tested again and found that that crash happens if I try to use with only one silo!

Thanks.

New response