Train Auto Switch Fix


Prevents trains from switching to automatic mode when a locomotive or wagon is added using ghosts. - Can be toggled on or off using the shortcut button or hotkey. - Can also optionally stop trains built from blueprints. - Automatically enables itself when a locomotive or wagon is destroyed (can be turned off in mod settings).

Tweaks
4 days ago
2.1
35
Trains

Changelog

Version: 0.9.4
Date: 24. 09. 2026
  Features:
    - Added an alert for prevented train switches (can be turned off in mod settings).
    - Added an optional alert sound for prevented train switches (off by default - can be turned on in mod settings).
    - Added an optional text message for prevented train switches (off by default - can be turned on in mod settings).
    - Made train detection work for blueprints containing entities other than trains.
  Performance:
    - Improved ghost detection speed.
  Changes:
    - Changed the undo/redo setting wording.
  Bugfixes:
    - Fixed blueprints contained in blueprint books not being detected.
    - Fixed trains not being detected when on a curved rail.
    - Improved detection for trains created using the undo/redo function.
    - Overall, made switch detection more robust.
    - Fixed an issue where blueprint trains would not stop when the stop blueprint setting was enabled.
    - Fixed trains switching back to manual mode when using the toggle entity hotkey.
  Compatibility:
    - Made the mod compatible with trains added by other mods.
Version: 0.9.3
Date: 14. 08. 2026
  Features:
    - Train blueprints containing fuel are now handled properly.
    - Added an option to stop trains built from blueprints.
    - Improved compatibility with mods that interact with trains, such as Space Exploration.
  Minor Features:
    - Added an option to only allow admins to toggle the fix.
    - Added an option to detect train ghosts created using the undo/redo function.
  Bugfixes:
    - Fixed an issue where upgrading train quality would set the train to manual mode.
    - Improved multiplayer compatibility.
  Debug:
    - Added multiple optional debug outputs.
    - Removed the "Show debug info" option from the mod settings.
Version: 0.9.0
Date: 16. 07. 2026
  Major Features:
    - Initial release