[0.17] Even Distribution
-
- Manual Inserter
- Posts: 1
- Joined: Sat Feb 13, 2021 5:41 pm
- Contact:
Re: [0.17] Even Distribution
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)?
-
- Manual Inserter
- Posts: 1
- Joined: Wed Aug 18, 2021 4:55 pm
- Contact:
Re: [0.17] Even Distribution
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>
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>
-
- Long Handed Inserter
- Posts: 62
- Joined: Fri Jul 25, 2014 9:06 pm
- Contact:
Re: [0.17] Even Distribution
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
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
Thank you, stay awesome!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>
Re: [0.17] Even Distribution
I got the same error. Had to disable the mod.
Re: [0.17] Even Distribution
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.
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.
-
- Burner Inserter
- Posts: 8
- Joined: Tue Oct 29, 2019 8:00 pm
- Contact:
Re: [0.17] Even Distribution
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>
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>
-
- Manual Inserter
- Posts: 1
- Joined: Fri Aug 20, 2021 9:18 pm
- Contact:
Re: [0.17] Even Distribution
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>
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>
Re: [0.17] Even Distribution
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>
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>
Re: [0.17] Even Distribution
After updating my mods, the problem has gone away. I recommend anyone with this problem to try updating them.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>
@muffins4all
-
- Manual Inserter
- Posts: 1
- Joined: Tue Aug 24, 2021 5:52 am
- Contact:
Re: [0.17] Even Distribution
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>
-
- Filter Inserter
- Posts: 269
- Joined: Tue Jan 29, 2019 4:00 am
- Contact:
Re: [0.17] Even Distribution
Update the mod.
-
- Manual Inserter
- Posts: 1
- Joined: Sat Dec 11, 2021 8:05 am
- Contact:
Re: [0.17] Even Distribution
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>
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>
-
- Inserter
- Posts: 25
- Joined: Tue Mar 26, 2019 6:13 pm
- Contact:
Re: [0.17] Even Distribution
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 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>