Modifies CTRL + Click Drag to evenly distribute the items over multiple buildings.
Also adds Inventory Cleanup hotkey (SHIFT+C) which evenly distributes excess trash items from inventory into nearby machines.
I just started a new game -- and died. On trying to load the latest savegame, Factorio bailed out (bringing me back to the main menu) with the following error:
The mod Even Distribution caused a non-recoverable error.
Please report this error to the mod author.
Error while running event even-distribution::on_tick (ID 0) even-distribution/scripts/helpers/LuaPlayer.lua:49: bad argument #-1 to 'get_item_count' (string expected, got nil)
[C]: in function 'get_item_count' even-distribution/scripts/helpers/LuaPlayer.lua:49: in function <even-distribution/scripts/helpers/LuaPlayer.lua:46>
(...tail calls...) even-distribution/scripts/drag.lua:27: in function 'distributeItems' even-distribution/scripts/drag.lua:14: in function 'func' even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>
Two things I should mention: A nasty bug currently prevents me from playing Factorio with any version >0.17.14, so 0.17.14 is the version I'm using, while your mod is at 0.3.4. Also, the savegame that failed to load was an autosave. Apparently, the game has been saved while I had already marked some furnaces to be filled with coal, so on load, the coal should be inserted.
I don't know how to include files here, so I'll send you screenshot and savegame in a PM on the forum.