Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://transportfever2.com/wiki/api-testing/modules/api.util.html
That you can call the functions described from anywhere.
You could use api.util.getBuildVersion() to determine what version was running and then call the appropriate block of code.
It also strikes me that one or the other of the variables involved should be nil, so you might be able to check that.
I've run into one other mod so far that has similar crash, which I had to roll back to a 35049-era mod version: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1924672173. Dunno if it's same event tho, in that case it crashed when I tried to enable ambient occlusion in the graphic settings.
Cheers
(I'm not able to test it in build 35243 right at the moment because it's failing to load anything right now, even tho it was working fine last night 🤷♂️ Whole other problem...)
Thanks so much, cheers! 😊
So yup I have the new mod version running ok in build 35243 now too. Thanks again!! 😊