Train Groups


Trains assigned to the same group will have the same schedule. Includes support for Train Control Signals.

Content
6 months ago
1.1
24.3K
Trains

Changelog

Version: 1.4.3
Date: 2023-10-14
  Bugfixes:
    - Fixed a crash when creating a group when a train has only temporary stations in its schedule. (#21)
    - Fixed that the change group GUI would get stuck on screen if the train was destroyed. (#22)
Version: 1.4.2
Date: 2023-06-15
  Changes:
    - Made adjustments to better support game controllers.
  Bugfixes:
    - Fixed a crash when a player is removed on configuration changed.
Version: 1.4.1
Date: 2023-06-14
  Bugfixes:
    - Fixed a crash when a train is migrated while the train or change group GUI is open (#20)
Version: 1.4.0
Date: 2023-06-04
  Features:
    - Added remote interface functions for getting and setting train groups (TrainGroups::get_train_group, TrainGroups::set_train_group)
    - Groups can be auto-created at any time, not just when there are no groups (#13)
  Bugfixes:
    - Fixed relative GUIs causing annoying GUI movements when playing in multiplayer
Version: 1.3.5
Date: 2023-04-29
  Changes:
    - ACTUALLY updated base dependency to 1.1.80
Version: 1.3.4
Date: 2023-04-29
  Changes:
    - Updated base dependency to 1.1.80, flib dependency to 0.12.6
  Bugfixes:
    - Fixed a crash when adding a temporary stop when the train is in a group with no schedule (#15)
    - Fixed that removing the last stop in a schedule would not reflect that change to other trains in the group (#15)
    - [Space Exploration] Fixed that the change groups GUI would get stuck open if the open train went through a space elevator (#16)
Version: 1.3.3
Date: 2023-01-21
  Bugfixes:
    - Fixed that the group schedule would be updated when adding temporary stops
Version: 1.3.2
Date: 2023-01-07
  Bugfixes:
    - Fixed that groups created with the auto-generation feature would never sync schedules
Version: 1.3.1
Date: 2022-12-31
  Bugfixes:
    - Fixed a crash when a train is modified while changing its train group
Version: 1.3.0
Date: 2022-12-09
  Features:
    - Added a button to the overview GUI to automatically create groups based on matching train schedules
  Bugfixes:
    - Fixed the heights of the choose group and overview GUIs not being capped
    - [Space Exploration] Fixed an occasional crash when a train goes through a space elevator
Version: 1.2.0
Date: 2022-12-09
  Features:
    - Added a groups widget to the train overview GUI
      - Click a group to edit its schedule
      - Rename or delete a group with the provided buttons
    - Added search functionality to the change group GUI
  Changes:
    - The change group GUI is now a popup, instead of everything living at the top of the train GUI
    - Trains en route to a station when assigned to a group will select the first station of the same name in that group if it exists
  Bugfixes:
    - Fixed that group schedules would not respect train station renaming
    - Fixed that groups were not preserved when trains were cloned
Version: 1.1.7
Date: 2022-09-04
  Bugfixes:
    - Fixed a crash when playing with Space Exploration 0.5 or earlier (https://todo.sr.ht/~raiguard/factorio-mods/72)
Version: 1.1.6
Date: 2022-08-11
  Compatibility:
    - [Space Exploration] Trains going through a space elevator will no longer have their schedule repeatedly synced with the group
  Bugfixes:
    - Fixed that trains would lose their group when migrated if they had stations using train control signals or train schedule signals in their schedule (https://todo.sr.ht/~raiguard/factorio-mods/62)
Version: 1.1.5
Date: 2022-07-10
  Compatibility:
    - [Space Exploration] Added support for the space elevator (https://todo.sr.ht/~raiguard/factorio-mods/47)
  Bugfixes:
    - Fixed that groups emptied during migration were not being removed (https://todo.sr.ht/~raiguard/factorio-mods/40)
    - Fixed a crash when the new train has no schedule during train migration (https://todo.sr.ht/~raiguard/factorio-mods/46)
Version: 1.1.4
Date: 2022-06-26
  Bugfixes:
    - Fixed a crash when changing groups if the old group no longer exists
    - Fixed various inconsistencies when migrating from before 1.1.2 (https://todo.sr.ht/~raiguard/factorio-mods/37)
Version: 1.1.3
Date: 2022-06-22
  Bugfixes:
    - Fixed that train scheduled weren't being synced due to changes in 1.1.2
Version: 1.1.2
Date: 2022-06-22
  Bugfixes:
    - Fixed that invalid trains were not being removed from groups (https://todo.sr.ht/~raiguard/factorio-mods/35)
Version: 1.1.1
Date: 2022-06-12
  Bugfixes:
    - Fixed that rich text would be selected after insertion (https://todo.sr.ht/~raiguard/factorio-mods/26)
    - Fixed that trains built from blueprints would be added to the group multiple times (https://todo.sr.ht/~raiguard/factorio-mods/25)
Version: 1.1.0
Date: 2022-05-31
  Features:
    - Added an icon selector when making or renaming a group
    - Added a rename group button
    - Added the number of trains in each group to the group selector
Version: 1.0.4
Date: 2022-04-28
  Changes:
    - Cargo wagons will preserve their train group when decoupled from all locomotives
  Bugfixes:
    - Fixed several more edge cases with 1-1 trains related to Multiple Unit Train Control (#6)
Version: 1.0.3
Date: 2022-04-23
  Bugfixes:
    - Fixed groups not being saved to blueprints consistently (#4)
    - Fixed that decoupling a 1-1 train would remove the locomotive's train group in some cases (#5)
Version: 1.0.2
Date: 2022-04-16
  Changes:
    - Disabled debug mode, which I accidentally left enabled
Version: 1.0.1
Date: 2022-04-14
  Bugfixes:
    - Fixed a crash when creating an empty blueprint (#1)
    - Fixed a crash when removing the last station in a schedule while a train was heading towards it (#2)
Version: 1.0.0
Date: 2022-04-10
  Features:
    - Initial release