I agree this would be a valuable tool, especially to ensure people are doing performance testing with a “clean slate.” I would prefer a held-key during boot process such as holding Left-ALT or Left-CTRL during sim startup, but anything similar would be easier than the only way we have to do it currently.
Indeed. I don’t care what the mechanism is. I don’t mind having an extra shortcut with a command line switch, but I’m also cool with having to hold down a key while starting the sim as an option. Like you said, anything is be better than the current method.
How is it recorded that the sim was not shut down correctly? I assume it’s something like windows, where a flag is not cleared for an improper shutdown. Perhaps that is something we could manually alter if we wanted to instigate Safe Mode? Possibly something in your MSFS user profile.
If so it might be worth running a tool which will watch that folder structure to see what happens when the sim is shut down gracefully, and when you crash out.
Ah, so if we were to manually create that file, say as part of a “Safe Mode” script, we could force the sim to launch in safe mode. If the sim removes that file automatically for a clean shut down from Safe Mode, we wouldn’t need to script its removal either.
Checking another post, this file should be in the “LocalState” folder. So in theory this should work.
But MSFS would still NOT show the Save Mode option. Probably because the file running.lock was not valid (because it had been artificially created).
So I had to find where MSFS was putting the proper running.lock file and move it to the above location.
It turned out MSFS was putting running.lock here:
C:\Users(yourname)\AppData\Roaming\Microsoft Flight Simulator
So, I just move the running.lock file from there to the proper location way up above and now MSFS gives me the Safe Mode option.
In the SU 12 beta, perhaps there no longer is a way to force safe mode. I’m using the beta and if I kill a running MSFS in Task Manager or if I kill MSFS with Alt F4 , then a file called running.lock is NOT created anywhere. And rebooting MSFS will not show the Safe option.
Before SU 12 beta, the method above would force MSFS into the Safe option the next time you booted MSFS. But no longer does this work.
I did a file search and no file named running.lock is located anywhere on my computer after killing MSFS in task manager or with Alt F4.
Additionally (or instead) to the command line I would like to have an option once in the sim, for example under the General Options\Misc menu (as a suggestion) that allows restarting the sim in Safe Mode avoiding to have to kill the MSFS.exe application. When making some tests to define if a mod can be the cause of an issue we ask users to empty their community folder. This is good for the mods that have been manually moved there. But in the case of the purchase through the Market Place for example, they are automatically downloaded in the “OneStore” folder (I have the ms-store version). So the only way to disable them is to restart in Safe Mode.