-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart.bat
212 lines (162 loc) · 5.64 KB
/
Start.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
@echo off
:::::::::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::: WARNING ::::::::::::::::::::
:::::::::::::::: DON'T EDIT HERE ::::::::::::::::
:::::::::: EDIT ON THE CONFIG FILE ON :::::::::::
:::::::::: TEMP FOLDER vapeConfig.txt :::::::::::
:::::::::::::::::::::::::::::::::::::::::::::::::
::::: Load config file :::::
set "config_file=%temp%\vapeConfig.txt"
FOR /f "usebackq eol=; tokens=* delims=*" %%# in ("%config_file%") do (CALL SET "%%#")
color b
::::: CONFIG GENERATOR :::::
If exist "%temp%\vapeConfig.txt" (goto LoadChecker) else (
echo ;;VAPE RUNNER CONFIG >%config_file%
echo. >>%config_file%
echo. >>%config_file%
echo. >>%config_file%
echo ;; Vape directory (The folder with the server.py not the exe) >>%config_file%
echo Vape-Dir=n/a >>%config_file%
echo. >>%config_file%
echo ;; Vape version. Put "v4" or "lite" (Lowercase) >>%config_file%
echo Vape-Version=n/a >>%config_file%
echo. >>%config_file%
echo ;; Load time (The time the program wait before open vape. So, open the server and wait x time to wait before inyect) - Default: 5 >>%config_file%
echo Timeout-Time=5 >>%config_file%
echo.>>%config_file%
echo ;;Batch startup location (Only if you want self destruct) >>%config_file%
echo Bat-location="%~f0" >>%config_file%
cls
echo Config file generated on %config_file%
start "" "%config_file%"
timeout /t 5 /nobreak >%temp%\nul
exit
)
goto LoadChecker
::::: loader checker :::::
:LoadChecker
cls
if /i "%Vape-Dir%"=="n/a" (echo Dir is not definded & timeout /t 2 /nobreak & exit )
cls
If /i "%Vape-Version%"=="v4" (
echo Loading Vape v4. If you want to load Vape Lite change the config file
timeout /t 3 /nobreak & goto Loadv4
) else (
If "%Vape-Version%"=="lite" (
echo Loading Vape Lite. If you want to load Vape v4 change config file
timeout /t 3 /nobreak & goto LoadLite
) else (
echo Vape version not defined/incorrect spelling on config file ^(%config_file%^)
start "" "%config_file%"
timeout /t 3 /nobreak & exit
)
)
::::: Server Loader v4 :::::
:Loadv4
taskkill /f /t /fi "windowtitle eq server vape*"
cd "%Vape-Dir%"
cls
If NOT exist "tmp.bat" (
echo @echo off >>tmp.bat
echo title server vape >>tmp.bat
echo color b >>tmp.bat
echo python server.py >>tmp.bat)
start tmp.bat
cls
echo Giving time to the server to load
timeout /t %Timeout-Time% /nobreak >nul
"%Vape-Dir%\Vape_V4\Kangaroo Patcher.exe" "%Vape-Dir%\Vape_V4\Vape_V4.exe"
goto Loadedv4
::::: Server Loader Lite :::::
:LoadLite
taskkill /f /t /fi "windowtitle eq server vape*"
cd "%Vape-Dir%"
cls
If NOT exist "tmp.bat" (
echo @echo off >>tmp.bat
title server vape
echo color b >>tmp.bat
echo python server.py >>tmp.bat)
start tmp.bat
cls
echo Giving time to the server to load
timeout /t %Timeout-Time% /nobreak >nul
"%vapedir%\Vape Lite\Kangaroo Patcher.exe" "%vapedir%\Vape Lite\Vape_Lite.exe"
goto LoadedLite
::::: Menu for loaded v4 :::::
:Loadedv4
cd "%Vape-Dir%"
mode 43,20
cls
echo ###########################################
echo # #
echo # #
echo # Vape Loader #
echo # By craciu25yt #
echo # #
echo # #
echo # Current version: #
echo # v4 #
echo # #
echo # #
echo ###########################################
echo.
echo.
echo.
echo [1]. Re-inyect (Just inyect)
echo [2]. Re-open server
echo [3]. Self destruct
set/p menu=Option:
If "%menu%"=="1" goto Loadv4
If "%menu%"=="2" start tmp.bat
If "%menu%"=="3" goto destruct
echo %menu% isn't a valid option.
pause
goto Loadedv4
::::: Menu for loaded Lite :::::
:LoadedLite
cd "%Vape-Dir%"
cls
mode 43,20
echo ###########################################
echo # #
echo # #
echo # Vape Loader #
echo # By craciu25yt #
echo # #
echo # #
echo # Current version: #
echo # Lite #
echo # #
echo # #
echo ###########################################
echo.
echo.
echo.
echo [1]. Re-inyect
echo [2]. Re-open server
echo [3]. Self destruct
echo.
echo.
set/p menu=Option:
If "%menu%"=="1" goto LoadLite
If "%menu%"=="2" start tmp.bat
If "%menu%"=="3" goto destruct
echo %menu% isn't a valid option.
pause
goto LoadedLite
::::: Destestruct :::::
:destruct
echo Remember to selfdestruct vape on RSHIFT ^> Other ^> Self-Destruct
echo That may not work XD
timeout /t 7 /nobreak
cd %temp%
echo @echo off >> "%temp%\sd.bat"
echo title >> "%temp%\sd.bat"
echo timeout /t 3 /nobreak ^>nul >> "%temp%\sd.bat"
echo set "vapedir=%Vape-Dir%" >> "%temp%\sd.bat"
echo del /f /s /q "%Vape-Dir%" >> "%temp%\sd.bat"
echo del /f /s /q "%Bat-location%" >> "%temp%\sd.bat"
echo del /f /s /q %0 >> "%temp%\sd.bat"
start "%temp%\sd.bat"
exit