Transport Fever 2

Transport Fever 2

183 ratings
Icon Fix for Station Tracks
2
2
   
Award
Favorite
Favorited
Unfavorite
Track/Street: Track
File Size
Posted
Updated
372.106 KB
9 Jul, 2024 @ 7:11pm
4 Aug, 2024 @ 9:15pm
5 Change Notes ( view )

Subscribe to download
Icon Fix for Station Tracks

Description
Icon Fix for Station Tracks

Fixes (most) 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 "quick 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 catenary version uses the same icon.)

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 catenary version uses the same icon.)

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 "amazingtrackmod_module_catenary@2x.tga"), 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!
46 Comments
RadiKyle  [author] 1 Feb @ 7:00am 
@COCOLOKO Hi, for other mods, I mostly only help fix conflicts between mods that I encounter while working on my own mods, so that players have fewer errors/crashes when combining mods. Changing platform heights is more like adding new features to those mods, so it's best to ask the original modders to do that work.
Note that increasing platforms heights is not quick work. It requires adjusting the 3D platform models so there is no gap under them like they are floating above the ground. It also requires new Lua code to correctly set the height of waiting passengers/cargo on the platform. Not all station mods do this the same way (unfortunately), some are more complex than others.
COCOLOKO 1 Feb @ 3:49am 
Hello dear, I have noticed that you have helped in some mods in a wonderful way, I wanted to ask you if you know of any way to raise platforms/platforms to 1150mm for example in "German Stations" or "Kings Cross modular station platforms Modern", I thank you in advance your time for reading this
RadiKyle  [author] 2 Oct, 2024 @ 7:31am 
@AngryGoy it says in the description they are on the Catenary tab.
AngryGoy 2 Oct, 2024 @ 4:19am 
Unfortunately, I now have the problem that when I want to expand stations with tracks, I can't get any more with overhead lines except for a single track type, namely Chinese Mod. How can I solve this problem?
RadiKyle  [author] 4 Sep, 2024 @ 4:20pm 
Yeah a screenie would help a ton. And the track mod(s) name so I can test
GySgt~SPARTA~ 4 Sep, 2024 @ 1:22pm 
I might have to ask the other modder who does the trax mods im using
GySgt~SPARTA~ 4 Sep, 2024 @ 1:20pm 
Leme run the game when i get off work i will take a screenshot
GySgt~SPARTA~ 4 Sep, 2024 @ 1:19pm 
Station tracks, high speed tracks and other track mods
RadiKyle  [author] 4 Sep, 2024 @ 8:15am 
@GySgt~SPARTA~ specifically which tracks?
GySgt~SPARTA~ 3 Sep, 2024 @ 8:29pm 
AAH RIGHT the icons are still missing there pictures on some tracks