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