Transport Fever 2
Оценок: 156
h4e Packages API Build 2402202001
   
Наградить
В избранное
В избранном
Удалить
Misc: Script Mod
Размер файла
Добавлен
Изменён
341.759 KB
28 дек. 2019 г. в 19:16
24 фев. 2020 г. в 12:33
Обновлений: 9 (просмотреть)

Подпишитесь, чтобы загрузить
h4e Packages API Build 2402202001

Описание
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]
Популярные обсуждения Просмотреть все (2)
0
9 мая. 2020 г. в 9:58
ЗАКРЕПЛЕНО: The coming end of this mod
homieforever
0
22 мар. 2020 г. в 17:04
ЗАКРЕПЛЕНО: h4e ToDo -List
homieforever
Комментариев: 29
homieforever  [создатель] 2 сен. 2024 г. в 16:43 
homieforever  [создатель] 1 апр. 2021 г. в 6:04 
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://gtm.steamproxy.vip/sharedfiles/filedetails/discussions/2076312529
homieforever  [создатель] 1 апр. 2021 г. в 6:02 
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 1 апр. 2021 г. в 5:54 
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  [создатель] 1 апр. 2021 г. в 5:28 
@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  [создатель] 18 янв. 2020 г. в 14:27 
dann viel Spaß dabei.
homieforever  [создатель] 18 янв. 2020 г. в 3:42 
So i have no Problems when i test with this mods:

https://gtm.steamproxy.vip/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  [создатель] 18 янв. 2020 г. в 3:29 
@KingyBear: The Packages API is added as first?
KingyBear 15 янв. 2020 г. в 20:09 
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  [создатель] 15 янв. 2020 г. в 7:52 
@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.