Subversion Repositories vaca_plus

Rev

Rev 50 | Rev 52 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 51
1
@echo off
1
@echo off
2
@color 0C
2
@color 0C
3
pushd .
3
pushd .
4
chdir /d "%~dp0"
4
chdir /d "%~dp0"
5
 
5
 
6
:restart
6
:restart
7
title Duke Caribbean: Life's A Beach Plus Launcher
7
title Duke Caribbean: Life's A Beach Plus Launcher
8
if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher
8
if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher
9
 
9
 
10
set exedir=%~dp0
10
set exedir=%~dp0
11
set addondir=%~dp0
11
set addondir=%~dp0
12
set addonhrpdir=%~dp0
12
set addonhrpdir=%~dp0
13
 
13
 
14
set exename=eduke32
14
set exename=eduke32
15
set exeproper=EDuke32
15
set exeproper=EDuke32
16
set action=playing
16
set action=playing
17
 
17
 
18
if "%editor%"=="1" (
18
if "%editor%"=="1" (
19
set exename=mapster32
19
set exename=mapster32
20
set exeproper=Mapster32
20
set exeproper=Mapster32
21
set action=editing
21
set action=editing
22
)
22
)
23
 
23
 
24
set addonver=r004
24
set addonver=r004
25
 
25
 
26
:title
26
:title
27
echo                     ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
27
echo                     ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
28
echo                     º Duke Caribbean: Life's A Beach Plus º
28
echo                     º Duke Caribbean: Life's A Beach Plus º
29
echo                     ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ
29
echo                     ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ
30
echo                               ³ By Hendricks266 ³
30
echo                               ³ By Hendricks266 ³
31
echo                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
31
echo                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
32
echo.
32
echo.
33
echo You are %action% Sunstorm Interactive's Duke Caribbean: Life's A Beach with the
33
echo You are %action% Sunstorm Interactive's Duke Caribbean: Life's A Beach with the
34
echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by
34
echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by
35
echo Hendricks266.
35
echo Hendricks266.
36
echo.
36
echo.
37
 
37
 
38
if "%xxx%"=="1" echo Using XXX mode.
38
if "%xxx%"=="1" echo Using XXX mode.
39
if "%dp%"=="1" echo Using Duke Plus by DeeperThought.
39
if "%dp%"=="1" echo Using Duke Plus by DeeperThought.
40
if "%debug%"=="1" echo Using debug mode.
40
if "%debug%"=="1" echo Using debug mode.
41
 
41
 
-
 
42
if "%debug%"=="1" echo DEBUG: Command Line Input: %*
-
 
43
 
42
:recheck
44
:recheck
43
if not exist %exename%.exe goto execheck
45
if not exist %exename%.exe goto execheck
44
:execheck_done
46
:execheck_done
45
set exedir=%cd%
47
set exedir=%cd%
46
if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%"
48
if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%"
47
 
49
 
48
if not exist vaca_plus\ goto nodir
50
if not exist vaca_plus\ goto nodir
49
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
51
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
50
 
52
 
51
if exist vacation\ set addonhrpdir=%cd%
53
if exist vacation\ set addonhrpdir=%cd%
52
:addondircheck
54
:addondircheck
53
if exist VACATION.PRG ren VACATION.PRG vacation.grp
55
if exist VACATION.PRG ren VACATION.PRG vacation.grp
54
chdir vaca_plus
56
chdir vaca_plus
55
set addondir=%cd%
57
set addondir=%cd%
56
if exist vacation\ set addonhrpdir=%cd%
58
if exist vacation\ set addonhrpdir=%cd%
57
if exist vaca_plus\ goto addondircheck
59
if exist vaca_plus\ goto addondircheck
58
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%addondir%".
60
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%addondir%".
59
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%addonhrpdir%".
61
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%addonhrpdir%".
60
 
62
 
61
if not exist "%addondir%\VACATION.GRP" (
63
if not exist "%addondir%\VACATION.GRP" (
62
if exist "%exedir%\VACATION.GRP" (
64
if exist "%exedir%\VACATION.GRP" (
63
move /y "%exedir%\VACATION.GRP" "%addondir%\"
65
move /y "%exedir%\VACATION.GRP" "%addondir%\"
64
ren "%addondir%\VACATION.GRP" vacation.grp
66
ren "%addondir%\VACATION.GRP" vacation.grp
65
) else (
67
) else (
66
goto novacagrp
68
goto novacagrp
67
) )
69
) )
68
 
70
 
69
if exist vacation.grp ren vacation.grp vacation.grp
71
if exist vacation.grp ren vacation.grp vacation.grp
70
call :grpchecksum
72
call :grpchecksum
71
:novacagrp_return
73
:novacagrp_return
72
if not "%version%"=="demo" (
74
if not "%version%"=="demo" (
73
if not exist vaca1.map goto mapextract
75
if not exist vaca1.map goto mapextract
74
if not exist vaca2.map goto mapextract
76
if not exist vaca2.map goto mapextract
75
if not exist vaca3.map goto mapextract
77
if not exist vaca3.map goto mapextract
76
if not exist vaca4.map goto mapextract
78
if not exist vaca4.map goto mapextract
77
if not exist vaca5.map goto mapextract
79
if not exist vaca5.map goto mapextract
78
if not exist vaca6.map goto mapextract
80
if not exist vaca6.map goto mapextract
79
if not exist vaca7.map goto mapextract
81
if not exist vaca7.map goto mapextract
80
if not exist vacasl.map goto mapextract
82
if not exist vacasl.map goto mapextract
81
if not exist vacadm1.map goto mapextract
83
if not exist vacadm1.map goto mapextract
82
if not exist vacadm2.map goto mapextract
84
if not exist vacadm2.map goto mapextract
83
if not exist vacadm3.map goto mapextract
85
if not exist vacadm3.map goto mapextract
84
if not exist vacadm4.map goto mapextract
86
if not exist vacadm4.map goto mapextract
85
if not exist vacaflag_%addonver%.h266 goto updateextract
87
if not exist vacaflag_%addonver%.h266 goto updateextract
86
)
88
)
87
chdir /d "%exedir%"
89
chdir /d "%exedir%"
88
echo.
90
echo.
89
echo.
91
echo.
90
echo.
92
echo.
91
echo.
93
echo.
92
echo.
94
echo.
93
echo.
95
echo.
94
echo.
96
echo.
95
echo.
97
echo.
96
echo.
98
echo.
97
 
99
 
98
:init
100
:init
99
pause
101
pause
100
echo.
102
echo.
101
goto check
103
goto check
102
 
104
 
103
:check
105
:check
104
 
106
 
105
echo.
107
echo.
106
echo Launching Duke Nukem 3D . . .
108
echo Launching Duke Nukem 3D . . .
107
echo Thanks for %action%^!
109
echo Thanks for %action%^!
108
echo.
110
echo.
109
 
111
 
110
if "%editor%"=="1" (
112
if "%editor%"=="1" (
111
type "%exedir%\names.h" > "%exedir%\VacaNames.h"
113
type "%exedir%\names.h" > "%exedir%\VacaNames.h"
112
echo. >> "%exedir%\VacaNames.h"
114
echo. >> "%exedir%\VacaNames.h"
113
type "%addondir%\VacaNames.def" >> "%exedir%\VacaNames.h"
115
type "%addondir%\VacaNames.def" >> "%exedir%\VacaNames.h"
114
)
116
)
115
 
117
 
116
:arguments
118
:arguments
117
set args=
119
set args=
118
if exist "%exedir%\HRP\" set args=%args% -jHRP
120
if exist "%exedir%\HRP\" set args=%args% -jHRP
119
if exist "%exedir%\polymer_hrp\" set args=%args% -jpolymer_hrp
121
if exist "%exedir%\polymer_hrp\" set args=%args% -jpolymer_hrp
120
if exist "%exedir%\duke3d_voxel.zip" set args=%args% -gduke3d_voxel.zip
122
if exist "%exedir%\duke3d_voxel.zip" set args=%args% -gduke3d_voxel.zip
121
if exist "%exedir%\duke3d_hrp.zip" set args=%args% -gduke3d_hrp.zip
123
if exist "%exedir%\duke3d_hrp.zip" set args=%args% -gduke3d_hrp.zip
122
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
124
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
123
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
125
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
124
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
126
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
125
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
127
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
126
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
128
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
127
set args=%args% -gvacation.grp -hvacation.def -xVacaEDuke.con
129
set args=%args% -gvacation.grp -hvacation.def -xVacaEDuke.con
128
if "%editor%"=="1" set args=%args% -namesfile VacaNames.h
130
if "%editor%"=="1" set args=%args% -namesfile VacaNames.h
129
if "%dp%"=="1" set args=%args% -hvaca_dp.def -xVacaDP.con
131
if "%dp%"=="1" set args=%args% -hvaca_dp.def -xVacaDP.con
130
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
132
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
131
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
133
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
132
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
134
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
133
if "%xxx%"=="1" if exist "%exedir%\xxx_pack\" set args=%args% -jxxx_pack
135
if "%xxx%"=="1" if exist "%exedir%\xxx_pack\" set args=%args% -jxxx_pack
134
if "%xxx%"=="1" set args=%args% -hvaca_xxx.def
136
if "%xxx%"=="1" set args=%args% -hvaca_xxx.def
135
if "%xxx%"=="1" if "%dp%"=="1" set args=%args% -hvaca_dp_xxx.def -xVacaDPXXX.con
137
if "%xxx%"=="1" if "%dp%"=="1" set args=%args% -hvaca_dp_xxx.def -xVacaDPXXX.con
136
set args=%args% %*
138
set args=%args% %*
137
if "%dp%"=="1" set args=%args% -jDukePlus
139
if "%dp%"=="1" set args=%args% -jDukePlus
138
 
140
 
139
set exe=%exename%
141
set exe=%exename%
140
if "%debug%"=="1" set exe=%exename%.debug
142
if "%debug%"=="1" set exe=%exename%.debug
141
 
143
 
142
if exist %exe%.bat (
144
if exist %exe%.bat (
143
call %exe%.bat %args%
145
call %exe%.bat %args%
144
if "%debug%"=="1" echo DEBUG: Final Command Line: call %exe%.bat %args%
146
if "%debug%"=="1" echo DEBUG: Final Command Line: call %exe%.bat %args%
145
) else (
147
) else (
146
start %exe%.exe %args%
148
start %exe%.exe %args%
147
if "%debug%"=="1" echo DEBUG: Final Command Line: start %exe%.exe %args%
149
if "%debug%"=="1" echo DEBUG: Final Command Line: start %exe%.exe %args%
148
)
150
)
149
 
151
 
150
set svnpath=0
152
set svnpath=0
151
if "%svnpath%"=="0" if exist "%~dp0\svn\bin\svn.exe" set svnpath=%~dp0\svn\bin
153
if "%svnpath%"=="0" if exist "%~dp0\svn\bin\svn.exe" set svnpath=%~dp0\svn\bin
152
if "%svnpath%"=="0" if exist "%exedir%\svn\bin\svn.exe" set svnpath=%exedir%\svn\bin
154
if "%svnpath%"=="0" if exist "%exedir%\svn\bin\svn.exe" set svnpath=%exedir%\svn\bin
153
if "%svnpath%"=="0" if exist "%ProgramFiles%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles%\SlikSvn\bin
155
if "%svnpath%"=="0" if exist "%ProgramFiles%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles%\SlikSvn\bin
154
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\SlikSvn\bin
156
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\SlikSvn\bin
155
if "%svnpath%"=="0" if exist "%ProgramFiles%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles%\Subversion\bin
157
if "%svnpath%"=="0" if exist "%ProgramFiles%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles%\Subversion\bin
156
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\Subversion\bin
158
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\Subversion\bin
157
if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin
159
if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin
158
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin
160
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin
159
if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S
161
if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S
160
 
162
 
161
chdir /d "%addondir%"
163
chdir /d "%addondir%"
162
if not "%svnpath%"=="0" if exist ".svn" "%svnpath%\svn.exe" update
164
if not "%svnpath%"=="0" if exist ".svn" "%svnpath%\svn.exe" update
163
chdir /d "%addonhrpdir%"
165
chdir /d "%addonhrpdir%"
164
if not "%svnpath%"=="0" if exist ".svn" "%svnpath%\svn.exe" update
166
if not "%svnpath%"=="0" if exist ".svn" "%svnpath%\svn.exe" update
165
 
167
 
166
goto end
168
goto end
167
 
169
 
168
:novacagrp
170
:novacagrp
169
echo.
171
echo.
170
echo Error: You don't have VACATION.GRP in your directory.
172
echo Error: You don't have VACATION.GRP in your directory.
171
echo.
173
echo.
172
goto ssicheck
174
goto ssicheck
173
:retry
175
:retry
174
echo.
176
echo.
175
set cddrive=
177
set cddrive=
176
set /p cddrive=What is the drive letter that your Caribbean CD is in?
178
set /p cddrive=What is the drive letter that your Caribbean CD is in?
177
echo.
179
echo.
178
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
180
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
179
if '%cddrive%'=='' goto cdno
181
if '%cddrive%'=='' goto cdno
180
if not exist %cddrive%:\ goto cdno
182
if not exist %cddrive%:\ goto cdno
181
if not exist %cddrive%:\* goto cdno
183
if not exist %cddrive%:\* goto cdno
182
if not exist %cddrive%:\VACATION\VACA13.SSI goto cdw
184
if not exist %cddrive%:\VACATION\VACA13.SSI goto cdw
183
copy %cddrive%:\VACATION\*.SSI .\
185
copy %cddrive%:\VACATION\*.SSI .\
184
echo.
186
echo.
185
type DVINTRO.TXT
187
type DVINTRO.TXT
186
echo.
188
echo.
187
pause
189
pause
188
goto ssicheck
190
goto ssicheck
189
 
191
 
190
:cdno
192
:cdno
191
echo '%cddrive%' is not valid.  Please try again.
193
echo '%cddrive%' is not valid.  Please try again.
192
goto retry
194
goto retry
193
 
195
 
194
:cdw
196
:cdw
195
echo '%cddrive%' is not the correct disc.  Please try again.
197
echo '%cddrive%' is not the correct disc.  Please try again.
196
goto retry
198
goto retry
197
 
199
 
198
:ssicheck
200
:ssicheck
199
if exist VACA15.SSI goto ssi1
201
if exist VACA15.SSI goto ssi1
200
if exist VACAPP.SSI goto ssi2
202
if exist VACAPP.SSI goto ssi2
201
if exist VACA13.SSI goto ssi3
203
if exist VACA13.SSI goto ssi3
202
echo You don't have the SSI files in your directory.
204
echo You don't have the SSI files in your directory.
203
goto retry
205
goto retry
204
 
206
 
205
:ssi1
207
:ssi1
206
echo You do have the Caribbean SSI file in this directory, but it has not been
208
echo You do have the Caribbean SSI file in this directory, but it has not been
207
echo extracted.  It will now be unpacked.
209
echo extracted.  It will now be unpacked.
208
echo.
210
echo.
209
pause
211
pause
210
mkdir vaca15ssi
212
mkdir vaca15ssi
211
chdir vaca15ssi
213
chdir vaca15ssi
212
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
214
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
213
"%addondir%\utils\windows\win32\unpackssi.exe" ..\VACA15.SSI
215
"%addondir%\utils\windows\win32\unpackssi.exe" ..\VACA15.SSI
214
if exist VACATION.PRG move /y VACATION.PRG ..\vacation.grp
216
if exist VACATION.PRG move /y VACATION.PRG ..\vacation.grp
215
chdir ..
217
chdir ..
216
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
218
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
217
if exist vacation.grp (
219
if exist vacation.grp (
218
rmdir /s /q vaca15ssi
220
rmdir /s /q vaca15ssi
219
goto novacagrp_done
221
goto novacagrp_done
220
)
222
)
221
if not exist vacation.grp (
223
if not exist vacation.grp (
222
echo Installation Error!
224
echo Installation Error!
223
echo Contact Hendricks266 for help.
225
echo Contact Hendricks266 for help.
224
echo.
226
echo.
225
pause
227
pause
226
goto end
228
goto end
227
)
229
)
228
 
230
 
229
:ssi2
231
:ssi2
230
echo You do have the Caribbean SSI file in this directory, but it has not been
232
echo You do have the Caribbean SSI file in this directory, but it has not been
231
echo extracted.  It will now be unpacked.
233
echo extracted.  It will now be unpacked.
232
echo.
234
echo.
233
pause
235
pause
234
mkdir vacappssi
236
mkdir vacappssi
235
chdir vacappssi
237
chdir vacappssi
236
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
238
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
237
"%addondir%\utils\windows\win32\unpackssi.exe" ..\VACAPP.SSI
239
"%addondir%\utils\windows\win32\unpackssi.exe" ..\VACAPP.SSI
238
if exist VACATION.PRG move /y VACATION.PRG ..\vacation.grp
240
if exist VACATION.PRG move /y VACATION.PRG ..\vacation.grp
239
chdir ..
241
chdir ..
240
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
242
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
241
if exist vacation.grp (
243
if exist vacation.grp (
242
rmdir /s /q vacappssi
244
rmdir /s /q vacappssi
243
goto novacagrp_done
245
goto novacagrp_done
244
)
246
)
245
if not exist vacation.grp (
247
if not exist vacation.grp (
246
echo Installation Error!
248
echo Installation Error!
247
echo Contact Hendricks266 for help.
249
echo Contact Hendricks266 for help.
248
echo.
250
echo.
249
pause
251
pause
250
goto end
252
goto end
251
)
253
)
252
 
254
 
253
:ssi3
255
:ssi3
254
echo You do have the Caribbean SSI file in this directory, but it has not been
256
echo You do have the Caribbean SSI file in this directory, but it has not been
255
echo extracted.  It will now be unpacked.
257
echo extracted.  It will now be unpacked.
256
echo.
258
echo.
257
pause
259
pause
258
mkdir vaca13ssi
260
mkdir vaca13ssi
259
chdir vaca13ssi
261
chdir vaca13ssi
260
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
262
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
261
"%addondir%\utils\windows\win32\unpackssi.exe" ..\VACA13.SSI
263
"%addondir%\utils\windows\win32\unpackssi.exe" ..\VACA13.SSI
262
ren *.TRA *.ART
264
ren *.TRA *.ART
263
ren *.PCS *.SCP
265
ren *.PCS *.SCP
264
ren VACA1.MAP vaca1.map
266
ren VACA1.MAP vaca1.map
265
ren VACA2.MAP vaca2.map
267
ren VACA2.MAP vaca2.map
266
ren VACA3.MAP vaca3.map
268
ren VACA3.MAP vaca3.map
267
ren VACA4.MAP vaca4.map
269
ren VACA4.MAP vaca4.map
268
ren VACA5.MAP vaca5.map
270
ren VACA5.MAP vaca5.map
269
ren VACA6.MAP vaca6.map
271
ren VACA6.MAP vaca6.map
270
ren VACA7.MAP vaca7.map
272
ren VACA7.MAP vaca7.map
271
ren VACASL.MAP vacasl.map
273
ren VACASL.MAP vacasl.map
272
ren VACADM1.MAP vacadm1.map
274
ren VACADM1.MAP vacadm1.map
273
ren VACADM2.MAP vacadm2.map
275
ren VACADM2.MAP vacadm2.map
274
ren VACADM3.MAP vacadm3.map
276
ren VACADM3.MAP vacadm3.map
275
ren VACADM4.MAP vacadm4.map
277
ren VACADM4.MAP vacadm4.map
276
ren *.NOC *.CON
278
ren *.NOC *.CON
277
ren *.DIM *.MID
279
ren *.DIM *.MID
278
ren *.MNA *.ANM
280
ren *.MNA *.ANM
279
ren *.COV *.VOC
281
ren *.COV *.VOC
280
ren *.OMD *.DMO
282
ren *.OMD *.DMO
281
ren GAME.CON VACAGAME.CON
283
ren GAME.CON VACAGAME.CON
282
ren USER.CON VACAUSER.CON
284
ren USER.CON VACAUSER.CON
283
ren DEFS.CON VACADEFS.CON
285
ren DEFS.CON VACADEFS.CON
284
ren DUKETEAM.ANM RADLOGO.ANM
286
ren DUKETEAM.ANM RADLOGO.ANM
285
"%addondir%\utils\windows\win32\kgroup.exe" vacation.grp *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE
287
"%addondir%\utils\windows\win32\kgroup.exe" vacation.grp *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE
286
if exist vacation.grp move /y vacation.grp ..\vacation.grp
288
if exist vacation.grp move /y vacation.grp ..\vacation.grp
287
move /y *.map ..\
289
move /y *.map ..\
288
chdir ..
290
chdir ..
289
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
291
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
290
if exist vacation.grp (
292
if exist vacation.grp (
291
rmdir /s /q vaca13ssi
293
rmdir /s /q vaca13ssi
292
goto novacagrp_done
294
goto novacagrp_done
293
)
295
)
294
if not exist vacation.grp (
296
if not exist vacation.grp (
295
echo Installation Error!
297
echo Installation Error!
296
echo Contact Hendricks266 for help.
298
echo Contact Hendricks266 for help.
297
echo.
299
echo.
298
pause
300
pause
299
goto end
301
goto end
300
)
302
)
301
 
303
 
302
:novacagrp_done
304
:novacagrp_done
303
call :grpchecksum
305
call :grpchecksum
304
call :grpchecksum_results
306
call :grpchecksum_results
305
goto novacagrp_return
307
goto novacagrp_return
306
 
308
 
307
:grpchecksum
309
:grpchecksum
308
if not exist "%addondir%\utils\windows\win32\sha1sum.exe" (
310
if not exist "%addondir%\utils\windows\win32\sha1sum.exe" (
309
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
311
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
310
goto :eof
312
goto :eof
311
)
313
)
312
echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
314
echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
313
if "%ERRORLEVEL%"=="0" set version=full && goto :eof
315
if "%ERRORLEVEL%"=="0" set version=full && goto :eof
314
if "%ERRORLEVEL%"=="1" set version=unknown
316
if "%ERRORLEVEL%"=="1" set version=unknown
315
goto :eof
317
goto :eof
316
 
318
 
317
:grpchecksum_results
319
:grpchecksum_results
318
if "%version%"=="full" echo VACATION.GRP checksum verified.
320
if "%version%"=="full" echo VACATION.GRP checksum verified.
319
if "%version%"=="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy.
321
if "%version%"=="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy.
320
echo.
322
echo.
321
goto :eof
323
goto :eof
322
 
324
 
323
 
325
 
324
:mapextract
326
:mapextract
325
echo Extracted maps not found or patched. Proceeding to installation.
327
echo Extracted maps not found or patched. Proceeding to installation.
326
goto extract
328
goto extract
327
 
329
 
328
:updateextract
330
:updateextract
329
echo Map patch update required. Proceeding to installation.
331
echo Map patch update required. Proceeding to installation.
330
goto extract
332
goto extract
331
 
333
 
332
:extract
334
:extract
333
echo.
335
echo.
334
echo                                ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
336
echo                                ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
335
echo                                º Installation º
337
echo                                º Installation º
336
echo                                ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
338
echo                                ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
337
echo.
339
echo.
338
call :grpchecksum
340
call :grpchecksum
339
call :grpchecksum_results
341
call :grpchecksum_results
340
if not exist vaca1.patch goto nopatch
342
if not exist vaca1.patch goto nopatch
341
if not exist vaca2.patch goto nopatch
343
if not exist vaca2.patch goto nopatch
342
if not exist vaca3.patch goto nopatch
344
if not exist vaca3.patch goto nopatch
343
if not exist vaca4.patch goto nopatch
345
if not exist vaca4.patch goto nopatch
344
if not exist vaca5.patch goto nopatch
346
if not exist vaca5.patch goto nopatch
345
if not exist vaca6.patch goto nopatch
347
if not exist vaca6.patch goto nopatch
346
if not exist vaca7.patch goto nopatch
348
if not exist vaca7.patch goto nopatch
347
if not exist vacasl.patch goto nopatch
349
if not exist vacasl.patch goto nopatch
348
if not exist vacadm1.patch goto nopatch
350
if not exist vacadm1.patch goto nopatch
349
if not exist vacadm2.patch goto nopatch
351
if not exist vacadm2.patch goto nopatch
350
if not exist vacadm3.patch goto nopatch
352
if not exist vacadm3.patch goto nopatch
351
if not exist vacadm4.patch goto nopatch
353
if not exist vacadm4.patch goto nopatch
352
mkdir vaca_preserve
354
mkdir vaca_preserve
353
if exist vaca*.map move /y vaca*.map vaca_preserve\
355
if exist vaca*.map move /y vaca*.map vaca_preserve\
354
if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\
356
if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\
355
"%addondir%\utils\windows\win32\kextract.exe" vacation.grp VACA*.MAP
357
"%addondir%\utils\windows\win32\kextract.exe" vacation.grp VACA*.MAP
356
ren VACA1.MAP vaca1.map
358
ren VACA1.MAP vaca1.map
357
ren VACA2.MAP vaca2.map
359
ren VACA2.MAP vaca2.map
358
ren VACA3.MAP vaca3.map
360
ren VACA3.MAP vaca3.map
359
ren VACA4.MAP vaca4.map
361
ren VACA4.MAP vaca4.map
360
ren VACA5.MAP vaca5.map
362
ren VACA5.MAP vaca5.map
361
ren VACA6.MAP vaca6.map
363
ren VACA6.MAP vaca6.map
362
ren VACA7.MAP vaca7.map
364
ren VACA7.MAP vaca7.map
363
ren VACASL.MAP vacasl.map
365
ren VACASL.MAP vacasl.map
364
ren VACADM1.MAP vacadm1.map
366
ren VACADM1.MAP vacadm1.map
365
ren VACADM2.MAP vacadm2.map
367
ren VACADM2.MAP vacadm2.map
366
ren VACADM3.MAP vacadm3.map
368
ren VACADM3.MAP vacadm3.map
367
ren VACADM4.MAP vacadm4.map
369
ren VACADM4.MAP vacadm4.map
368
if exist vacapatch*.h266 del /f /q vacapatch*.h266
370
if exist vacapatch*.h266 del /f /q vacapatch*.h266
369
if exist vacaflag*.h266 del /f /q vacaflag*.h266
371
if exist vacaflag*.h266 del /f /q vacaflag*.h266
370
echo.
372
echo.
371
echo Map patching will now begin.
373
echo Map patching will now begin.
372
echo.
374
echo.
373
pause
375
pause
374
echo
376
echo
375
"%addondir%\utils\windows\win32\bspatch.exe" vaca1.map vaca1.map vaca1.patch
377
"%addondir%\utils\windows\win32\bspatch.exe" vaca1.map vaca1.map vaca1.patch
376
"%addondir%\utils\windows\win32\bspatch.exe" vaca2.map vaca2.map vaca2.patch
378
"%addondir%\utils\windows\win32\bspatch.exe" vaca2.map vaca2.map vaca2.patch
377
"%addondir%\utils\windows\win32\bspatch.exe" vaca3.map vaca3.map vaca3.patch
379
"%addondir%\utils\windows\win32\bspatch.exe" vaca3.map vaca3.map vaca3.patch
378
"%addondir%\utils\windows\win32\bspatch.exe" vaca4.map vaca4.map vaca4.patch
380
"%addondir%\utils\windows\win32\bspatch.exe" vaca4.map vaca4.map vaca4.patch
379
"%addondir%\utils\windows\win32\bspatch.exe" vaca5.map vaca5.map vaca5.patch
381
"%addondir%\utils\windows\win32\bspatch.exe" vaca5.map vaca5.map vaca5.patch
380
"%addondir%\utils\windows\win32\bspatch.exe" vaca6.map vaca6.map vaca6.patch
382
"%addondir%\utils\windows\win32\bspatch.exe" vaca6.map vaca6.map vaca6.patch
381
"%addondir%\utils\windows\win32\bspatch.exe" vaca7.map vaca7.map vaca7.patch
383
"%addondir%\utils\windows\win32\bspatch.exe" vaca7.map vaca7.map vaca7.patch
382
"%addondir%\utils\windows\win32\bspatch.exe" vacasl.map vacasl.map vacasl.patch
384
"%addondir%\utils\windows\win32\bspatch.exe" vacasl.map vacasl.map vacasl.patch
383
"%addondir%\utils\windows\win32\bspatch.exe" vacadm1.map vacadm1.map vacadm1.patch
385
"%addondir%\utils\windows\win32\bspatch.exe" vacadm1.map vacadm1.map vacadm1.patch
384
"%addondir%\utils\windows\win32\bspatch.exe" vacadm2.map vacadm2.map vacadm2.patch
386
"%addondir%\utils\windows\win32\bspatch.exe" vacadm2.map vacadm2.map vacadm2.patch
385
"%addondir%\utils\windows\win32\bspatch.exe" vacadm3.map vacadm3.map vacadm3.patch
387
"%addondir%\utils\windows\win32\bspatch.exe" vacadm3.map vacadm3.map vacadm3.patch
386
"%addondir%\utils\windows\win32\bspatch.exe" vacadm4.map vacadm4.map vacadm4.patch
388
"%addondir%\utils\windows\win32\bspatch.exe" vacadm4.map vacadm4.map vacadm4.patch
387
if exist vacapatch*.h266 del /f /q vacapatch*.h266
389
if exist vacapatch*.h266 del /f /q vacapatch*.h266
388
if exist vacaflag*.h266 del /f /q vacaflag*.h266
390
if exist vacaflag*.h266 del /f /q vacaflag*.h266
389
echo Do not delete this file^! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag_%addonver%.h266
391
echo Do not delete this file^! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag_%addonver%.h266
390
attrib +r vacaflag_%addonver%.h266
392
attrib +r vacaflag_%addonver%.h266
391
echo.
393
echo.
392
echo Patching complete^!
394
echo Patching complete^!
393
:scanning
395
:scanning
394
chdir "%exedir%"
396
chdir "%exedir%"
395
echo.
397
echo.
396
echo Scanning directory for potential problems.
398
echo Scanning directory for potential problems.
397
if exist vaca1.mhk goto mhkfound
399
if exist vaca1.mhk goto mhkfound
398
if exist vaca2.mhk goto mhkfound
400
if exist vaca2.mhk goto mhkfound
399
if exist vaca3.mhk goto mhkfound
401
if exist vaca3.mhk goto mhkfound
400
if exist vaca4.mhk goto mhkfound
402
if exist vaca4.mhk goto mhkfound
401
if exist vaca5.mhk goto mhkfound
403
if exist vaca5.mhk goto mhkfound
402
if exist vaca6.mhk goto mhkfound
404
if exist vaca6.mhk goto mhkfound
403
if exist vaca7.mhk goto mhkfound
405
if exist vaca7.mhk goto mhkfound
404
if exist vacasl.mhk goto mhkfound
406
if exist vacasl.mhk goto mhkfound
405
if exist vacadm1.mhk goto mhkfound
407
if exist vacadm1.mhk goto mhkfound
406
if exist vacadm2.mhk goto mhkfound
408
if exist vacadm2.mhk goto mhkfound
407
if exist vacadm3.mhk goto mhkfound
409
if exist vacadm3.mhk goto mhkfound
408
if exist vacadm4.mhk goto mhkfound
410
if exist vacadm4.mhk goto mhkfound
409
if exist dcava0r.mhk goto mhkfound
411
if exist dcava0r.mhk goto mhkfound
410
if exist dcava1.mhk goto mhkfound
412
if exist dcava1.mhk goto mhkfound
411
if exist _vacazoo.mhk goto mhkfound
413
if exist _vacazoo.mhk goto mhkfound
412
:mhkfound_done
414
:mhkfound_done
413
if exist TILES000.ART goto artfound
415
if exist TILES000.ART goto artfound
414
if exist TILES003.ART goto artfound
416
if exist TILES003.ART goto artfound
415
if exist TILES005.ART goto artfound
417
if exist TILES005.ART goto artfound
416
if exist TILES006.ART goto artfound
418
if exist TILES006.ART goto artfound
417
if exist TILES007.ART goto artfound
419
if exist TILES007.ART goto artfound
418
if exist TILES008.ART goto artfound
420
if exist TILES008.ART goto artfound
419
if exist TILES009.ART goto artfound
421
if exist TILES009.ART goto artfound
420
if exist TILES010.ART goto artfound
422
if exist TILES010.ART goto artfound
421
if exist TILES012.ART goto artfound
423
if exist TILES012.ART goto artfound
422
if exist TILES014.ART goto artfound
424
if exist TILES014.ART goto artfound
423
:artfound_done
425
:artfound_done
424
call :checksum 3d5092d053b23a823c1fa0ad0b0bdbc33b2a09bb DEFS.CON "VACA15 file detected and neutralized:"
426
call :checksum 3d5092d053b23a823c1fa0ad0b0bdbc33b2a09bb DEFS.CON "VACA15 file detected and neutralized:"
425
call :checksum 807aaf21edd6e315bcb76dd54450f28616f84609 GAME.CON "VACA15 file detected and neutralized:"
427
call :checksum 807aaf21edd6e315bcb76dd54450f28616f84609 GAME.CON "VACA15 file detected and neutralized:"
426
call :checksum 6d29c3b19d26ff84edb104e68120edc5150066dd USER.CON "VACA15 file detected and neutralized:"
428
call :checksum 6d29c3b19d26ff84edb104e68120edc5150066dd USER.CON "VACA15 file detected and neutralized:"
427
call :checksum 856374f3b42a1f2e355730ffc70497a3e6a49585 BEACHBAB.CON "VACA15 file detected and neutralized:"
429
call :checksum 856374f3b42a1f2e355730ffc70497a3e6a49585 BEACHBAB.CON "VACA15 file detected and neutralized:"
428
call :checksum efb8168c6351d4b5e2c108ebc8189d4aba85ef35 BEACHBAL.CON "VACA15 file detected and neutralized:"
430
call :checksum efb8168c6351d4b5e2c108ebc8189d4aba85ef35 BEACHBAL.CON "VACA15 file detected and neutralized:"
429
call :checksum a947947409a76ea7e6c46076a8cfbaa76f8b0172 BEACHBTH.CON "VACA15 file detected and neutralized:"
431
call :checksum a947947409a76ea7e6c46076a8cfbaa76f8b0172 BEACHBTH.CON "VACA15 file detected and neutralized:"
430
call :checksum 3c11b9d40a204849c2d7d6c10984397f3b6a444c DRAGON.CON "VACA15 file detected and neutralized:"
432
call :checksum 3c11b9d40a204849c2d7d6c10984397f3b6a444c DRAGON.CON "VACA15 file detected and neutralized:"
431
call :checksum 1417476e2cd8a3aef85dd9c1f36308f2123d8b54 SEAGULL.CON "VACA15 file detected and neutralized:"
433
call :checksum 1417476e2cd8a3aef85dd9c1f36308f2123d8b54 SEAGULL.CON "VACA15 file detected and neutralized:"
432
call :checksum 0c1314dcd983b232f6afb941942e1ccbd7331ebb SOUNDS.CON "VACA15 file detected and neutralized:"
434
call :checksum 0c1314dcd983b232f6afb941942e1ccbd7331ebb SOUNDS.CON "VACA15 file detected and neutralized:"
433
call :checksum 032a25b2cd98e19a5ff9a859ac27c91a4abfcb46 USER.CON "VACAPP file detected and neutralized:"
435
call :checksum 032a25b2cd98e19a5ff9a859ac27c91a4abfcb46 USER.CON "VACAPP file detected and neutralized:"
434
call :checksum 34ed9d27095d547e20fb9db87957d17ca9cb2046 DEFS.CON "VACA13 file detected and neutralized:"
436
call :checksum 34ed9d27095d547e20fb9db87957d17ca9cb2046 DEFS.CON "VACA13 file detected and neutralized:"
435
call :checksum 3480ad8caca150b7c4678a42a606c0d9941db631 GAME.CON "VACA13 file detected and neutralized:"
437
call :checksum 3480ad8caca150b7c4678a42a606c0d9941db631 GAME.CON "VACA13 file detected and neutralized:"
436
call :checksum 74feb12ecfa57cb4c8e151593bff89e06b1ae11e USER.CON "VACA13 file detected and neutralized:"
438
call :checksum 74feb12ecfa57cb4c8e151593bff89e06b1ae11e USER.CON "VACA13 file detected and neutralized:"
437
call :checksum 840d701ca5e1e590ff03510eb5d63880f3e5be79 BEACHBAB.CON "VACA13 file detected and neutralized:"
439
call :checksum 840d701ca5e1e590ff03510eb5d63880f3e5be79 BEACHBAB.CON "VACA13 file detected and neutralized:"
438
call :checksum f4c7080384dde2f298e807b1bc9901e6e61ac617 BEACHBAL.CON "VACA13 file detected and neutralized:"
440
call :checksum f4c7080384dde2f298e807b1bc9901e6e61ac617 BEACHBAL.CON "VACA13 file detected and neutralized:"
439
call :checksum 9965ae6e6b4337d06e1df22b41592b4cdfb69b2f BEACHBTH.CON "VACA13 file detected and neutralized:"
441
call :checksum 9965ae6e6b4337d06e1df22b41592b4cdfb69b2f BEACHBTH.CON "VACA13 file detected and neutralized:"
440
call :checksum d56a1ff075671d0919540086a062b37290113621 DRAGON.CON "VACA13 file detected and neutralized:"
442
call :checksum d56a1ff075671d0919540086a062b37290113621 DRAGON.CON "VACA13 file detected and neutralized:"
441
call :checksum 06be81473bad004296324b2d63f4730ac2160aa6 SEAGULL.CON "VACA13 file detected and neutralized:"
443
call :checksum 06be81473bad004296324b2d63f4730ac2160aa6 SEAGULL.CON "VACA13 file detected and neutralized:"
442
call :checksum ef149cd90764bae685d9fab83eb2fe719486dce3 SOUNDS.CON "VACA13 file detected and neutralized:"
444
call :checksum ef149cd90764bae685d9fab83eb2fe719486dce3 SOUNDS.CON "VACA13 file detected and neutralized:"
443
if exist Vacation.con goto confound
445
if exist Vacation.con goto confound
444
if exist VacaEDuke.con goto confound
446
if exist VacaEDuke.con goto confound
445
if exist VacaDefs.con goto confound
447
if exist VacaDefs.con goto confound
446
if exist VacaUser.con goto confound
448
if exist VacaUser.con goto confound
447
if exist VacaDP.con goto confound
449
if exist VacaDP.con goto confound
448
if exist VacaDPCode.con goto confound
450
if exist VacaDPCode.con goto confound
449
if exist VacaDPXXX.con goto confound
451
if exist VacaDPXXX.con goto confound
450
if exist VSounds.con goto confound
452
if exist VSounds.con goto confound
451
if exist VBeachBabe.con goto confound
453
if exist VBeachBabe.con goto confound
452
if exist VBeachBall.con goto confound
454
if exist VBeachBall.con goto confound
453
if exist VBeachBather.con goto confound
455
if exist VBeachBather.con goto confound
454
if exist VDragon.con goto confound
456
if exist VDragon.con goto confound
455
if exist VSeagull.con goto confound
457
if exist VSeagull.con goto confound
456
:confound_done
458
:confound_done
457
chdir /d "%exedir%"
459
chdir /d "%exedir%"
458
if not exist GAME.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP GAME.CON
460
if not exist GAME.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP GAME.CON
459
if not exist DEFS.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP DEFS.CON
461
if not exist DEFS.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP DEFS.CON
460
if not exist USER.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP USER.CON
462
if not exist USER.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP USER.CON
461
chdir /d "%addondir%"
463
chdir /d "%addondir%"
462
echo.
464
echo.
463
pause
465
pause
464
goto restart
466
goto restart
465
 
467
 
466
:checksum
468
:checksum
467
if not exist "%addondir%\utils\windows\win32\sha1sum.exe" (
469
if not exist "%addondir%\utils\windows\win32\sha1sum.exe" (
468
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
470
echo "%addondir%\utils\windows\win32\sha1sum.exe" not found.
469
goto :eof
471
goto :eof
470
)
472
)
471
if not exist "%~2" goto :eof
473
if not exist "%~2" goto :eof
472
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
474
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
473
if "%ERRORLEVEL%"=="0" (
475
if "%ERRORLEVEL%"=="0" (
474
ren "%~2" "VacaOld_%addonver%_%~nx2"
476
ren "%~2" "VacaOld_%addonver%_%~nx2"
475
echo %~3 %~nx2
477
echo %~3 %~nx2
476
)
478
)
477
goto :eof
479
goto :eof
478
 
480
 
479
:nopatch
481
:nopatch
480
echo.
482
echo.
481
echo Error: You don't have all the *.patch files in your directory.
483
echo Error: You don't have all the *.patch files in your directory.
482
echo Aborting installation.
484
echo Aborting installation.
483
echo Map patching is required for Vaca+ to function correctly.
485
echo Map patching is required for Vaca+ to function correctly.
484
echo.
486
echo.
485
pause
487
pause
486
goto end
488
goto end
487
 
489
 
488
:mhkfound
490
:mhkfound
489
echo.
491
echo.
490
echo Problematic .mhk files have been found in your directory.
492
echo Problematic .mhk files have been found in your directory.
491
echo Unless you have knowingly made a modification to Vaca's map hacks,
493
echo Unless you have knowingly made a modification to Vaca's map hacks,
492
echo the presence of these files in your %exeproper% directory will
494
echo the presence of these files in your %exeproper% directory will
493
echo cause Vaca+ to function incorrectly.
495
echo cause Vaca+ to function incorrectly.
494
echo.
496
echo.
495
echo vaca1.mhk
497
echo vaca1.mhk
496
echo vaca2.mhk
498
echo vaca2.mhk
497
echo vaca3.mhk
499
echo vaca3.mhk
498
echo vaca4.mhk
500
echo vaca4.mhk
499
echo vaca5.mhk
501
echo vaca5.mhk
500
echo vaca6.mhk
502
echo vaca6.mhk
501
echo vaca7.mhk
503
echo vaca7.mhk
502
echo vacasl.mhk
504
echo vacasl.mhk
503
echo vacadm1.mhk
505
echo vacadm1.mhk
504
echo vacadm2.mhk
506
echo vacadm2.mhk
505
echo vacadm3.mhk
507
echo vacadm3.mhk
506
echo vacadm4.mhk
508
echo vacadm4.mhk
507
echo dcava0r.mhk
509
echo dcava0r.mhk
508
echo dcava1.mhk
510
echo dcava1.mhk
509
echo _vacazoo.mhk
511
echo _vacazoo.mhk
510
goto mhkfound_done
512
goto mhkfound_done
511
 
513
 
512
:artfound
514
:artfound
513
echo.
515
echo.
514
echo Problematic .art files have been found in your directory.
516
echo Problematic .art files have been found in your directory.
515
echo Unless you have knowingly made a modification to Vaca's art,
517
echo Unless you have knowingly made a modification to Vaca's art,
516
echo the presence of these files in your %exeproper% directory will
518
echo the presence of these files in your %exeproper% directory will
517
echo cause Vaca+ to function incorrectly.
519
echo cause Vaca+ to function incorrectly.
518
echo.
520
echo.
519
echo TILES000.ART
521
echo TILES000.ART
520
echo TILES003.ART
522
echo TILES003.ART
521
echo TILES005.ART
523
echo TILES005.ART
522
echo TILES006.ART
524
echo TILES006.ART
523
echo TILES007.ART
525
echo TILES007.ART
524
echo TILES008.ART
526
echo TILES008.ART
525
echo TILES009.ART
527
echo TILES009.ART
526
echo TILES010.ART
528
echo TILES010.ART
527
echo TILES012.ART
529
echo TILES012.ART
528
echo TILES014.ART
530
echo TILES014.ART
529
goto artfound_done
531
goto artfound_done
530
 
532
 
531
:confound
533
:confound
532
echo.
534
echo.
533
echo Problematic .con files have been found in your directory.
535
echo Problematic .con files have been found in your directory.
534
echo Unless you have knowingly made a modification to Vaca's programming,
536
echo Unless you have knowingly made a modification to Vaca's programming,
535
echo the presence of these files in your %exeproper% directory will
537
echo the presence of these files in your %exeproper% directory will
536
echo cause Vaca+ to function incorrectly.
538
echo cause Vaca+ to function incorrectly.
537
echo.
539
echo.
538
echo Vacation.con
540
echo Vacation.con
539
echo VacaEDuke.con
541
echo VacaEDuke.con
540
echo VacaDefs.con
542
echo VacaDefs.con
541
echo VacaUser.con
543
echo VacaUser.con
542
echo VacaDP.con
544
echo VacaDP.con
543
echo VacaDPCode.con
545
echo VacaDPCode.con
544
echo VacaDPXXX.con
546
echo VacaDPXXX.con
545
echo VSounds.con
547
echo VSounds.con
546
echo VBeachBabe.con
548
echo VBeachBabe.con
547
echo VBeachBall.con
549
echo VBeachBall.con
548
echo VBeachBather.con
550
echo VBeachBather.con
549
echo VDragon.con
551
echo VDragon.con
550
echo VSeagull.con
552
echo VSeagull.con
551
echo.
553
echo.
552
echo IF THESE ARE THE ORIGINAL CARIBBEAN CON FILES, OR THEY COME FROM
554
echo IF THESE ARE THE ORIGINAL CARIBBEAN CON FILES, OR THEY COME FROM
553
echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
555
echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
554
echo IMMEDIATELY^!
556
echo IMMEDIATELY^!
555
echo Vaca+ uses modified .con files to fix programming errors created by
557
echo Vaca+ uses modified .con files to fix programming errors created by
556
echo the original programmers. Due to improvements made to the levels,
558
echo the original programmers. Due to improvements made to the levels,
557
echo Vaca+ will have major errors if the included .con files are not used.
559
echo Vaca+ will have major errors if the included .con files are not used.
558
goto confound_done
560
goto confound_done
559
 
561
 
560
:execheck
562
:execheck
561
if exist %exename%.bat goto execheck_done
563
if exist %exename%.bat goto execheck_done
562
if exist %exename%.exe goto recheck
564
if exist %exename%.exe goto recheck
563
set prevdir=%cd%
565
set prevdir=%cd%
564
if not "%cd%"=="%cd:~0,3%" cd ..
566
if not "%cd%"=="%cd:~0,3%" cd ..
565
if not "%cd%"=="%prevdir%" goto execheck
567
if not "%cd%"=="%prevdir%" goto execheck
566
echo Warning: You don't have %exeproper% in your directory.
568
echo Warning: You don't have %exeproper% in your directory.
567
chdir /d "%~dp0"
569
chdir /d "%~dp0"
568
goto execheck_done
570
goto execheck_done
569
 
571
 
570
:nodir
572
:nodir
571
echo.
573
echo.
572
echo Error: "vaca_plus" data directory not found.
574
echo Error: "vaca_plus" data directory not found.
573
echo Aborting launch.
575
echo Aborting launch.
574
echo.
576
echo.
575
pause
577
pause
576
goto end
578
goto end
577
 
579
 
578
:end
580
:end
579
echo.
581
echo.
580
popd
582
popd
581
@title %ComSpec%
583
@title %ComSpec%
582
@color 07
584
@color 07
583
 
585