Last active 1741880437

jackz's Avatar jackz revised this gist 1741880437. Go to revision

No changes

jackz's Avatar Jackz revised this gist 1615840048. Go to revision

1 file changed, 1 insertion, 1 deletion

launch_gtao_patch.bat

@@ -1,4 +1,4 @@
1 - :: Launch GTA Online Patch
1 + :: Launch GTA Online Patch v1.2
2 2 :: This batch file will automatically launch GTAV if not started, look for the process and inject using Xenos
3 3 :: You should probably at minimum change the GTADIR parameter below to where your GTA5.exe is
4 4 :: It will run Xenos64 in the folder the bat file is ran from, for the profile "OnlinePatch.xpr64"

jackz's Avatar Jackz revised this gist 1615840012. Go to revision

1 file changed, 12 insertions, 8 deletions

launch_gtao_patch.bat

@@ -7,10 +7,15 @@
7 7 :: Xenos - https://github.com/DarthTon/Xenos
8 8 :: Online Patch Booster - https://github.com/QuickNET-Tech/GTAO_Booster_PoC
9 9 @echo off
10 - ::If you want to auto launch as admin, uncomment this:
10 + title Launch GTA Online Patch
11 +
12 +
13 + :: If you want to auto launch as admin, uncomment this: (Relaunches batch as admin)
11 14 ::if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
12 15
13 - :: !!! These variables may need to be changed
16 + :: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
17 + :: !!! These variables may need to be changed !!!
18 + :: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14 19
15 20 :: The directory where PlayGTAV.exe and GTAV.exe are located
16 21 Set GTADir="S:\Grand Theft Auto V"
@@ -21,14 +26,13 @@ Set IsSteamVersion=true
21 26 Set WaitToInject=1
22 27 :: The name of the injector profile with the extension
23 28 Set ProfileName=OnlinePatch.xpr64
24 - :: The directory to find the executable, defaults to location of this .bat file
29 + :: The directory to find the executable, defaults to location of this .bat file.
25 30 set ExecutableDir="%cd%"
26 31
27 -
28 - :: Executables
32 + :: Executables (You don't need to change these!)
29 33 Set Process=GTA5.exe
30 34 Set RockstarLauncher=Launcher.exe
31 - Set Executable=Xenos64.exe
35 + Set ExecutableFileName=Xenos64.exe
32 36
33 37 :: If GTA5.exe not running, starts via PlayGTAV.exe (May not work on Steam version)
34 38 cd /D %GTADir%
@@ -46,11 +50,11 @@ echo Looking for %Process%...
46 50 tasklist /NH /FI "imagename eq %Process%" 2>nul |find /i "%Process%" >nul
47 51 If not errorlevel 1 (
48 52 :: If process is found, inject.
49 - echo GTAV Found, Running %Executable% for Profile %ProfileName%
53 + echo GTAV Found, Running %ExecutableFileName% for Profile %ProfileName%
50 54 cd /D %ExecutableDir%
51 55 timeout /t %WaitToInject%
52 56 echo Running executable
53 - start /WAIT %Executable% --run %ProfileName%
57 + start /WAIT %ExecutableFileName% --run %ProfileName%
54 58 echo Executable ran, will automatically close when game exits.
55 59 goto waitForGameExit
56 60 ) else (

jackz's Avatar Jackz revised this gist 1615835404. Go to revision

1 file changed, 3 insertions, 5 deletions

launch_gtao_patch.bat

@@ -3,20 +3,19 @@
3 3 :: You should probably at minimum change the GTADIR parameter below to where your GTA5.exe is
4 4 :: It will run Xenos64 in the folder the bat file is ran from, for the profile "OnlinePatch.xpr64"
5 5
6 - :: May not work on steam due to different launch system, but will automatically launch gtav (and the rockstar launcher!)
7 -
8 6 :: Links
9 7 :: Xenos - https://github.com/DarthTon/Xenos
10 8 :: Online Patch Booster - https://github.com/QuickNET-Tech/GTAO_Booster_PoC
11 9 @echo off
12 - if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
10 + ::If you want to auto launch as admin, uncomment this:
11 + ::if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
13 12
14 13 :: !!! These variables may need to be changed
15 14
16 15 :: The directory where PlayGTAV.exe and GTAV.exe are located
17 16 Set GTADir="S:\Grand Theft Auto V"
18 17 :: Is the game STEAM or WAREHOUSE? TRUE for STEAM, blank for WAREHOUSE
19 - Set IsSteamVersion=TRUE
18 + Set IsSteamVersion=true
20 19 :: How long until after process detected to inject? (in seconds)
21 20 :: 1 second allows for patch to skip r* credits, > 2 will be too late.
22 21 Set WaitToInject=1
@@ -31,7 +30,6 @@ Set Process=GTA5.exe
31 30 Set RockstarLauncher=Launcher.exe
32 31 Set Executable=Xenos64.exe
33 32
34 -
35 33 :: If GTA5.exe not running, starts via PlayGTAV.exe (May not work on Steam version)
36 34 cd /D %GTADir%
37 35 tasklist /NH /FI "imagename eq %Process%" 2>nul |find /i "%Process%" >nul

jackz's Avatar Jackz revised this gist 1615835303. Go to revision

1 file changed, 1 insertion

launch_gtao_patch.bat

@@ -9,6 +9,7 @@
9 9 :: Xenos - https://github.com/DarthTon/Xenos
10 10 :: Online Patch Booster - https://github.com/QuickNET-Tech/GTAO_Booster_PoC
11 11 @echo off
12 + if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b)
12 13
13 14 :: !!! These variables may need to be changed
14 15

jackz's Avatar Jackz revised this gist 1615835148. Go to revision

1 file changed, 7 insertions, 5 deletions

launch_gtao_patch.bat

@@ -1,4 +1,4 @@
1 - :: Launch GTA Online Patch (v1.1)
1 + :: Launch GTA Online Patch
2 2 :: This batch file will automatically launch GTAV if not started, look for the process and inject using Xenos
3 3 :: You should probably at minimum change the GTADIR parameter below to where your GTA5.exe is
4 4 :: It will run Xenos64 in the folder the bat file is ran from, for the profile "OnlinePatch.xpr64"
@@ -14,9 +14,10 @@
14 14
15 15 :: The directory where PlayGTAV.exe and GTAV.exe are located
16 16 Set GTADir="S:\Grand Theft Auto V"
17 - :: Is the game STEAM or WAREHOUSE? 1 for STEAM, 0 for WAREHOUSE
18 - Set IsSteamVersion=1
17 + :: Is the game STEAM or WAREHOUSE? TRUE for STEAM, blank for WAREHOUSE
18 + Set IsSteamVersion=TRUE
19 19 :: How long until after process detected to inject? (in seconds)
20 + :: 1 second allows for patch to skip r* credits, > 2 will be too late.
20 21 Set WaitToInject=1
21 22 :: The name of the injector profile with the extension
22 23 Set ProfileName=OnlinePatch.xpr64
@@ -29,12 +30,13 @@ Set Process=GTA5.exe
29 30 Set RockstarLauncher=Launcher.exe
30 31 Set Executable=Xenos64.exe
31 32
33 +
32 34 :: If GTA5.exe not running, starts via PlayGTAV.exe (May not work on Steam version)
33 35 cd /D %GTADir%
34 36 tasklist /NH /FI "imagename eq %Process%" 2>nul |find /i "%Process%" >nul
35 37 If errorlevel 1 (
36 38 echo Game is not running, starting. STEAM: %IsSteamVersion%
37 - If IsSteamVersion equ 1 (
39 + If defined IsSteamVersion (
38 40 start "" "steam://run/271590//-goStraightToMP -StraightIntoFreemode/"
39 41 ) else start PlayGTAV.exe -goStraightToMP -StraightIntoFreemode
40 42 )
@@ -63,7 +65,7 @@ If not errorlevel 1 (
63 65 tasklist /NH /FI "imagename eq %Process%" 2>nul |find /i "%Process%" >nul
64 66 If errorlevel 1 (
65 67 echo Detected game has closed, exiting...
66 - timeout /T 5 /nobreak > nul
68 + timeout /T 2 /nobreak > nul
67 69 echo Closing social club launcher
68 70 wmic process where name="%RockstarLauncher%" call terminate
69 71 ) else (

jackz's Avatar Jackz revised this gist 1615576362. Go to revision

1 file changed, 1 insertion, 1 deletion

launch_gtao_patch.bat

@@ -17,7 +17,7 @@ Set GTADir="S:\Grand Theft Auto V"
17 17 :: Is the game STEAM or WAREHOUSE? 1 for STEAM, 0 for WAREHOUSE
18 18 Set IsSteamVersion=1
19 19 :: How long until after process detected to inject? (in seconds)
20 - Set WaitToInject=2
20 + Set WaitToInject=1
21 21 :: The name of the injector profile with the extension
22 22 Set ProfileName=OnlinePatch.xpr64
23 23 :: The directory to find the executable, defaults to location of this .bat file

jackz's Avatar Jackz revised this gist 1615575600. Go to revision

1 file changed, 1 insertion, 1 deletion

launch_gtao_patch.bat

@@ -17,7 +17,7 @@ Set GTADir="S:\Grand Theft Auto V"
17 17 :: Is the game STEAM or WAREHOUSE? 1 for STEAM, 0 for WAREHOUSE
18 18 Set IsSteamVersion=1
19 19 :: How long until after process detected to inject? (in seconds)
20 - Set WaitToInject=6
20 + Set WaitToInject=2
21 21 :: The name of the injector profile with the extension
22 22 Set ProfileName=OnlinePatch.xpr64
23 23 :: The directory to find the executable, defaults to location of this .bat file

jackz's Avatar Jackz revised this gist 1615573217. Go to revision

1 file changed, 8 insertions, 23 deletions

launch_gtao_patch.bat

@@ -1,4 +1,4 @@
1 - :: Launch GTA Online Patch
1 + :: Launch GTA Online Patch (v1.1)
2 2 :: This batch file will automatically launch GTAV if not started, look for the process and inject using Xenos
3 3 :: You should probably at minimum change the GTADIR parameter below to where your GTA5.exe is
4 4 :: It will run Xenos64 in the folder the bat file is ran from, for the profile "OnlinePatch.xpr64"
@@ -17,19 +17,16 @@ Set GTADir="S:\Grand Theft Auto V"
17 17 :: Is the game STEAM or WAREHOUSE? 1 for STEAM, 0 for WAREHOUSE
18 18 Set IsSteamVersion=1
19 19 :: How long until after process detected to inject? (in seconds)
20 - Set WaitToInject=10
21 - :: How long to wait to look for GTA5.exe? (in seconds)
22 - Set ProcessFindTimeout=20
20 + Set WaitToInject=6
23 21 :: The name of the injector profile with the extension
24 22 Set ProfileName=OnlinePatch.xpr64
25 23 :: The directory to find the executable, defaults to location of this .bat file
26 24 set ExecutableDir="%cd%"
27 25
28 26
29 - Set count=0
30 27 :: Executables
31 28 Set Process=GTA5.exe
32 - Set RockstarLauncher="Launcher.exe"
29 + Set RockstarLauncher=Launcher.exe
33 30 Set Executable=Xenos64.exe
34 31
35 32 :: If GTA5.exe not running, starts via PlayGTAV.exe (May not work on Steam version)
@@ -43,21 +40,9 @@ If errorlevel 1 (
43 40 )
44 41
45 42 :: Starts looking for the process
46 - echo Looking for %Process%
43 + echo Looking for %Process%...
47 44 :findGTA
48 45 tasklist /NH /FI "imagename eq %Process%" 2>nul |find /i "%Process%" >nul
49 - :: Checks if the timeout has been reached, if not continue down below
50 - If %Count% EQU %ProcessFindTimeout% (
51 - echo Could not find GTAV before timeout
52 - CHOICE /D N /T 20 /M "Do you want to try again?"
53 - IF ERRORLEVEL 2 exit /b
54 - IF ERRORLEVEL 1 (
55 - echo Looking for %Process%
56 - set /A Count=0
57 - goto findGTA
58 - )
59 - )
60 - set /A Count=Count+1
61 46 If not errorlevel 1 (
62 47 :: If process is found, inject.
63 48 echo GTAV Found, Running %Executable% for Profile %ProfileName%
@@ -66,7 +51,7 @@ If not errorlevel 1 (
66 51 echo Running executable
67 52 start /WAIT %Executable% --run %ProfileName%
68 53 echo Executable ran, will automatically close when game exits.
69 - goto waitForGame
54 + goto waitForGameExit
70 55 ) else (
71 56 :: Process still not found, continue loop after 1s
72 57 timeout /t 1 /nobreak > nul
@@ -74,7 +59,7 @@ If not errorlevel 1 (
74 59
75 60 )
76 61
77 - :waitForGame
62 + :waitForGameExit
78 63 tasklist /NH /FI "imagename eq %Process%" 2>nul |find /i "%Process%" >nul
79 64 If errorlevel 1 (
80 65 echo Detected game has closed, exiting...
@@ -82,6 +67,6 @@ If errorlevel 1 (
82 67 echo Closing social club launcher
83 68 wmic process where name="%RockstarLauncher%" call terminate
84 69 ) else (
85 - timeout /t 1 /nobreak > nul
86 - goto waitForGame
70 + timeout /t 6 /nobreak > nul
71 + goto waitForGameExit
87 72 )

jackz's Avatar Jackz revised this gist 1615572569. Go to revision

1 file changed, 1 deletion

launch_gtao_patch.bat

@@ -16,7 +16,6 @@
16 16 Set GTADir="S:\Grand Theft Auto V"
17 17 :: Is the game STEAM or WAREHOUSE? 1 for STEAM, 0 for WAREHOUSE
18 18 Set IsSteamVersion=1
19 - :: The profile name for xenos injector (64-bit version)
20 19 :: How long until after process detected to inject? (in seconds)
21 20 Set WaitToInject=10
22 21 :: How long to wait to look for GTA5.exe? (in seconds)
Newer Older