Adjust Train Pathfinding

by xiuna

Adds the ability to adjust train pathfinding variables, thus making trains prefer different routes.

Utilities
a month ago
2.0
50
Trains

Changelog

Version: 0.1.0
Date: 21:39. 03. 09. 2026
  Minor Features:
    - Original Implimentation of mod, changing train_stop_penalty from 2,000 to 1,000,000,000.
Version: 0.1.1
Date: 22:46. 03. 09. 2026
  Optimizations:
    - File structure changes.
Version: 0.1.2
Date: 22:54. 03. 09. 2026
  Minor Features:
    - Addition of menu to let the user select a custom value for the train_stop_penalty value.
  Info:
    - Updated mod description.
Version: 0.1.3
Date: 23:02. 03. 09. 2026
  Translation:
    - Added english config.
Version: 0.1.4
Date: 23:17. 03. 09. 2026
  Info:
    - Changed mod name from Train Pathfinding Fix.
    - Updated mod description again.
Version: 0.2.0
Date: 23:54. 03. 09. 2026
  Minor Features:
    - Addition of four additional train pathfinding settings to the mod menu.
Version: 0.2.1
Date: 00:11. 04. 09. 2026
  Bugfixes:
    - Fixed mod failing to load on startup if any inputs were set above 100,000.
Version: 0.2.2
Date: 00:55. 04. 09. 2026
  Info:
    - Added thumbnail.
Version: 0.2.3
Date: 02:09. 04. 09. 2026
  Info:
    - Temporarily removed Ticking Idle Penalty setting. Because it is 0.1 by default it was getting rounded down to 0, causing considerable train back-ups when left on what was supposed to be the "default" setting. Manually changing it to any number 1 or higher was working fine.
Version: 0.2.4
Date: 02:28. 04. 09. 2026
  Bugfixes:
    - Fixed a few syntax issues preventing launch after 0.2.3.
Version: 0.2.5
Date: 03:21. 04. 09. 2026
  Bugfixes:
    - Fixed rounding bug from 0.2.3, reimplemented the Ticking Idle Penalty setting. Input for the setting is now visually 10x the actual number, for example if you put in 5 you're setting it to 0.5, but works completely. 
  Info:
    - Changed the description for Ticking Idle Penalty setting to include the 10x number.
Version: 0.3.0
Date: 12:01. 04. 09. 2026
  Minor Features:
    - Addition of four more additional train pathfinding settings to the mod menu.
  Bugfixes:
    - Fixed typo preventing No Valid Path setting from working.
  Info:
    - Re-ordered settings to put like settings adjacent to each other for easier visual understanding.
Version: 0.3.1
Date: 12:12. 04. 09. 2026
  Info:
    - Made all settings use the same verbage. 
    - Added missing default and max values for Train in Station penalty.
    - Fixed capitalisation mistakes.
    - Normalised naming of specific settings in changelog.
Version: 0.3.2
Date: 15:23. 04. 09. 2026
  Info:
    - Cleaned up and simplified the mod description.
Version: 0.3.3
Date: 15:27. 04. 09. 2026
  Info:
    - Typo in new desciption fixed.
Version: 0.3.4
Date: 16:44. 05. 09. 2026
  Bugfixes:
    - Ticking Idle Penalty variable now allows for decimal input, what you input is now the exact penalty value with no more /10 workaround.
  Info:
    - Updated descriptions to match above change.
Version: 0.3.5
Date: 17:24. 05. 09. 2026
  Info:
    - Added compatability with Adjust Train Speed mod.
    - Made code more readable and uniform.
    - Removed default / max values from displaying when editing settings, as if you try and set it to a value outside of the range allowed Factorio itself will tell you in a popup.
Version: 0.3.6
Date: 18:05. 05. 09. 2026
  Info:
    - Preformance increase, removed redudnant lines.