Transport Fever 2

Transport Fever 2

158 ratings
Unlock Multiple Units
   
Award
Favorite
Favorited
Unfavorite
Misc: Script Mod
File Size
Posted
Updated
351.847 KB
13 Dec, 2019 @ 4:40pm
20 Jul, 2024 @ 2:22pm
15 Change Notes ( view )

Subscribe to download
Unlock Multiple Units

Description
A mod to unlock multiple units to allow them to be selected individually when purchasing railroad vehicles.

I have now added options to include group file names for individual unlocked units. There are separate options for stock and mod units.
These options will let you keep the purchase list from getting unduly messy.
This mod will not overwrite group file names found in the model files.

With v1.5 the mod will no longer unlock units it has identified as models used for group file names. It identifies these units by searching for the words "group" "menu" and "vorshau" in the file name.

Modders (and power users): If you want to exclude a unit from being unlocked, even if its name does not include one of the key words noted above, you can do so by adding an entry called 'menu' to the transportVehicle section of the model's metadata and setting this value to "true", true or 1:
data.metadata.transportVehicle.menu = 1

v1.6 - additional error checking to handle situations where mods use non-standard file paths.
v1.7 - Updated mod to use built-in mod params facility, rather than CommonAPI2.
- Fixed global variable references.
- Correctly filtered multiple units created by this mod.
v1.8 - added the option to unlock (or not) the legacy versions of vehicles introduced in March 2023.
v1.9 - fixed a show stopping crash with the US vehicle set. (Assertion 'false' failed.)
v1.10 - description fields are now correctly displayed when the filename is appended.
v1.11 - patched the Deluxe Pack Class 43 HST front unit to be available in 1975, plus other overdue fixes.
v1.12 - a few more fixes.