Amateur-hour PowerShell script that looks for the directory of the Epic Games overlay file, renames the file, launches Payday 2, and then undoes the change upon user input. Intended to fix the Steam-specific bug where PAYDAY 2 will refuse to launch if the Epic Games Launcher is on the machine and -steamMM is not included in the launch options.
Because I want to matchmake with other people and not box myself into a far more shallow userbase, I came up with a marginally more elegant solution.
From my own look at the crash dumps, the Steam version of PAYDAY 2 seems to look for the Epic Games overlay file and performs an access violation on startup in trying to initialize it. This script tries its best to make sure PAYDAY 2 never finds it.
Now I don't have to hose my machine and kick the Save the World habit just to play a different dead looter shooter.
Use this script instead of launching Payday 2 directly through Steam. Run the script through a shortcut if you have the know-how.
Uses and alters EGS default directory in Program Files(x86). If, for any reason, you have an EGS Launcher in another directory, open the script up and rename the paths to match the corresponding "Overlay" directory. Run in powershell.exe only.
DO NOT RUN IF THE EPIC GAMES LAUNCHER IS RUNNING! MAKE SURE IT IS NOT MINIMIZED TO TRAY! The Epic Games Launcher relies on files in the Overlay directory and could become unstable if the directory or files are renamed while the launcher is running.
Any Powershell wizards, please let me know if there's any specific improvement I could make here. I am a complete idiot and fully expect to need to write saner code.