Guest User

Untitled

a guest
Oct 11th, 2014
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.27 KB | None | 0 0
  1. Zapisz to w folderze gta, i uruchom jako .bat
  2.  
  3. ____________________________________________________________________________________________________
  4.  
  5. @echo off
  6. title GTA: San Andreas (Steam) Downgrader
  7.  
  8. mkdir "%windir%\system32\test" 2>nul
  9. if "%errorlevel%" == "0" (rmdir "%windir%\system32\test") else (echo Please run this file as Administrator. & pause & exit)
  10.  
  11. cd /d %~dp0
  12. echo Welcome to GTA: San Andreas Downgrader!
  13. PING 1.1.1.1 -n 1 -w 1000 >NUL
  14. echo This is for the Steam version (3.0) of the game.
  15. PING 1.1.1.1 -n 1 -w 1000 >NUL
  16. echo Assure you have your original "gta-sa.exe" file in this folder, and continue.
  17. PING 1.1.1.1 -n 1 -w 1000 >NUL
  18. pause
  19. cls
  20. echo.
  21. echo Continuing...
  22. echo.
  23. PING 1.1.1.1 -n 1 -w 1000 >NUL
  24. cls
  25.  
  26. :CheckFile
  27. IF EXIST gta-sa.exe GOTO SelectMode
  28. IF NOT EXIST gta-sa.exe GOTO ReqMoveFile
  29.  
  30. :NoFile
  31. cls
  32. Echo Unable to find gta-sa.exe
  33. PING 1.1.1.1 -n 1 -w 1000 >NUL
  34. echo Please make sure the file is in the same directory as this Batch file.
  35. PING 1.1.1.1 -n 1 -w 1000 >NUL
  36. echo This program will now exit.
  37. pause
  38. exit
  39.  
  40. :ReqMoveFile
  41. echo.
  42. echo File not found.
  43. echo.
  44. echo Would you like me to move the executable for you?
  45. echo.
  46. echo Y. Yes
  47. echo N. No
  48. echo.
  49. set /p Mode=Enter a option:
  50.  
  51. if %Mode% == y goto MoveFile
  52. if %Mode% == Y goto MoveFile
  53. if %mode% == 1 goto MoveFile
  54. if %Mode% == n goto NoFile
  55. if %Mode% == N goto NoFile
  56. if %Mode% == 2 goto NoFile
  57.  
  58. echo ERROR: Invalid input, choose between Y and N
  59. echo.
  60. goto ReqMoveFile
  61.  
  62. :MoveFile
  63. if "%programfiles(x86)%XXX"=="XXX" goto move32
  64. goto move64
  65.  
  66. :move32
  67. IF EXIST C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe (
  68. echo Moving...
  69. PING 1.1.1.1 -n 1 -w 1000 >NUL
  70. copy "C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe" .
  71. PING 1.1.1.1 -n 1 -w 1000 >NUL
  72. echo Move Complete
  73. PING 1.1.1.1 -n 1 -w 1000 >NUL
  74. cls
  75. goto checkFile
  76.  
  77. ) else (
  78. cls
  79. echo.
  80. echo San Andreas Steam installation not found.
  81. echo Please confirm the following file exists, and then try again.
  82. echo.
  83. echo File:
  84. echo C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe
  85. echo.
  86. pause
  87. exit )
  88.  
  89. :move64
  90. IF EXIST C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe (
  91. echo Moving...
  92. PING 1.1.1.1 -n 1 -w 1000 >NUL
  93. copy "C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe" .
  94. PING 1.1.1.1 -n 1 -w 1000 >NUL
  95. echo Move Complete
  96. PING 1.1.1.1 -n 1 -w 1000 >NUL
  97. cls
  98. goto checkFile
  99.  
  100. ) else (
  101. cls
  102. echo.
  103. echo San Andreas Steam installation not found.
  104. echo Please confirm the following file exists, and then try again.
  105. echo.
  106. echo File:
  107. echo C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta-sa.exe
  108. echo.
  109. pause
  110. exit )
  111.  
  112. :checkFile
  113. IF EXIST gta-sa.exe GOTO SelectMode
  114. IF NOT EXIST gta-sa.exe GOTO NoFile
  115.  
  116. :SelectMode
  117.  
  118. echo Which version do you wish to patch?
  119. echo.
  120. echo 1. V1.0
  121. echo 2. V1.1
  122. echo.
  123. set /p Mode=Enter a option:
  124.  
  125. if %Mode% == 1 goto Do1
  126. if %Mode% == 2 goto Do11
  127.  
  128. echo ERROR: Invalid input, choose between 1 and 2
  129. echo.
  130. goto SelectMode
  131.  
  132. :Do1
  133. echo Patching...
  134. bin\bspatch.exe gta-sa.exe gta_sa.exe patch\gtadiff10.patch
  135. PING 1.1.1.1 -n 1 -w 1000 >NUL
  136. cls
  137. goto CopyChoice
  138.  
  139. :Do11
  140. echo Patching...
  141. bin\bspatch.exe gta-sa.exe gta_sa.exe patch\gtadiff101.patch
  142. PING 1.1.1.1 -n 1 -w 1000 >NUL
  143. cls
  144. goto CopyChoice
  145.  
  146. :CopyChoice
  147. echo Do you want to copy the patched file into your Steam directory?
  148. echo.
  149. echo Y. Yes
  150. echo N. No
  151. echo.
  152. set /p Mode=Enter a option:
  153.  
  154. if %Mode% == y goto OSSelect
  155. if %Mode% == Y goto OSSelect
  156. if %Mode% == 1 goto OSSelect
  157. if %Mode% == n goto Finish
  158. if %Mode% == N goto Finish
  159. if %Mode% == 2 goto Finish
  160.  
  161. echo ERROR: Invalid input, choose between y and n
  162. echo.
  163. goto CopyChoice
  164.  
  165. :OSSelect
  166. if "%programfiles(x86)%XXX"=="XXX" goto 32
  167. goto 64
  168.  
  169. :32
  170. echo Copying...
  171. PING 1.1.1.1 -n 1 -w 1000 >NUL
  172. copy gta_sa.exe "C:\Program Files\Steam\steamapps\common\grand theft auto san andreas\gta_sa.exe"
  173. PING 1.1.1.1 -n 1 -w 1000 >NUL
  174. echo Copy Complete
  175. pause
  176. cls
  177. goto Launch
  178.  
  179. :64
  180. echo Copying...
  181. PING 1.1.1.1 -n 1 -w 1000 >NUL
  182. copy gta_sa.exe "C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas\gta_sa.exe"
  183. PING 1.1.1.1 -n 1 -w 1000 >NUL
  184. echo Copy Complete
  185. pause
  186. cls
  187. goto Launch
  188.  
  189. :Launch
  190. echo Do you want to launch the patched game?
  191. echo.
  192. echo Y. Yes
  193. echo N. No
  194. echo.
  195. set /p Mode=Enter a option:
  196.  
  197. if %Mode% == y goto DoLaunch
  198. if %Mode% == Y goto DoLaunch
  199. if %Mode% == 1 goto DoLaunch
  200. if %Mode% == n goto Finish
  201. if %Mode% == N goto Finish
  202. if %Mode% == 2 goto Finish
  203.  
  204. echo ERROR: Invalid input, choose between y and n
  205. echo.
  206. goto Launch
  207.  
  208. :DoLaunch
  209. if "%programfiles(x86)%XXX"=="XXX" goto L32
  210. goto L64
  211.  
  212. :L32
  213. cd "C:\Program Files\Steam\steamapps\common\grand theft auto san andreas"
  214. gta_sa.exe
  215. exit
  216.  
  217. :L64
  218. cd "C:\Program Files (x86)\Steam\steamapps\common\grand theft auto san andreas"
  219. gta_sa.exe
  220. exit
  221.  
  222. :Finish
  223. cls
  224. echo Patched gta_sa.exe Created.
  225. PING 1.1.1.1 -n 1 -w 1000 >NUL
  226. echo Put this in your game directory and launch it to play the sersion you selected!
  227. PING 1.1.1.1 -n 1 -w 1000 >NUL
  228. echo Read the read-me for more information.
  229. PING 1.1.1.1 -n 1 -w 1000 >NUL
  230. echo Enjoy!
  231. pause
  232. exit
Advertisement
Add Comment
Please, Sign In to add comment