Teenage Mutant Ninja Turtles: Shredder's Revenge

Teenage Mutant Ninja Turtles: Shredder's Revenge

View Stats:
placefaraway Jun 21, 2022 @ 2:19pm
Crash on System.IO.FileNotFoundException
My Steam library is on D: drive, and the location is D:\SteamLibrary\steamapps\common\TMNT

Although the game can be successfully played and saved, it will crash every time i try to change any setup config in the game.

The exception is System.IO.FileNotFoundException, the complaint is that it cannot find the folder of "D:\{my windows user name}\Documents\Tribute Games\TMNT". - Please note it is also D: drive here, instead of C: drive if the system environment variable of %userprofile% were referenced.

I have tried to get the target folder created (by copying everything from my Steam library folder), but the same exception still occurs, complaining it cannot find the target .config file.

So I think there is a path reference issue, at least in my case. Not sure if this can be fixed by assigning a correct path value when launching the .exe. Or, I noticed the game was written in .NET (likely C#), maybe a run time config variable can be defined in an app.config file.
< >
Showing 1-4 of 4 comments
placefaraway Jun 21, 2022 @ 11:17pm 
I was able to fix it myself in a very hacky way and the bonus of that is, hey, it saves and remembers my option choice next time the game loads.

The problem is basically, the game program needs to create and read a "Settings.cfg" file to save the options - which is separately managed and has a different path than the saved game or debug log files. In my case, I got to find this path thanks to the error message associated with the crash.

Try this: (disclaimer: I am not their developer, try this at your own risk)
create this file Settings.cfg at this place:

X:\{your windows user name}\Documents\Tribute Games/TMNT/Settings.cfg/

X is the drive where your Steam library is.
create an empty notepad file and rename it to Settings.cfg
Make sure you grant the save privilege to this newly created folder as the Steam library folder has - i don't know which one works exactly, also you may not be able to copy and grant everything. But one of them worked for me.

Why is this path exactly is a myth to me. It doesn't make much sense to me. I have to Steam libraries, one in C: drive, the other in D: drive. My TMNT is installed in C drive's library, but the path has it in D: drive. And it doesn't seem to be referring the %USERPROFILE% environment variable, because that too, would point to C: drive.

But I got it to work, and my options can be saved and remembered - which is a bonus.
placefaraway Jun 22, 2022 @ 12:25am 
Alright, i figured. The path to this config file is actually "Env USER_MYDOCS" - which is the current user's default document folder.

%Env USER_MYDOCS%/Tribute Games/TMNT/Settings.cfg

In my case, it points to my D: drive
Tribute JF  [developer] Jun 22, 2022 @ 2:16pm 
We'll look to improve this.
is your documents folder really on your D drive?
placefaraway Jun 24, 2022 @ 2:28am 
Originally posted by Tribute JF:
We'll look to improve this.
is your documents folder really on your D drive?
That is correct. - However I've got it to work completely myself. The issue is with the Settings.cfg file, its path and the privilege of creating it - I am sure it's also connected with some other folks' issue that they cannot save the options settings.
< >
Showing 1-4 of 4 comments
Per page: 1530 50