View Single Post
Staro 13.04.2020., 20:06   #138
Anexis
Registered User
 
Anexis's Avatar
 
Datum registracije: Aug 2014
Lokacija: Zaprešić
Postovi: 18



@ECHO off

set place=E:\Battle.net Games\Call of Duty Modern Warfare
set PROCNAME="ModernWarfare.exe"

: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
echo checking game status...
tasklist /FI "IMAGENAME eq %PROCNAME%*" 2>NUL | find /I /N %PROCNAME%>NUL
if "%ERRORLEVEL%"=="0" (
cls
Goto exitgame
)
cls
Goto gamequits

: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!
@ping -n 2 localhost> nul
ECHO Changing priority...
wmic process where name="ModernWarfare.exe" CALL setpriority "normal" >nul
ECHO Priority changed to normal
@ping -n 3 localhost> nul
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


-->
Bok ekipa, imam riješenje koje meni pomaže protiv crashanja igre bez ikakvog upozorenja. Postoji skripta koja mijenja ime exe fajla i to izgleda pomaže.

UPUTE:
1. Otvoriti novi file u notepadu
2. Pejstati kôd sa dna posta (spoiler)
3. U drugoj liniji kôda promijeniti destination, ovisno gdje ste instalirali igru. Kod mene je set place=E:\Battle.net Games\Call of Duty Modern Warfare
4. Spremiti skriptu kao .bat file (kod sejvanja u izborniku staviti Save as type: All files

UPUTE ZA KORIŠTENJE:
1. Pokrenuti skriptu (kao administrator)
2. Pokrenuti igru
3. Igrati bez crashanja

Protip: Kad izađete iz igre, prije ponovnog pokretanja poželjno restartati battlenet, pa opet pokrenuti skriptu, pa tek onda pokrenuti igru.

Otkad ovo koristim, nikad mi se nije crashalo pa nadam se da pomaže. GL





@ECHO off

set place=E:\Battle.net Games\Call of Duty Modern Warfare
set PROCNAME="ModernWarfare.exe"

: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
echo checking game status...
tasklist /FI "IMAGENAME eq %PROCNAME%*" 2>NUL | find /I /N %PROCNAME%>NUL
if "%ERRORLEVEL%"=="0" (
cls
Goto exitgame
)
cls
Goto gamequits

: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!
@ping -n 2 localhost> nul
ECHO Changing priority...
wmic process where name="ModernWarfare.exe" CALL setpriority "normal" >nul
ECHO Priority changed to normal
@ping -n 3 localhost> nul
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


Anexis je offline   Reply With Quote