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
4 months ago
0.15 - 2.1
530K

b non-recoverable error.

13 days ago

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

Error while running event even-distribution :: on_init()
LualtemPrototype doesn't contain key fuel_category.
stack traceback:
[C]: in function ' index'
__even-distribution
/scripts/setup.lua:297: in function 'generateTrashltemList'
even-distribution/scripts/setup.lua:16: in function 'func'
even-distribution/framework.lua:49: in function 'handleEvent'
even-distribution/framework.lua:58: in function
even-distribution/framework.lua:58>

13 days ago

same error too +1

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

Error while running event even-distribution::on_init()
LuaItemPrototype doesn't contain key fuel_category.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/setup.lua:297: in function 'generateTrashItemList'
even-distribution/scripts/setup.lua:16: in function 'func'
even-distribution/framework.lua:49: in function 'handleEvent'
even-distribution/framework.lua:58: in function <even-distribution/framework.lua:58>

12 days ago

Sorry dev if I am stepping on your toes - but I went in and modified the errors for "fuel_category" to "fuel_categories" with a few other changes and it works for me now. I just went ahead and uploaded them to a github here: https://github.com/YourThoughts/Factorio

I don't use github often, but I believe you can open the source code and download. replace those two files in the even_distribution --> Scripts folder.

(Windows Key + R and paste this in) %appdata%\Factorio\mods

So far when loading my save I have tested it a few times now without any errors or crashes. As always, just make sure to create a backup of the Even Distribution zip file, just in case :)

11 days ago

After I applied the patch from (Yourthoughts), it worked at first, and then this happened!

Error while running event even-distribution::on_player_fast_transferred (ID 151)
LuaItemPrototype doesn't contain key fuel_category.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/drag.lua:315: in function 'isEntityEligible'
even-distribution/scripts/drag.lua:225: in function 'onStackTransferred'
even-distribution/scripts/drag.lua:210: in function 'func'
even-distribution/framework.lua:49: in function <even-distribution/framework.lua:48>

11 days ago

@Karu

Can you list what cause the issue when that popped up? or was it upon loading?

I went ahead and searched and found an issue. I corrected it on my end and it's working on my save (Can't say the same based on your current setup. But I went ahead and uploaded all lua files into my github that could simulate that error. Feel free to download all and give that a shot.

11 days ago

If that doesn't work - I will browse 321Freddys github to see if he or one of his mods have modified and corrected it.

11 days ago

The crash happened when I was trying to fill a stone furnace with coal using the drag command.

I'd love to check it out myself! But right now, I'm just happy if I have a little time to play.

11 days ago

okay - I tested in my save all sorts of furnaces with different fuel types, even utilized the Shift + C command - and so far zero issues. Definitely check my github with all the newest updates from yesterday, just replace the lua files. I am hoping that should work for you :) - hopefully, 321Freddy gets an update pushed via the mod soon and we won't have to tinker around lol

8 days ago

Error happened when i tried to start a new game.
Factorio Version 2.1.21 (build 87673 expansion, win64)


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

Error while running event even-distribution::on_init()
LuaItemPrototype doesn't contain key fuel_category.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/setup.lua:297: in function 'generateTrashItemList'
even-distribution/scripts/setup.lua:16: in function 'func'
even-distribution/framework.lua:49: in function 'handleEvent'
even-distribution/framework.lua:58: in function <even-distribution/framework.lua:58>

7 days ago

Got this loading in to an old save
The mod Even Distribution (2.1.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::on_init()
LuaItemPrototype doesn't contain key fuel_category.
stack traceback:
[C]: in function 'index'
__even-distribution
/scripts/setup.lua:297: in function 'generateTrashItemList'
even-distribution/scripts/setup.lua:16: in function 'func'
even-distribution/framework.lua:49: in function 'handleEvent'
even-distribution/framework.lua:58: in function <even-distribution/framework.lua:58>

New response