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

g 1.0.5 crash while ctrl+click across invalid target

3 years ago
(updated 3 years ago)

The mod Even Distribution (1.0.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::on_player_fast_transferred (ID 127)
even-distribution/scripts/helpers/LuaEntity.lua:67: attempt to index local 'ammoType' (a nil value)
stack traceback:
even-distribution/scripts/helpers/LuaEntity.lua:67: in function 'supportsAmmo'
even-distribution/scripts/drag.lua:321: in function 'isEntityEligible'
even-distribution/scripts/drag.lua:223: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:208: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>

The error is extremely reproducible. Holding Ctrl+click with coal in hand and dragging across burner miners, accidentally hit a nearby gun turret and immediately throws this error. This is with Krastorio2, SpaceEx, and all their various dependencies (notably Combat Mechanics Overhaul which touches both the burner miners and the turrets)

3 years ago

Exact same issue, running K2 + AAI + SE. Not sure if any of them are the cause, but game is having none of it.

3 years ago

I can report the same error. Initially caused by trying to load turrets into turrets mistakenly. Attempted to reproduce, and got same error

3 years ago

Fixed in version 1.0.6. Thanks for the report!

New response