Schall Railway Controller


Assist train organizations and dispatches. Adds a GUI listing idling and stalled trains (or other customizable filters). Displays train status, for easy and quick schedule inspection and assignment. (Locale: English, Deutsch, 正體中文, 简体中文, Português Brasileiro)

Utilities
3 months ago
0.17 - 2.0
5.42K
Trains

b [Solved?] Crash when opening GUI

4 months ago
(updated 4 months ago)

First it was crash when showing moving trains in the GUI with the first error message , might be related to my station naming nomenclature, because after fixing a few things in my train test network; and removing a few spaces that were randomly added to the end of one station name , it got worse and is now crashing as soon as i open the GUI with the second error message

station names :
(parametrised stations are not in the network or train schedule)
[virtual-signal=signal-grey] Depot
⟻ [item=copper-ore] Requester
[item=copper-ore] ⟼ Provider
⟻ [item=iron-ore] Requester
[item=iron-ore] ⟼ Provider

[item=parameter-0] ⟼ [item=locomotive] Provider
[item=train-stop]⟻ [item=parameter-0] Requester

1rst error:

The mod Schall Railway Controller (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SchallRailwayController::on_train_schedule_changed (ID 122)
SchallRailwayController/lib/RClib.lua:424: attempt to index local 'record' (a nil value)
stack traceback:
SchallRailwayController/lib/RClib.lua:424: in function 'elem_label_train_station'
SchallRailwayController/lib/RCgui.lua:298: in function 'frame_main_refresh'
SchallRailwayController/lib/RCgui.lua:1348: in function 'refresh_all'
SchallRailwayController/control.lua:342: in function <SchallRailwayController/control.lua:330>

2nd error :

The mod Schall Railway Controller (2.0.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event SchallRailwayController::on_gui_click (ID 1)
SchallRailwayController/lib/RClib.lua:563: attempt to index field '?' (a nil value)
stack traceback:
SchallRailwayController/lib/RClib.lua:563: in function 'elem_label_train_line'
SchallRailwayController/lib/RCgui.lua:300: in function 'frame_main_refresh'
SchallRailwayController/lib/RCgui.lua:394: in function 'frame_main_create'
SchallRailwayController/control.lua:47: in function <SchallRailwayController/control.lua:28>

4 months ago

i got rid of second error deleting this : (the parametrised trains for making my Blueprints)

https://factoriobin.com/post/2rg5fizeoml0-EXPIRES

and this is the bit generating the 1rst error: (requires Editor Extensions mod)

https://factoriobin.com/post/6pium5

3 months ago

I cannot reproduce the bug.
However, I have attempted a generic fix based on your error message.
Now 2.0.1 will first have validity check on train schedule and train records, before trying to read station names. Hope this will solve the problem.
Please update me, whether the update works for you or not.

New response