Transport Fever 2

Transport Fever 2

View Stats:
Pizzaguy Sep 16, 2023 @ 3:39pm
how to find which mod is causing the problem?
I have a save file where it randomly crashes and the error that pops up says "an error has occurred" and nothing else. the crash log is very ambiguous and does not tell you which mod is causing the problem. I know it is a mod, because other save files work. any ideas?
< >
Showing 1-4 of 4 comments
Tsubame ⭐ Sep 16, 2023 @ 4:00pm 
Post the final 10% or so of the stdout file.

That is located in the crash folder in the game's local folder.

Steam\userdata\<your-Steam-user-number>\1066780\local\crash
gent001st Sep 16, 2023 @ 4:09pm 
Kinda of hard work, but you can bisect them - let say you have 4 mods and 1 is problematic. In the first step, disable half of those mods and play the game - if the game still crashes, problem is in the enabled mods, else the problem is in disabled mods... and so on, until you will find the problematic mod... Maybe some mods are not compatible with each other, but you might be able to find them this "freaking" way
Enzojz Sep 17, 2023 @ 9:04am 
Originally posted by Tsubame ⭐:
Post the final 10% or so of the stdout file.

That is located in the crash folder in the game's local folder.

Steam\userdata\<your-Steam-user-number>\1066780\local\crash
Sometimes a mod overwrites the files used by another mod, in this case, you won't be able to figure out the mod who caused the crash since in the stdout you see only the caller.
Enzojz Sep 17, 2023 @ 9:21am 
Unfortunately there's no universal way to found them out. That depends how the error is caused, in this game, any mod is able to overwrite any file, and the output log only shows the call stack which is subject to the caller mod. Sometimes it's not the caller mod who should be blamed, but some other mod in the darkness.

I have an example, since late 2020 I received bug reports that my underground station and other construction mods give only an exclamation mark when people wants to use it, however, I have never such problem in my game. I could say some mod is doing bad thing.
Only after more the one year the cause is found, some player told me a no-cost mod is cause this problem, so I took a look at that mod: the cause is obvious: this no-cost mod is overwriting the a game core script who calls any construction mod, the no-cost mod is released soon after of the game's release and never got updated, the game got an update to this script 7 months after to give support to construction mod ability to read 3rd party track and roads, and my mods uses this feature.

I notified the authors of these no-cost mods, but none of them took even 10 minutes to update or check their script, even one of them announced his mods is perfect. I have no way but to release my own no-cost mod which is done "correctly", so when the next time people reports me the same bug, I told them not to used these out-of-dated mods.
Last edited by Enzojz; Sep 17, 2023 @ 9:28am
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Sep 16, 2023 @ 3:39pm
Posts: 4