[0.17] Even Distribution

Topics and discussion about specific mods
creepshowconsul
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Feb 13, 2021 5:41 pm
Contact:

Re: [0.17] Even Distribution

Post by creepshowconsul »

I really love this mod, does anybody know of a mod that does the opposite of dumping into nearby containers? (Instant mass-pickup of surrounding machine outputs)?
Trent the Thief
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Aug 18, 2021 4:55 pm
Contact:

Re: [0.17] Even Distribution

Post by Trent the Thief »

Getting an error after the most recent Factorio patch

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

Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
i-make-robots
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Fri Jul 25, 2014 9:06 pm
Contact:

Re: [0.17] Even Distribution

Post by i-make-robots »

Good day!

2021-08-18, latest factorio update seems to have broken ED v 1.0.8. all mods up to date, game is 1.1.38 (build 58907, win64). Error message is
Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
Thank you, stay awesome!
freebit75
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Feb 14, 2020 10:12 pm
Contact:

Re: [0.17] Even Distribution

Post by freebit75 »

I got the same error. Had to disable the mod.
Deruwyn
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Aug 19, 2021 2:25 am
Contact:

Re: [0.17] Even Distribution

Post by Deruwyn »

Have a crash in the latest version (1.1.38 (build 58907, win64)):

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

Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>


It happened when I tried to ctrl-distribute some iron plates to a chest.

Also happens with shift-C

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

Error while running event even-distribution::inventory-cleanup (ID 183)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:80: in function 'mark'
__even-distribution__/scripts/cleanup.lua:148: in function 'func'
__even-distribution__/scripts/util.lua:116: in function 'distribute'
__even-distribution__/scripts/cleanup.lua:132: in function 'func'
__even-distribution__/scripts/helpers.lua:176: in function 'each'
__even-distribution__/scripts/cleanup.lua:101: in function 'balanceItems'
__even-distribution__/scripts/cleanup.lua:23: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>


I tried to do some debugging but I'm not super familiar with Lua code. Lot's of syntax I'm not used to. I can't find anywhere in the stack trace trying to use a key "x". Seems like it has a lot of metaprogramming which always makes debugging more difficult.

Closest I can find is maybe in metatables class (Is it a class?) line 53. When the __index function is called it tries to get the x & y coordinates from the entity.position variable. I don't see how that's related though. There's a lot of magic going on that I don't understand I think. Anyway, that seems totally reasonable unless in the latest version of the code the LuaEntity being referenced somehow doesn't have a position. I get the impression that that shouldn't be the case though so I'm probably barking up the wrong tree.

The issue definitely seems to be in the spot where it tries to create the "highlight-box" in visuals line 40. I went through the API I found and it looks like all of the specified parameters look fine. I mean, it's caused when the mark function is called on the entity being passed to the onStackTransferred method in drag.lua. It really seems to point to the entity not having a position. From looking through the API and the methods here it seems like that would mean that the selected iron plates in my cursor don't have a position. That doesn't make any sense...

Anyway, sorry I can't be of more help. I'm just not familiar enough with this code.
Last edited by Deruwyn on Thu Aug 19, 2021 4:29 am, edited 1 time in total.
gunslingergr
Burner Inserter
Burner Inserter
Posts: 8
Joined: Tue Oct 29, 2019 8:00 pm
Contact:

Re: [0.17] Even Distribution

Post by gunslingergr »

Hey i just got this message while trying to distribute copper plates
Version: 1.1.38

Error while running event even-distribution::inventory-cleanup (ID 180)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:80: in function 'mark'
__even-distribution__/scripts/cleanup.lua:170: in function 'func'
__even-distribution__/scripts/helpers.lua:176: in function 'each'
__even-distribution__/scripts/cleanup.lua:164: in function 'func'
__even-distribution__/scripts/helpers.lua:176: in function 'each'
__even-distribution__/scripts/cleanup.lua:101: in function 'balanceItems'
__even-distribution__/scripts/cleanup.lua:23: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
muffins4all
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri Aug 20, 2021 9:18 pm
Contact:

Re: [0.17] Even Distribution

Post by muffins4all »

I'm sure you've seen a couple posts already regarding this bug, but I'll throw my error message in here too. It happened when I was trying to distribute Green Science Packs into the lab:

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

Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
Kaig3n
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Sep 01, 2017 3:48 am
Contact:

Re: [0.17] Even Distribution

Post by Kaig3n »

Friend on a multiplayer map tried to distribute stone to electric furnaces following Factorio's latest update.


Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
Kaig3n
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Sep 01, 2017 3:48 am
Contact:

Re: [0.17] Even Distribution

Post by Kaig3n »

Kaig3n wrote: Sat Aug 21, 2021 8:40 pm Friend on a multiplayer map tried to distribute stone to electric furnaces following Factorio's latest update.


Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
After updating my mods, the problem has gone away. I recommend anyone with this problem to try updating them.
@muffins4all
Gainedbedrock
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Aug 24, 2021 5:52 am
Contact:

Re: [0.17] Even Distribution

Post by Gainedbedrock »

I found a bug, I just pressed shift+c
The mod Even Distribution (1.0.8) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event even-distribution::inventory-cleanup (ID 187)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:80: in function 'mark'
__even-distribution__/scripts/cleanup.lua:83: in function 'func'
__even-distribution__/scripts/helpers.lua:176: in function 'each'
__even-distribution__/scripts/cleanup.lua:77: in function 'func'
__even-distribution__/scripts/helpers.lua:176: in function 'each'
__even-distribution__/scripts/cleanup.lua:30: in function 'distributeItems'
__even-distribution__/scripts/cleanup.lua:21: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
wobbycarly
Filter Inserter
Filter Inserter
Posts: 266
Joined: Tue Jan 29, 2019 4:00 am
Contact:

Re: [0.17] Even Distribution

Post by wobbycarly »

Gainedbedrock wrote: Tue Aug 24, 2021 5:57 am I found a bug, I just pressed shift+c
Update the mod.
Neutroniik
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Dec 11, 2021 8:05 am
Contact:

Re: [0.17] Even Distribution

Post by Neutroniik »

Error while running event even-distribution::on_player_fast_transferred (ID 129)
LuaEntity doesn't contain key x.
stack traceback:
[C]: in function '__index'
__even-distribution__/scripts/helpers.lua:21: in function <__even-distribution__/scripts/helpers.lua:20>
[C]: in function 'create_entity'
__even-distribution__/scripts/visuals.lua:39: in function 'mark'
__even-distribution__/scripts/drag.lua:237: in function 'onStackTransferred'
__even-distribution__/scripts/drag.lua:208: in function 'func'
__even-distribution__/framework.lua:99: in function <__even-distribution__/framework.lua:98>
Dominiquini
Inserter
Inserter
Posts: 25
Joined: Tue Mar 26, 2019 6:13 pm
Contact:

Re: [0.17] Even Distribution

Post by Dominiquini »

The game is crashing when I try to insert, using this mod, rocket fuel into silos (try to insert in 1 or 2 silos).
819.009 Error MainLoop.cpp:1284: Exception at tick 101226964: 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_tick (ID 0)
LuaInventory API call when LuaInventory was invalid.
stack traceback:
[C]: in function 'index'
__even-distribution/scripts/helpers/LuaControl.lua:94: in function 'insert'
even-distribution/scripts/helpers/LuaControl.lua:232: in function 'customInsert'
even-distribution/scripts/drag.lua:54: in function 'func'
even-distribution/scripts/util.lua:116: in function 'distribute'
even-distribution/scripts/drag.lua:43: in function 'distributeItems'
even-distribution/scripts/drag.lua:19: in function 'func'
even-distribution/framework.lua:99: in function <even-distribution/framework.lua:98>
Post Reply

Return to “Mods”