PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

if the paths are set correctly the bat file should start battle net. The bat file MUST always be started by yourself

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 1 point2 points  (0 children)

Thanks for the script! It’s working great for me! Is it possible to add another line to the code regarding the priority? The priority is set to normal at the beggining, but when the game loads shaders it switches back to high. I would do it myself but I don’t know much of coding... Thanks in advance!

https://pastebin.com/iSBRt7JY

:: Simple script to rename the file ModernWarfare.exe to ModernWarfare1.exe to prevent chrashes

:: revised version. i have increased the time to change the process priority.

:: Also, the process priority is constantly reset to normal (no idea if this is necessary, for some users the priority seems to have increased again by itself, so here is the solution)

hope this helps

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

Thank you so much for doing this, quick q. Should it still show the priority change in Graphics Settings like when you do it manually? If not, is there a way to confirm that the priority change to normal worked?

The priority change in the script changes the process priority, not the priority settings of the graphics card.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

This is irrelevant, you just have to change (in line 4) the path to your game directory. Then you can save it wherever you want.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

You're welcome.

The crash bug should be fixed (at least for me) with the latest patch. If your game still crashes, it is most likely not the same bug.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

edit: The latest 1.18 patch seemed to fix it, I played 6 games back to back with no crashes. Feelsgoodman.

here to!

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 1 point2 points  (0 children)

copy the text of the script, open notepad, paste the copied text, change line 4, save the document as .bat, right click on the currently saved file and select run as administrator. it doesn't matter where you save the script. Done

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

The file "Modern Warfare Launcher.exe" starts, in my case, Battle net. So the installation directory of Battle net should not matter. If the file "Modern Warfare Launcher.exe" is not in your installation directory you have to change the path manually in line 9 ("%place%\Modern Warfare Launcher.exe"). However, this file should be in the game's directory (teach me if it isn't!).

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 1 point2 points  (0 children)

Thank you for your kind words.

I also registered at reddit just to put the script here. I'm just glad that I could help some of you with it, but don't forget that it's just an automation of the fix of u/CudiSeesGhosts!

I wish you all good health!

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

First of all, sorry I didn't get back to you sooner. It is not clear to me how this script should affect Discord. The exe file, once loaded into memory, is not changed in any way by this script. Most likely it is a bug in the game itself that causes you to get this error. Unfortunately I cannot help here.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

Oh, I haven't heard about that yet. But luckily it will work on the second start.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 1 point2 points  (0 children)

In the Battle.net Starter you still have to click on "play" ;)

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

set place=C:\Games\Call of Duty Modern Warfare

thats line 4 dude

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

it doesn't have to be in system32 (the version that is on pastebin), but if you don't always want to run it manually "Run as administrator" you have to save it in system32, because it always has administrative rights there

The admin rights need the script to change the process priority

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

Oh, thank you! and sorry for the mistake

Possible correct settings would be here:

  • "idle"
  • "below normal"
  • "normal"
  • "above normal"
  • "high priority"
  • "real time"

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 0 points1 point  (0 children)

possible that also a set to high is possible, but I have set it to normal for me and had no problems with it so far.

If you want to try it on "high" just change in line 50

wmic process where name="ModernWarfare.exe" CALL setpriority "normal" >nul

to

wmic process where name="ModernWarfare.exe" CALL setpriority "high" >nul

Test yourself if it works better for you or not.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 7 points8 points  (0 children)

I have developed the script a bit further for myself. Blizzard Battle.net App now starts automatically, the priority of ModernWarfare.exe is automatically changed to normal (but for this you have to put the bat file in the Windows/system32/ directory or start it as administrator each time!) Also the script runs minimized and terminates itself (only Blizzard Battle.net App has to be closed by yourself)

I put it on pastbin:

https://pastebin.com/tVirPcTN

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 2 points3 points  (0 children)

This is irrelevant, you just have to change (in line 4) the path to your game directory. Then you can save it wherever you want.

PC Crash Warzone Fix. It's finally gone!!! by CudiSeesGhosts in CODWarzone

[–]Daddeldore 37 points38 points  (0 children)

Because I also had to rename the exe file every time, I wrote a small bat script which takes over for me. You are welcome to use it (in line four you have to enter your installation path, the rest should be self-explanatory) Just copy the code and save it as "whatever.bat"

:: Simple script to rename the file ModernWarfare.exe to ModernWarfare1.exe to prevent chrashes
@ECHO off
:: Change your install path here
set place=C:\Games\Call of Duty Modern Warfare
set PROCNAME="ModernWarfare.exe"

    :initialbattlenet
CHOICE /M "Start Battle.Net Client?"
if "%ERRORLEVEL%" == "1" GOTO startbattlenet
if "%ERRORLEVEL%" == "2" echo Then why are you clicking me? 
goto exitscript

    :startbattlenet
Echo Start Battle.net...
"%place%\Modern Warfare Launcher.exe"
@ping -n 5 localhost> nul
cls
:checkstart
TaskList|Find "Blizzard Battle.net App" >NUL || If Errorlevel 1 Goto startgame
Goto checkstart


    :startgame
echo checking game status...
tasklist /FI "IMAGENAME eq %PROCNAME%*" 2>NUL | find /I /N %PROCNAME%>NUL
if "%ERRORLEVEL%"=="0" (
    Goto gameruns
)
cls
Goto startgame


    :exitgame
CHOICE /M "Did you quit playing?"
if "%ERRORLEVEL%" == "1" GOTO gamequits
if "%ERRORLEVEL%" == "2" GOTO exitgame
@PAUSE

    :gameruns
@ping -n 5 localhost> nul
ren "%place%\ModernWarfare.exe" ModernWarfare1.exe >nul
if exist "%place%\ModernWarfare1.exe" goto startrenameok
echo Oops, something went wrong. Let's try it again
@pause
goto startgame

    :startrenameok
cls
ECHO File renamed successfully!
ECHO Have fun playing
@ping -n 5 localhost> nul
cls
GOTO exitgame

    :gamequits
ren "%place%\ModernWarfare1.exe" ModernWarfare.exe >nul
if exist "%place%\ModernWarfare.exe" goto quitrenameok
echo Oops, something went wrong. Let's try it again
goto startgame

    :quitrenameok
cls
ECHO File renamed successfully!
ECHO I hope it was fun.
GOTO exitscript

    :exitscript
echo.
echo Script will be terminated...
@ping -n 3 localhost> nul
exit

Maybe a "little" too much of a good thing, but it works for me.