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