Advertisement
Guest User

AoC NoPatcher/NoVideo by Glyph

a guest
Sep 15th, 2014
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. @ECHO on
  2.  
  3. ECHO AoC NoPatcher/NoVideo by Glyph
  4. ECHO "aoc -patch" to start the patcher
  5. ECHO "aoc -restore" to restore the config file
  6. ECHO.
  7. ECHO "aoc -fps" to try and improve your fps using timeBeginPeriod / timeEndPeriod
  8. ECHO "aoc -priority" to launch the game with priority above normal
  9. ECHO "aoc -clearcache" to clear the shader cache before starting the game
  10. ECHO.
  11. ECHO "aoc <user> <pass>" to save you from typing them ingame
  12. ECHO.
  13. ECHO Can be combined. Exmaple: "aoc -fps -clearcache John topsecret"
  14. ECHO.
  15. ECHO -------------------------------------------
  16. ECHO.
  17.  
  18. :params
  19. IF "%1" == "-patch" GOTO patch
  20. IF "%1" == "-restore" GOTO restore
  21. IF "%1" == "-fps" GOTO fps
  22. IF "%1" == "-priority" GOTO priority
  23. IF "%1" == "-clearcache" GOTO clearcache
  24. GOTO backup
  25.  
  26. :fps
  27. SET fps=true
  28. SHIFT
  29. GOTO params
  30.  
  31. :priority
  32. SET priority=true
  33. SHIFT
  34. GOTO params
  35.  
  36. :clearcache
  37. ECHO Deleting cache...
  38. DEL shader.cache.local
  39. SHIFT
  40. GOTO params
  41.  
  42. :backup
  43. IF EXIST LocalConfig.xml.bak GOTO bypass
  44. ECHO Creating backup...
  45. COPY LocalConfig.xml LocalConfig.xml.bak
  46.  
  47. :bypass
  48. ECHO Bypassing patcher...
  49. TYPE LocalConfig.xml | FIND /V "<HttpPatchFolder>" > LocalConfig.xml.tmp
  50. MOVE LocalConfig.xml.tmp LocalConfig.xml
  51.  
  52. IF "%fps%" == "true" ECHO Changing FPS booster setting...
  53. IF "%fps%" == "true" rundll32 winmm.dll timeBeginPeriod 1
  54.  
  55. ECHO Starting client...
  56. ECHO.
  57. ECHO Please do NOT close this window, it will revert the changes when game closes.
  58. IF "%priority%" == "true" ECHO Using priority above normal
  59. IF "%priority%" == "true" START /WAIT /ABOVENORMAL AgeOfConan.exe -novideo -noconsole -username %1 -password %2
  60. IF NOT "%priority%" == "true" AgeOfConan.exe -novideo -noconsole -username %1 -password %2
  61.  
  62. IF "%fps%" == "true" ECHO Restoring FPS booster setting to default...
  63. IF "%fps%" == "true" rundll32 winmm.dll timeEndPeriod 1
  64.  
  65. GOTO restore
  66.  
  67. :restore
  68. ECHO Restoring backup...
  69. MOVE LocalConfig.xml.bak LocalConfig.xml
  70. GOTO eof
  71.  
  72. :patch
  73. ECHO Restoring backup...
  74. MOVE LocalConfig.xml.bak LocalConfig.xml
  75. ECHO Starting patcher...
  76. start ConanPatcher.exe
  77. GOTO eof
  78.  
  79. :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement