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
2 months ago
0.16 - 2.0
735
Trains Circuit network

Changelog

Version: 1.4.0
Date: 14. 10. 2024
  Features:
    - Updated for Factorio 2.0.
  Changes:
    - Uses conditional on_tick subscription and on_object_destroyed registration for better performance.
Version: 1.3.1
Date: 21. 05. 2022
  Features:
    - Added full compatibility with multiple surfaces.
  Changes:
    - All schedule modifications are now done with temporary station schedule entries. This should not affect any existing setups.
    - Schedules are no longer deleted and stored in the ether while awaiting dispatch. A temporary waiting stop is added to the schedule and removed when not waiting anymore.
    - A lot of general code cleanup related to the above changes.
Version: 1.3.0
Date: 13. 11. 2021
  Features:
    - Updated for Factorio 1.1.
Version: 1.2.0
Date: 16. 05. 2020
  Features:
    - Updated for Factorio 0.18.
Version: 1.1.2
Date: 02. 02. 2020
  Features:
    - Added "/dispatcher-debug dumplog" command to write global station and train list to the log file.
  Changes:
    - Optimized station indexing using events to minimize CPU use when no train stops are being built/destroyed/renamed.
  Bugfixes:
    - Fixed that uncoupled wagons were set to automatic mode even though they had no locomotive, which prevented unloading.
    - Fixed "/dispatcher-debug dump" command crash.
    - Fixed crash when dispatched train has no schedule.
Version: 1.1.1
Date: 07. 03. 2019
  Features:
    - Add flying text to dispatcher when a train is dispatched
    - Fix bug caused by temporary stations
Version: 1.1.0
Date: 05. 03. 2019
  Features:
    - Add support for Factorio 0.17.x
Version: 1.0.3
Date: 27. 10. 2018
  Bugfixes:
    - Fix bug that crashes the game when the mod is first installed
Version: 1.0.2
Date: 25. 10. 2018
  Bugfixes:
    - Fix bug with disabled stations
    - Fix bug when coupling/uncoupling trains
    - Add debug mode (activated with command \disptacher-debug enabled)
Version: 1.0.1
Date: 31. 08. 2018
  Bugfixes:
    - Fix FPS drop when train waiting at dispatcher
Version: 1.0.0
Date: 28. 08. 2018
  Features:
    - Initial version of the mod