Train Alert GUI

by eduran

Adds a GUI displaying train-related alerts.

Content
5 years ago
0.17
12
Trains

b [Resolved] station is nil in start_monitoring()

5 years ago
(updated 5 years ago)

Error while running event Train_Alerts::on_train_changed_state (ID 23)
Train_Alerts/script/train_state_monitor.lua:48: attempt to index field 'station' (a nil value)
stack traceback:
Train_Alerts/script/train_state_monitor.lua:48: in function 'start_monitoring'
Train_Alerts/script/train_state_monitor.lua:176: in function 'handler'
Train_Alerts/control.lua:56: in function <Train_Alerts/control.lua:54>

I'm not sure if the alert GUI was open when it died.

5 years ago

Was a train arriving at a temporary stop around that time? I forgot that those are a thing... :oops: Will be fixed shortly.

New response