Belt Balancer (Improved Performance)


Superseded by Belt Balancer 2. (Fork with performance improvement) Adds Balancer Parts, that can be put together, to balance all adjusting lanes.

Content
1 year, 4 months ago
1.1
32.2K
Logistics

b Error

2 years ago

Error while running event belt-balancer-performance::on_nth_tick(1)
invalid key to 'next'
stack traceback:
[C]: in function 'next'
belt-balancer-performance/objects/balancer.lua:213: in function 'run'
belt-balancer-performance/helper/message-handler.lua:33: in function <belt-balancer-performance/helper/message-handler.lua:31>

2 years ago
(updated 2 years ago)

What were you doing when you got the crash?
Did you remove an output of the balancer (especially the last one)?
This error is a bit odd, and is probably not very reproducible as it seems like an output of the balancer was removed while the function 'run' was running (it checks that there are output lanes before running), so there must have been a race condition between the function that updates outputs and the function that moves items.

2 years ago

i replace belt near it

2 years ago

I couldn't reproduce the bug but in the new release the size of the table is now checked a second time just before the next call, so this shouldn't happen again.

New response