TrainsCaller deprecated

by Hermios

Allows trainstations to call trains when conditions are fulfilled

Content
4 years ago
0.14 - 0.18
14
Trains

b Different crash than what i reported the other day.

5 years ago
(updated 5 years ago)

The setup (as a blueprint to reproduce):
https://pastebin.com/Lg1r3fmz
Each train carrying 2 nuclear fuel.

Mod that were installed along side TrainCaller & Train SignalSender (and their dependency), is only two :
1. Creative Mod
2. Push button (just a mod to toggle constant combi with one key press shorcut)

Aside from that two, i installed nothing else.

To reproduce the crash :
Toggle both constant combi on the right side (Station B & C) to on.

I made this test to figure out "allow multiple call" functionality.

Error log :
72.148 Error MainLoop.cpp:1223: Exception at tick 419505: The mod TrainsCaller caused a non-recoverable error.
Please report this error to the mod author.

Error while running event TrainsCaller::on_tick (ID 0)
TrainsCaller/methods/trainFunctions.lua:63: attempt to index local 'self' (a nil value)
stack traceback:
TrainsCaller/methods/trainFunctions.lua:63: in function 'isCallable'
TrainsCaller/methods/trainStationFunctions.lua:105: in function 'findTrainForSignal'
TrainsCaller/methods/trainStationFunctions.lua:73: in function 'updateRequestedSignals'
TrainsCaller/methods/globalEvents.lua:19: in function 'OnTick'
HermiosLibs/controlLib.lua:38: in function <HermiosLibs/controlLib.lua:31

5 years ago

Hey
Yes, I found out this issue, and already fixed it locally.
I will provide a fixed version soon
Thanks for it anyway

New response