Read belt contents, hold (all belts), read belt length

by Quezler

Sometimes you wish to keep the belt a certain percentage full of items, with this mod you can read the belt length.

Utilities
4 months ago
2.0
466
Logistics Circuit network

b when expanding/changing a existing belt, belt length gets off by one or reacts lafter several operations

9 months ago

Nice Feature to get now the belt length including underground belts.
1. when expanding a existing belt with enabled reading of the belt length it doesn't update the value for the first segment added. All subsequent segments get counted.
2. when rotating belt segements in opposite direction the belt length doesn't show correct values, just after 4 segments have been rotated the length gets updated
The workaround is to disable reading the belt length and reenable it.

9 months ago

this mod updates every 10 seconds, have you tried waiting around a bit to see if the number corrects itself?

9 months ago

aaaah, so i was just too impatient :D

tyvm

9 months ago

yeah its a performance thing, i cannot directly ask the game engine how long the section of belt is so i manually need to trace it, and doing that only once every 600 ticks seemed reasonable to me, i kinda hoped people would just assume it worked and not look at the value right after making a change :D

9 months ago

maybe adjust for hz. gameticktimescale mod at 120hz means every 5 secs

9 months ago

why

4 months ago

due to a recent api addition i was able to increase the update rate and clean up some code as well, you'll need the latest experimental tho.

New response