Transport Fever 2

Transport Fever 2

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

--1.4 Introduce new values in the multiplier selector ("1/8"), ("1/4"), ("1/2").
The 'modifyCargoEntries' function, now ensuring that the capacity never drops below "1".
Minor code improvements

更新于:2024 年 1 月 1 日 上午 7:12
作者:AksLrs

--1.3 Major crach error addressed: the script attempted to get length of field 'seats' (a nil value).
This update includes a check for both seatProvider and seatProvider.seats. If either is nil, the function will not try to access the length of seats, thus avoiding the error.
Also, adds checks to ensure that compartments is not 'nil' before iterating over them with ipairs.

更新于:2024 年 1 月 1 日 上午 4:02
作者:AksLrs

--1.2. The 'isMultipleUnit' function now considers additional criteria (presence of engines and seats) to identify multiple units
More performance improvments:
--Efficient Processing of Compartments: The loop processing compartments now breaks early if the correct multiplier is found, avoiding unnecessary iterations.
--Separate Function for Multiple Unit Check: The check for a multiple unit (isMultipleUnit) is now a separate function, reducing clutter
--Add Helper functions and cashing outside the main function for faster access.

更新于:2023 年 12 月 31 日 上午 6:56
作者:AksLrs

--1.1. Several performance improvments with additional multipliers for Cargo Wagons

更新于:2023 年 12 月 30 日 上午 5:14
作者:AksLrs