Transport Fever 2

Transport Fever 2

Smart Capacity Customizer for Vehicles
正在显示第 1 - 10 项,共 15 项条目
< 1  2 >
更新于:11 月 10 日 下午 8:29
作者:AksLrs

v3.0 Major

• Hybrid MU

•• Added full Hybrid MU Resolver (same system as Smart Top Speed Customizer).
Passenger coaches in MU sets now classify correctly even without engines.

•• Added Full Recursive Passenger Scanner.
Detects PASSENGERS anywhere (nested compartments, arrays, loadConfigs, etc.).

•• Removed all price / running-cost code to avoid conflicts.
Use “Smart Price & Running Cost Customizer” if you want cost tuning.

•• No postRunFn anymore. All logic runs inside runFn with loadModel + loadMultipleUnit modifiers.

更新于:10 月 29 日 下午 7:08
作者:AksLrs

--v2.7 (30/10/2025)
Fixes and Improvements
---Correct Transport Fever 2 carrier enums
---Primary TRAM detection via carrier=2 - no longer falls back to “road”.
---Performance optimization: weak-memo caching for carrier and role classification reduces repeated lookups and GC pressure.
---Tram-train support: correctly handles carrier=RAIL + drivingLicense=TRAM.
---Improved diagnostics: unclassified vehicles now include a best-effort model name in logs.
---Dual-mode (rail/road) vehicles: normalized price and runningCosts (set to -1) for correct internal handling.
---Safer defaults: unclassified vehicles remain 1x (no forced cargo multiplier).

更新于:10 月 29 日 上午 4:33
作者:AksLrs

Major Version 2.6

Release Date: 29 October 2025

Changes & Fixes

Reworked internal logic for vehicle classification.
Significantly improved detection of Multiple Units (MUs), trams, and road vehicles to ensure correct multipliers are always applied.

Fixed: EMU/DMU & MU detection.
Updated the detection logic to properly recognize MUs even if:

the metadata.id is missing, or

the mod does not define seatProvider or drivingLicense.
Works correctly with all modern EMU/DMU mods.

Improved: Carrier detection.
Switched from string-based to numeric carrier checks (carrier == 1 for rail, etc.), making detection 100% consistent with TF2’s internal API.

Improved: Safe classification & fallback.
If a vehicle cannot be positively identified (rare case in modded content), the script now leaves it unchanged (1x multiplier) instead of mistakenly applying a cargo multiplier.

Optimized: Cleaner, faster and more stable codebase.
Reduced redundant checks and improved runtime efficiency during postRunFn execution.

Maintenance cost & price scaling now only affects rail vehicles, as originally intended.

Summary

This update makes the mod much smarter, safer, and fully compatible with all types of custom vehicles, including modded trams, MUs, and unusual hybrid vehicles.

No gameplay resets are needed. Safe to update in existing saves.

更新于:2024 年 8 月 28 日 上午 11:24
作者:AksLrs

-- Major Version 2.5
-- Introduce separate multipliers for Road and Air Vehicles (cargo/passengers)

更新于:2024 年 2 月 1 日 下午 3:07
作者:AksLrs

--2.4 Introduce multipliers for Air and Water vehicles
- Minor code improvements

更新于:2024 年 1 月 28 日 上午 3:58
作者:AksLrs

--2.3 Minor code improvements

更新于:2024 年 1 月 26 日 下午 8:50
作者:AksLrs

--2.2 Introduce more scales on multipliers
- Introduce "Default" value in Price and Running cost divider
- Handle more cases for vehicles capacities
- Minor code improvements

更新于:2024 年 1 月 15 日 下午 3:55
作者:AksLrs

--2.1 Minor code improvements

更新于:2024 年 1 月 15 日 下午 12:50
作者:AksLrs

--2.0 Major version:
- Introduce 3 Sliders (Tram, Bus, Price-Running cost Divider)
- Optimizing the determine Vehicles functions
- Now check for the presence of "drivingLicence" within the seatProvider table to determine Vehicles.
- Major code improvements

更新于:2024 年 1 月 4 日 下午 5:20
作者:AksLrs

--1.5 version:
- Optimizing the determineMultiplier function, implementing early exits from loops and reducing unnecessary checks.
- Now check for the presence of "crew = true" within the seatProvider table
- Minor code improvements