Belt Balancer (Improved Performance)


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

Content
9 months ago
1.1
27.3K
Logistics

b Error

1 year, 9 months 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>

1 year, 9 months ago
(updated 1 year, 9 months 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.

1 year, 9 months ago

i replace belt near it

1 year, 9 months 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