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

7 years ago

Checksum for script TrainsReader/control.lua: 1334227569 74.602 Error MainLoop.cpp:788:
Exception at tick 22320260: Error while running event on_train_changed_state (ID 23)

LuaEntity API call when LuaEntity was invalid.stack traceback:
TrainsReader/libs/eventsHandler.lua:48: in function 'getConstantCombinator'
TrainsReader/libs/eventsHandler.lua:8: in function 'OnTrainStateChanged'
TrainsReader/control.lua:30: in function <TrainsReader/control.lua:29>

7 years ago

And this happens, when I click on trainstation:

Error while running event on_tick (ID 0)
TrainsReader/libs/eventsHandler.lua:80: attempt to index global 'constComb' (a nil value)

7 years ago

I assume you added this mod on an existing game, so it tried to open the gui for a non trainsreader station.
I fixed it, if you want to open an old station that was not updated (i.e.: Not created with this mod and no train stopped to this station as least once), no Gui will open, and no crash will happen.

Thanks for the feedback

Niko

7 years ago

Yeah, I modded my existing game, because I wanted to do better train control.
But what little I have studied this mod, I think it won't work with Dynamic Train Stops.

So currently I'm running RailLogicSystem & Dynamic Train Stops...
I could fullfill my needs only using RLS mod, but I liked more how DTS does things. And I really hate that extra tab in crafting menu, what RLS adds.

Thanks anyways! :)

7 years ago

I didn't try DTS, and RLS didn't work for me, that is why I created this one.
Thanks for the feedback anyway :)

New response