Dispatcher: dispatch trains to chosen stations with signals


Adds a new train station (Dispatcher) that dispatches waiting trains to a station when a dispatch virtual signal is received (target station ID is provided via the signal).

Content
1 year, 11 months ago
0.16 - 1.1
461
Trains Circuit network

b An error occurred while stopping the called train. V1.10

5 years ago

Error while running event Dispatcher::on_train_changed_state (ID 23)
Dispatcher/control.lua:77: attempt to index field 'station' (a nil value)
stack traceback:
Dispatcher/control.lua:77: in function <Dispatcher/control.lua:56>

5 years ago

Thank you for the bug report.
How did this happened exactly? What do you mean exactly by "stopping the called train"?

Thank you in advance for your advice in helping me reproduce the bug

5 years ago

I was at the beginning of the game. Just built the first railway without stations. Created a train L-W-W-W-W-L. Added your mod. Caused the train to yourself (Ctrl+Lmouse on the map in the menu of the locomotive). When the train stopped this error occurred.
Sorry, if there are errors in the text, I translate through Google Translate.

5 years ago

Thanks for your help, the bug is fixed in the new version 1.1.1

(it was caused by the new 0.17 call train functionality and strange Factorio behavior, but I was able to fix it easily)

5 years ago

Great! Thanks for the mod)

New response