TrainsReader deprecated

by Hermios

Lets read the content of a train when at a trainStop which is connected to a circuitnetwork

Content
7 years ago
0.14
5
Trains

g Game crashes on removing cargo wagon when stopped at a trainstop

7 years ago

Upon removing a cargo wagon with all filtered iron slots from a train, the game spits out this notice:

Error while running event on_tick (ID 0)
LuaTrain API call when LuaTrain was invalid.
stack traceback:
TrainsReader/libs/eventsHandler.lua:64: in function 'OnTicksetTrainCircuitNetwork'
TrainsReader/control.lua:35: in function <TrainsReader/control.lua:34>

7 years ago

Thanks for noticing.
I fixed it

7 years ago

Have checked, can now remove cargo wagons with slots without difficulty.
Thanks!

New response