Transport Fever 2

Transport Fever 2

h4e API
 This topic has been pinned, so it's probably important
homieforever  [developer] 2 Sep, 2024 @ 5:09pm
Roadmap for h4e API
Here I explain all the planned features for each version. This gives you an insight into what is planned and what will be possible in the future with the h4e API. So let's get started:

1.23 (done)

new setting allVehiclesAllCargo which tries to add all cargo types to a vehicle. Vehicles with people are ignored. Mod cargo types are also determined and processed by h4e.api.getRepo(“cargoType”). Models that do not support all cargo types have animated loads and therefore cannot display all cargo types, which is why not all of them are available. Vehicles that can load several goods separately are also processed, all separate areas are adjusted. Options are: Off, onAllVehicles.

1.24 (Big Update [WIP])

Large patch that makes various fundamental changes. In version 1.24 the allVehiclesAllCargo function is out of order due to a current problem. However, development continues. The system for saving the repos has been fundamentally changed, each save is assigned a unique ID by the API, this is also automatically saved in the save and retrieved from there. The assigned ID indicates which saved repo is used. In the new version, the repo is automatically updated regularly at the latest every time the game is loaded. Repos that have not been used for a long time are not deleted. A solution to this is still being worked on. The API has been split from the rest of the mod so that the global API is not excessive or unnecessarily large.

1.25

- New selection options for allVehiclesAllCargo (onAllStreetVehicles, onAllRailVehicles, onAllPlanes, onAllShips, onRailPlanesAndShips).
- new settings: VehicleCargoCapacityFactor, VehiclePersonCapacityFactor

1.26



1.27

- new Mod Release: h4e Emission Balancing
- new api functions for Emission Balancing
Last edited by homieforever; 28 Sep, 2024 @ 7:24pm