Icon Fix for Station Tracks

If you liked this item, please rate it up on Steam Workshop page.

Author: RadiKyle

Last revision: 5 Aug, 2024 at 04:15 UTC

File size: 372.11 KB

On Steam Workshop

Description:
Icon Fix for Station Tracks

Fixes blank purple box icons!! 🥳

Many station track modules have blank purple icons, for various reasons. Some mods have dozens each! You know the pain…

The first solution is always for the original modders to fix their mod’s icons. ***(See info below)

But some track mods are sadly no longer updated by their authors. So I made this mod mainly to "fix" those.

This mod "fixes" this issue in 1 of 2 ways:

  • hides a mod’s tracks from the station menu,
    OR
  • replaces the blank icons with the mod’s default track icons. (Note: the icon is the same for the catenary version.)

Mod tracks removed from station menu

(Singled out because they add large number of tracks, yet seem to have no use inside a station.)

Mod tracks with "fixed" icons

This mod attempts to fix to *every* station track module (even if the mod’s icons were already okay). It’s brute force, but it seems to satisfy the most people. (Note: the icon is the same for the catenary version.)

To help with long track lists, the station menu now has separate category tabs for catenary and regular tracks. (Note: there are some special cases out there… If a catenary track isn’t on the Catenary tab, it will be on the Tracks tab.)

Compatibility
  • This mod is just a "band-aid" fix! It should work for most track mods, but it can’t fix everything.
  • Always ask the original modder to fix their icons (they may not know there’s a problem).
  • Known mods that it doesn’t "fix":
  • North American Style Tracks

Updates
  • v1.3 Modules from mod "Art Deco Retaining Walls" are now hidden from the station menu.
  • v1.2 Now tries to "fix" *all* station track modules. Added station menu categories for catenary and regular tracks.
  • v1.1 Originally had a curated list of track mods, but it quickly grew unmanageable because so many have this problem.

Enjoy! Cheers!

***Info for Modders

UG updated how station track modules are managed in various game updates. Currently the game’s base_mod.lua script dynamically creates a track module for each mod track that it finds when loaded, regardless of whether the mod already has .module files for their tracks. It adds "trainstation_" to the front of the track file name, and "catenary" to the end of the file name (for example "trainstation_amazingtrackmod.lua" and "trainstation_amazingtrackmod.luacatenary").

It also assigns the icon to be the original track name with "_module" or "_module_catenary" appended to the end (for example "[email protected]"), again whether or not those icon files exist.

The results, and fixes:

  • Tracks that already have .module files now exist twice.
    Modders must "undo" this either with postRunFn script commands to hide the duplicate "trainstation_" versions (setting availability years to -1 works), or by removing the track .module files, whichever option best fits the situation.
  • Tracks have blank purple icons in the station menu.
    Modders must correct this by either hiding the track modules from the station menu (as above), or by creating and adding the needed icons (to res/textures/ui/tracks) with the correct file names (also as above). Remember there are also @2x.tga sizes, and now even @4x.tga sizes supported, so a single track type may need up to 6 new icon .tga files added!

Hope this helps. If you know better ways, please let me know!