Transport Fever 2

Transport Fever 2

140 ratings
h4e Packages API Build 2402202001
   
Award
Favorite
Favorited
Unfavorite
Misc: Script Mod
File Size
Posted
Updated
341.759 KB
Dec 28, 2019 @ 7:16pm
Feb 24, 2020 @ 12:33pm
9 Change Notes ( view )

Subscribe to download
h4e Packages API Build 2402202001

In 1 collection by homieforever
h4e Mods - (h4e Packages API needed)
35 items
Description
The h4e Packages API is the basis of my mods. This mod provides my mods with various functions and information.

- Central provision of the variable game.h4e_api, with just one include in the API, all code is therefore usable for all other mods that follow.


Debug functions:

- Debug functions like var_dump, error or message debug information in the stdout.txt.
- Central control of the debug status via game.h4e_api.debug.state.
- The debug status can also be activated with the Mod h4e Packages API Debug Mode Mod, here too the debug mode must be activated according to the Packages API in the loading order.

General functions:

- delete, delete a table param.
- replace, replaces any text with a specified text.
- strlen, counts the length of a variable and returns the result.
- is_nil, checks whether a variable is nil.
- search, searches for a defined text e.g. "a" in a defined variable e.g. "abc", the function is found true is reported.
- table_length, counts the length of a table and returns the result.
split, divides a variable at a certain point, e.g. at a ".". Then returns the result in an array.

The functions were named for the purest of intentions because otherwise I work in the PHP area and the functions are more likely to be found under such a name.

It is allowed to create your own mods and to use the functions of the packages API. For further processing of other mods, I first ask for a message, without approval no publication or disclosure.

The mod must be in the loading order before all other mods that I have developed.

Powerd by Cubyte.net | IT Solutions & Consulting[cubyte.net]
Popular Discussions View All (2)
0
May 9, 2020 @ 9:58am
PINNED: The coming end of this mod
homieforever
0
Mar 22, 2020 @ 5:04pm
PINNED: h4e ToDo -List
homieforever
28 Comments
homieforever  [author] Apr 1, 2021 @ 6:04am 
Info by the way:

If you like take a look at my latest mod and what is already a year and longer in development:

https://steamcommunity.com/sharedfiles/filedetails/discussions/2076312529
homieforever  [author] Apr 1, 2021 @ 6:02am 
Answer:

No, it's mainly just a mod that is needed for most of my other mods. This mod must be activated by you and placed before all other mods of mine within the loading order. At the same time you can see from the build that the version is already some time old. There will also be no more updates for this mod here because it is no longer needed in the Future if at all. In short, this mod holds some functions for my mods ready, if they still need the packages API.
MarKo Apr 1, 2021 @ 5:54am 
I wanted to know if with this API mod, or with others, it is possible to replace the binary present by default in the game with another downloaded from the workshop.
Thanks for the answer!
homieforever  [author] Apr 1, 2021 @ 5:28am 
@MarKo: The translation doesn't quite make sense to me.
Could you describe more precisely what you mean? Should you use a translator try deepl.com , in any case better than Google!

Otherwise you can add me as a friend and we talk in the chat.
homieforever  [author] Jan 18, 2020 @ 2:27pm 
dann viel Spaß dabei.
homieforever  [author] Jan 18, 2020 @ 3:42am 
So i have no Problems when i test with this mods:

https://steamcommunity.com/sharedfiles/filedetails/?id=1951003886

Maybe try it without the Train Tractive mod?


I could only imagine that there could be a bug in connection with Train Tractive Power. However, this would then be due to the game itself, since problems do not have to occur on every computer.
homieforever  [author] Jan 18, 2020 @ 3:29am 
@KingyBear: The Packages API is added as first?
KingyBear Jan 15, 2020 @ 8:09pm 
These are the mods I have and its still laggy https://imgur.com/qIiYazS & https://imgur.com/n9OWvNG

Even when I have just these mods its still slow but not has much? https://imgur.com/CgnMURk
homieforever  [author] Jan 15, 2020 @ 7:52am 
@KingyBear: I Dont have do a update at 14/01/2020 for this Mod.
Can you please give more Informations? Wich Mods you use? I have hear from other users something about a problem like urs. But i cant rebuild the Problem, it looks like some TPF Bugs because any PC have other Problems.
KingyBear Jan 15, 2020 @ 7:49am 
After the 14/01/2020 update my game has become very laggy. The camera movement is fine but all my trains are running at 1fps ?