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
5 months ago
0.15 - 2.0
429K

b Strange crash to report "count must be positive"

2 months ago

First, the crash log.


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

Error while running event even-distribution::on_player_fast_transferred (ID 141)
count must be positive
stack traceback:
[C]: in function 'insert'
even-distribution/scripts/drag.lua:258: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:210: in function 'func'
even-distribution/framework.lua:49: in function <even-distribution/framework.lua:48>


I was doing some dumb stuff--I have loaded into a save that has an almost empty map, had the editor enabled, and I had the time paused.

To just take a look at the diminishing returns of speed modules on crafting speed, I had built a Legendary Rocket Silo with a ring of Legendary Beacons all around it, and went to ctrl-click and drag to insert Legendary Tier 3 Speed Modules into them.

Upon either ctrl-click dragging, or just ctrl-clicking at all, the game crashes and I receive that error message.

I did a bit of further testing and while the crash happens every time when trying to insert Speed Modules into those beacons, it is not entirely consistent if I change a few things. For whatever reason the error does not happen if either the time is unpaused, or if I try to insert Efficiency Modules into the Beacons.

I don't really need to do this so I'm not too perturbed by this but I thought I would report it as requested. I have also retained the save file in the state right before the reproducable crash, so if it would help to send it perhaps we can arrange that.

Thanks for all of your hard work in maintaining this essential QoL mod!

New response