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 years ago
0.15 - 1.1
336K

g [1.0.10] Non recoverable error in on_player_fast_transferred (ID 132)

11 months ago

Using the newest game version. That is 1.1.81

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_player_fast_transferred (ID 132)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
even-distribution/scripts/helpers.lua:21: in function 'index'
even-distribution/scripts/drag.lua:224: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:208: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>

Similar to the following:
https://mods.factorio.com/mod/even-distribution/discussion/6425ac9353c337cdeb95df58

difference between the two:
[C]: in function 'draw_sprite'
even-distribution/scripts/visuals.lua:47: in function 'mark'

vs
even-distribution/scripts/helpers.lua:21: in function 'index'
even-distribution/scripts/drag.lua:224: in function 'onStackTransferred'

8 months ago

I've got an identical case in the newest game version.

One possibility is that one of the chests I was transferring into was upgraded by a bot while I was inserting into it. So it is possible this sequence of actions triggered the bug:

1) I started click-dragging to insert into several chests at once
2) A bot upgraded one of the chests I had already dragged over
3) I let go of the left mouse button

It could be that the even distribution function doesn't check that chests were upgraded, and so tries to insert into chests that no longer have an associated LuaEntity.

New response