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