Even Distribution

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.

3 months ago
0.15 - 0.18

b Error on loading game

1 year, 4 months ago
(updated 1 year, 4 months ago)

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)
stack traceback:
[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.

1 year, 4 months ago

Fixed in version 0.3.5. Thanks for the detailed report :)

I also added the ingame changelog

1 year, 4 months ago
(updated 1 year, 4 months ago)

Wonderful, it works now! Thanks a lot for the quick fix, and the changelog! :-)

New response