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
11 months ago
2.0
610
Logistics Circuit network

b Crash

9 months ago

I'm using it in platforms, so I assume one of them is getting damaged

The mod Read belt contents, hold (all belts), read belt length (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event read-belt-contents-hold-all-belts-read-belt-count::on_object_destroyed (ID 174)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
...lt-contents-hold-all-belts-read-belt-count
/control.lua:232: in function <...lt-contents-hold-all-belts-read-belt-count__/control.lua:222>

8 days ago

got a similar error today with slightly different text

Exception at tick 98936249: The mod Read belt contents, hold (all belts), read belt length (1.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event read-belt-contents-hold-all-belts-read-belt-count::on_object_destroyed (ID 178)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
[C]: in function 'index'
...lt-contents-hold-all-belts-read-belt-count
/control.lua:232: in function <...lt-contents-hold-all-belts-read-belt-count__/control.lua:222>

8 days ago

at least i was able to reproduce the event, my platform was flying the first time towards Aquilo, when the lasers were not longer able to shoot all asteroids those hit the platform and destroyed entities and finally the space platform hub which results in the loss of the platform.

I was able to fix the event crashing the game in my local copy by adding several "...is_valid" checks for several entities involved at the code position of the crash.

New response