Train warner

by kid2407

Warns you when you are going to be run over by a train.

Utilities
4 years ago
0.18
5

b Unrecoverable error

4 years ago

Hi, just tried to resume a playthrough after adding Train Warner, and got this message at game start:
<quote>The mod Train warner (1.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event train_warner::on_nth_tick(1)
train_warner/control.lua:30: attempt to index field '?' (a nil value)
stack traceback:
train_warner/control.lua:30: in function 'isTrainInRange'
train_warner/control.lua:67: in function <train_warner/control.lua:61>
</quote>
I'm afraid it means nothing to me!
Cheers

4 years ago

Oh, I have a suspicion why it crashed, will report back if I identified the issue. Is it possible you don't have any active trains yet?

4 years ago

Do you mean any trains actually on the move at the resume point? It's very possible that all trains were stopped at that point, but there were definitely many locomotives on the rail network.

New response