Belt Balancer 2


Adds Balancer Parts, that can be put together, to balance all adjusting lanes. Updated for better performance and 2.0

Utilities
2 months ago
2.0
8.12K
Logistics

b Crash on placement

2 months ago

Happened between 2 balancers on working system

Мод Belt Balancer 2 (2.0.6) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event belt-balancer-2::on_built_entity (ID 6)
belt-balancer-2/objects/balancer.lua:111: attempt to index local 'balancer' (a nil value)
stack traceback:
belt-balancer-2/objects/balancer.lua:111: in function 'find_from_part'
belt-balancer-2/objects/part.lua:28: in function 'get_or_create'
belt-balancer-2/objects/part.lua:8: in function 'built'
belt-balancer-2/control.lua:133: in function <belt-balancer-2/control.lua:120>

2 months ago

Related bug, crash on mining:
Мод Belt Balancer 2 (2.0.6) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event belt-balancer-2::on_player_mined_entity (ID 68)
belt-balancer-2/objects/part.lua:200: attempt to index local 'balancer' (a nil value)
stack traceback:
belt-balancer-2/objects/part.lua:200: in function 'remove'
belt-balancer-2/control.lua:174: in function <belt-balancer-2/control.lua:163>

2 months ago

Related bug, crash on destroying:
Мод Belt Balancer 2 (2.0.6) вызвал неустранимую ошибку.
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event belt-balancer-2::on_entity_died (ID 4)
belt-balancer-2/objects/part.lua:200: attempt to index local 'balancer' (a nil value)
stack traceback:
belt-balancer-2/objects/part.lua:200: in function 'remove'
belt-balancer-2/control.lua:174: in function <belt-balancer-2/control.lua:163>

2 months ago
(updated 2 months ago)

Okay, seems like I have exact cursed balancer. I tried few things to remove this bug
https://i.imgur.com/gkAlLPq.jpeg
I have no idea what's wrong with him.
Placing near him leads to crash. Destroy leads crash. Mining him leads crash.

2 months ago

Okay, seems like I have exact cursed balancer. I tried few things to remove this bug
https://i.imgur.com/gkAlLPq.jpeg
I have no idea what's wrong with him.
Placing near him leads to crash. Destroy leads crash. Mining him leads crash.

I checked more, this balancer even works as intended, do his balancer purpose, when this balancer isolated. Also want to mention, that mining already placed near balancers doesn't lead to problem

2 months ago

I don't understand how to manually fix this. I can't remove in ways I know (tried gameplay methods and tried to remove in scenario editor, but it calls same methods, which used in gameplay)

2 months ago

Also got new error. But it's was after hopeless attempt to do anything, just found that archiehalliwell did some update on control.lua and placed this (previously it was always completely pure ur version loaded in mods.factorio.com)

Error while running event belt-balancer-2::on_entity_died (ID 4)
belt-balancer-2/objects/balancer.lua:280: Arguments count error for 'spill_item_stack': Expected 1 argument but 7 were given
stack traceback:
[C]: in function 'spill_item_stack'
belt-balancer-2/objects/balancer.lua:280: in function 'empty_buffer'
belt-balancer-2/objects/balancer.lua:426: in function 'check_connected'
belt-balancer-2/objects/part.lua:316: in function 'remove'
belt-balancer-2/control.lua:145: in function <belt-balancer-2/control.lua:134>

2 months ago
(updated 2 months ago)

Also got new error. But it's was after hopeless attempt to do anything, just found that archiehalliwell did some update on control.lua and placed this (previously it was always completely pure ur version loaded in mods.factorio.com)

It's was some random recent commit I found, so, probably unrelated to my problem.

2 months ago

Since I noticed u pushed his commit to ur github, I would recheck all 3 events:
Info: I downloaded and replaced control.lua, map same, actions same.

2 months ago

Error while running event belt-balancer-2::on_built_entity (ID 6)
belt-balancer-2/objects/balancer.lua:111: attempt to index local 'balancer' (a nil value)
stack traceback:
belt-balancer-2/objects/balancer.lua:111: in function 'find_from_part'
belt-balancer-2/objects/part.lua:28: in function 'get_or_create'
belt-balancer-2/objects/part.lua:8: in function 'built'
belt-balancer-2/control.lua:107: in function <belt-balancer-2/control.lua:94>

2 months ago

Error while running event belt-balancer-2::on_player_mined_entity (ID 68)
belt-balancer-2/objects/part.lua:200: attempt to index local 'balancer' (a nil value)
stack traceback:
belt-balancer-2/objects/part.lua:200: in function 'remove'
belt-balancer-2/control.lua:145: in function <belt-balancer-2/control.lua:134>

2 months ago

Error while running event belt-balancer-2::on_entity_died (ID 4)
belt-balancer-2/objects/balancer.lua:280: Arguments count error for 'spill_item_stack': Expected 1 argument but 7 were given
stack traceback:
[C]: in function 'spill_item_stack'
belt-balancer-2/objects/balancer.lua:280: in function 'empty_buffer'
belt-balancer-2/objects/balancer.lua:426: in function 'check_connected'
belt-balancer-2/objects/part.lua:316: in function 'remove'
belt-balancer-2/control.lua:145: in function <belt-balancer-2/control.lua:134>

2 months ago

Error while running event belt-balancer-2::on_entity_died (ID 4)
belt-balancer-2/objects/balancer.lua:280: Arguments count error for 'spill_item_stack': Expected 1 argument but 7 were given
stack traceback:
[C]: in function 'spill_item_stack'
belt-balancer-2/objects/balancer.lua:280: in function 'empty_buffer'
belt-balancer-2/objects/balancer.lua:426: in function 'check_connected'
belt-balancer-2/objects/part.lua:316: in function 'remove'
belt-balancer-2/control.lua:145: in function <belt-balancer-2/control.lua:134>

2 months ago

Ты обновил мод?

2 months ago
(updated 2 months ago)

Ты обновил мод?

Nah, it was on 2.05 too, just I doesn't did bug report as soon as it happened, and later here was 2.06 and some non-released changes, which I tested too and both of them not fixed my problem

So, I meet this problem yesterday on 2.05 near 18:00 GMT+3. When I did bug report 2.06 was released, which not resolved my problem, which already exist. And also here was some non-released changes, which not fix my problem neither, but I was forced to test them, since I really want to fix my problem without deleting mod (since if I delete mod, here wouldn't be any problem) T_T

2 months ago

3fd5ae5964a0ac63d7fc4fac5a9fcc3dff652b27 commit (last commits) of v2 branch of archiecarrot123 (archiehalliwell) partially solves the problem, allows to remove part, which cause problems.

2 months ago

Fixed in 2.0.8

2 months ago
(updated 2 months ago)

No, it's not fixed.

Or this is new bug. (tested on ur new version)

But, I see partial fix, at least I'm able to remove/destroy it, and probably if biters would destroy it it should be fine too.

Error while running event belt-balancer-2::on_built_entity (ID 6)
belt-balancer-2/objects/balancer.lua:111: attempt to index local 'balancer' (a nil value)
stack traceback:
belt-balancer-2/objects/balancer.lua:111: in function 'find_from_part'
belt-balancer-2/objects/part.lua:28: in function 'get_or_create'
belt-balancer-2/objects/part.lua:8: in function 'built'
belt-balancer-2/control.lua:107: in function <belt-balancer-2/control.lua:94>

New response