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

b Crash (Error 'OnEntityBuilt')

7 years ago
(updated 7 years ago)

Hi,
I just installed the mod, and when I load my current map, I can play for around 5 or 10s before it crashes. I assume it is when a train is leaving a train stop.

Here is the error :
"""
Error while running event on_train_changed_state (ID 23)
TrainsReader/events/globalEvents.lua:11: attempt to call global 'OnEntityBuilt' (a nil value)
"""

I also tried deleting all my mods except this one, but it crashes too.

Thanks for any help !

7 years ago

Hi
Very sorry for that.
It should work, now (Version 0.2.1)

7 years ago

Hi, thanks for the update.
Unfortunately, this one causes the game to crash on loading.

Here is the error :
"""
TrainsReader/data.lua:1: TrainsReader/prototypes/trainreader.lua:4: attempt to call global 'overwriteContent' (a nil value)
"""

7 years ago

Argh, this is annoying, for any reason, some libs were not called anymore.
SOrry again. New version with correction!

New response