Subversion Repositories nw_plus

Rev

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

Rev 24 Rev 25
1
@echo off
1
@echo off
2
@color 0C
2
@color 0C
3
 
3
 
4
:restart
4
:restart
5
title Duke: Nuclear Winter Plus Launcher
5
title Duke: Nuclear Winter Plus Launcher
6
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher
6
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher
7
 
7
 
8
set dir=%cd%
8
set dir=%cd%
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=r003
23
set addonver=r003
24
 
24
 
25
:title
25
:title
26
echo                          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
26
echo                          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
27
echo                          º Duke: Nuclear Winter Plus º
27
echo                          º Duke: Nuclear Winter 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% Simply Silly Software's Duke: Nuclear Winter with the various
32
echo You are %action% Simply Silly Software's Duke: Nuclear Winter with the various
33
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
33
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
34
echo.
34
echo.
35
 
35
 
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 nw_plus\ goto nodir
47
if not exist nw_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 nwinter\ set addonhrpdir=%cd%
50
if exist nwinter\ set addonhrpdir=%cd%
51
:addondircheck
51
:addondircheck
52
 
52
 
53
cd nw_plus
53
cd nw_plus
54
set addondir=%cd%
54
set addondir=%cd%
55
if exist nwinter\ set addonhrpdir=%cd%
55
if exist nwinter\ set addonhrpdir=%cd%
56
if exist nw_plus\ goto addondircheck
56
if exist nw_plus\ goto addondircheck
57
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
57
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
58
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
58
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
59
 
59
 
60
if not exist "%addondir%\NWINTER.GRP" (
60
if not exist "%addondir%\NWINTER.GRP" (
61
if exist "%exedir%\NWINTER.GRP" (
61
if exist "%exedir%\NWINTER.GRP" (
62
move /y "%exedir%\NWINTER.GRP" "%addondir%\"
62
move /y "%exedir%\NWINTER.GRP" "%addondir%\"
63
ren "%addondir%\NWINTER.GRP" nwinter.grp
63
ren "%addondir%\NWINTER.GRP" nwinter.grp
64
) else (
64
) else (
65
goto nonwgrp
65
goto nonwgrp
66
) )
66
) )
67
 
67
 
68
:nonwgrp_done
68
:nonwgrp_done
69
if not exist nwl1.map goto mapextract
69
if not exist nwl1.map goto mapextract
70
if not exist nwl2.map goto mapextract
70
if not exist nwl2.map goto mapextract
71
if not exist nwl3.map goto mapextract
71
if not exist nwl3.map goto mapextract
72
if not exist nwl4.map goto mapextract
72
if not exist nwl4.map goto mapextract
73
if not exist nwl5.map goto mapextract
73
if not exist nwl5.map goto mapextract
74
if not exist nwl6.map goto mapextract
74
if not exist nwl6.map goto mapextract
75
if not exist nwl7.map goto mapextract
75
if not exist nwl7.map goto mapextract
76
if not exist nwl8.map goto mapextract
76
if not exist nwl8.map goto mapextract
77
if not exist nwflag_%addonver%.h266 goto updateextract
77
if not exist nwflag_%addonver%.h266 goto updateextract
78
 
78
 
79
 
79
 
80
 
80
 
81
 
81
 
82
cd "%exedir%"
82
cd "%exedir%"
83
echo.
83
echo.
84
echo To switch your character, open the console (~) and type one of the following:
84
echo To switch your character, open the console (~) and type one of the following:
85
echo Duke: "setvar skin 0".
85
echo Duke: "setvar skin 0".
86
echo Santa: "setvar skin 1".
86
echo Santa: "setvar skin 1".
87
echo.
87
echo.
88
echo.
88
echo.
89
 
89
 
90
:init
90
:init
91
pause
91
pause
92
echo.
92
echo.
93
goto check
93
goto check
94
 
94
 
95
:check
95
:check
96
 
96
 
97
echo.
97
echo.
98
echo Launching Duke Nukem 3D . . .
98
echo Launching Duke Nukem 3D . . .
99
echo Thanks for %action%^!
99
echo Thanks for %action%^!
100
 
100
 
101
if "%editor%"=="1" (
101
if "%editor%"=="1" (
102
type "%exedir%\names.h" > "%exedir%\NWNames.h"
102
type "%exedir%\names.h" > "%exedir%\NWNames.h"
103
echo. >> "%exedir%\NWNames.h"
103
echo. >> "%exedir%\NWNames.h"
104
type "%addondir%\NWNames.def" >> "%exedir%\NWNames.h"
104
type "%addondir%\NWNames.def" >> "%exedir%\NWNames.h"
105
)
105
)
106
 
106
 
107
:arguments
107
:arguments
108
set args=
108
set args=
109
if exist polymer_hrp\ set args=%args% -jpolymer_hrp
109
if exist "%exedir%\polymer_hrp\" set args=%args% -jpolymer_hrp
110
if exist duke3d_voxel.zip set args=%args% -gduke3d_voxel.zip
110
if exist "%exedir%\duke3d_voxel.zip" set args=%args% -gduke3d_voxel.zip
111
if exist duke3d_hrp.zip set args=%args% -gduke3d_hrp.zip
111
if exist "%exedir%\duke3d_hrp.zip" set args=%args% -gduke3d_hrp.zip
112
if exist hrp_update.zip set args=%args% -ghrp_update.zip
112
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
113
if exist maphacks.zip set args=%args% -gmaphacks.zip
113
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
114
if exist eduke32_mus.zip set args=%args% -geduke32_mus.zip
114
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
115
if exist "%addondir%" set args=%args% -j"%addondir:\=/%"
115
if exist "%addondir%" set args=%args% -j"%addondir:\=/%"
116
if exist "%addonhrpdir%" set args=%args% -j"%addonhrpdir:\=/%"
116
if exist "%addonhrpdir%" set args=%args% -j"%addonhrpdir:\=/%"
117
set args=%args% -gnwinter.grp -hnwinter.def -xNWEDuke.con
117
set args=%args% -gnwinter.grp -hnwinter.def -xNWEDuke.con
118
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
118
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
119
if "%dp%"=="1" (
-
 
120
set args=%args% -hnw_dp.def -xNWDP.con
119
if "%dp%"=="1" set args=%args% -hnw_dp.def -xNWDP.con
121
)
-
 
122
if "%xxx%"=="1" (
120
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
123
if exist xxx_lite.zip set args=%args% -gxxx_lite.zip
121
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
124
if exist xxx_pack.zip set args=%args% -gxxx_pack.zip
122
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
-
 
123
if "%xxx%"=="1" if exist "%exedir%\xxx_pack\" set args=%args% -jxxx_pack
125
set args=%args% -hnw_xxx.def
124
if "%xxx%"=="1" set args=%args% -hnw_xxx.def
126
if "%dp%"=="1" (
-
 
127
set args=%args% -hnw_dp_xxx.def -xNWDPXXX.con
125
if "%xxx%"=="1" if "%dp%"=="1" set args=%args% -hnw_dp_xxx.def -xNWDPXXX.con
128
) )
-
 
129
set args=%args% %*
126
set args=%args% %*
130
if "%dp%"=="1" set args=%args% -jDukePlus
127
if "%dp%"=="1" set args=%args% -jDukePlus
131
 
128
 
132
set exe=%exename%
129
set exe=%exename%
133
if "%debug%"=="1" set exe=%exename%.debug
130
if "%debug%"=="1" set exe=%exename%.debug
134
 
131
 
135
if exist %exe%.bat (
132
if exist %exe%.bat (
136
call %exe%.bat %args%
133
call %exe%.bat %args%
137
) else (
134
) else (
138
start %exe%.exe %args%
135
start %exe%.exe %args%
139
)
136
)
140
 
137
 
141
goto end
138
goto end
142
 
139
 
143
:nonwgrp
140
:nonwgrp
144
echo.
141
echo.
145
echo Error: You don't have NWINTER.GRP in your directory.
142
echo Error: You don't have NWINTER.GRP in your directory.
-
 
143
 
-
 
144
 
146
:retry
145
:retry
147
echo.
146
echo.
148
set cddrive=
147
set cddrive=
149
set /p cddrive=What is the drive letter that your Nuclear Winter CD is in?
148
set /p cddrive=What is the drive letter that your Nuclear Winter CD is in?
150
echo.
149
echo.
151
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
150
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
152
if '%cddrive%'=='' goto cdno
151
if '%cddrive%'=='' goto cdno
153
if not exist %cddrive%:\ goto cdno
152
if not exist %cddrive%:\ goto cdno
154
if not exist %cddrive%:\* goto cdno
153
if not exist %cddrive%:\* goto cdno
155
if not exist %cddrive%:\GAMEDATA\NWINTER.GRP goto cdw
154
if not exist %cddrive%:\GAMEDATA\NWINTER.GRP goto cdw
156
copy %cddrive%:GAMEDATA\NWINTER.GRP .\
155
copy %cddrive%:GAMEDATA\NWINTER.GRP .\
157
pause
-
 
158
echo.
156
echo.
159
type NWINTRO.TXT
157
type NWINTRO.TXT
160
echo.
158
echo.
161
pause
159
pause
162
goto nonwgrp_done
160
goto nonwgrp_done
163
 
161
 
164
:cdno
162
:cdno
165
echo '%cddrive%' is not valid.  Please try again.
163
echo '%cddrive%' is not valid.  Please try again.
166
goto retry
164
goto retry
167
 
165
 
168
:cdw
166
:cdw
169
echo '%cddrive%' is not the correct disc.  Please try again.
167
echo '%cddrive%' is not the correct disc.  Please try again.
170
goto retry
168
goto retry
171
 
169
 
172
:mapextract
170
:mapextract
173
echo Extracted maps not found. Proceeding to installation.
171
echo Extracted maps not found. Proceeding to installation.
174
goto extract
172
goto extract
175
 
173
 
176
:updateextract
174
:updateextract
177
echo Map patch update required. Proceeding to installation.
175
echo Map patch update required. Proceeding to installation.
178
goto extract
176
goto extract
179
 
177
 
180
:extract
178
:extract
181
echo.
179
echo.
182
echo                                ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
180
echo                                ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
183
echo                                º Installation º
181
echo                                º Installation º
184
echo                                ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
182
echo                                ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
185
echo.
183
echo.
186
if not exist nwl1.patch goto nopatch
184
if not exist nwl1.patch goto nopatch
187
if not exist nwl2.patch goto nopatch
185
if not exist nwl2.patch goto nopatch
188
if not exist nwl3.patch goto nopatch
186
if not exist nwl3.patch goto nopatch
189
if not exist nwl4.patch goto nopatch
187
if not exist nwl4.patch goto nopatch
190
if not exist nwl5.patch goto nopatch
188
if not exist nwl5.patch goto nopatch
191
if not exist nwl6.patch goto nopatch
189
if not exist nwl6.patch goto nopatch
192
if not exist nwl7.patch goto nopatch
190
if not exist nwl7.patch goto nopatch
193
if not exist nwl8.patch goto nopatch
191
if not exist nwl8.patch goto nopatch
194
md nw_preserve
192
md nw_preserve
195
if exist nwl*.map move /y nwl*.map nw_preserve\
193
if exist nwl*.map move /y nwl*.map nw_preserve\
196
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\
194
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\
197
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP
195
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP
198
ren E2L1.MAP nwl1.map
196
ren E2L1.MAP nwl1.map
199
ren E2L2.MAP nwl2.map
197
ren E2L2.MAP nwl2.map
200
ren E2L3.MAP nwl3.map
198
ren E2L3.MAP nwl3.map
201
ren E2L4.MAP nwl4.map
199
ren E2L4.MAP nwl4.map
202
ren E2L5.MAP nwl5.map
200
ren E2L5.MAP nwl5.map
203
ren E2L6.MAP nwl6.map
201
ren E2L6.MAP nwl6.map
204
ren E2L7.MAP nwl7.map
202
ren E2L7.MAP nwl7.map
205
ren E2L8.MAP nwl8.map
203
ren E2L8.MAP nwl8.map
206
if exist nwpatch*.h266 del /f /q nwpatch*.h266
204
if exist nwpatch*.h266 del /f /q nwpatch*.h266
207
if exist nwflag*.h266 del /f /q nwflag*.h266
205
if exist nwflag*.h266 del /f /q nwflag*.h266
208
echo.
206
echo.
209
echo Map patching will now begin.
207
echo Map patching will now begin.
210
echo.
208
echo.
211
pause
209
pause
212
echo
210
echo
213
utils\windows\win32\bspatch.exe nwl1.map nwl1.map nwl1.patch
211
utils\windows\win32\bspatch.exe nwl1.map nwl1.map nwl1.patch
214
utils\windows\win32\bspatch.exe nwl2.map nwl2.map nwl2.patch
212
utils\windows\win32\bspatch.exe nwl2.map nwl2.map nwl2.patch
215
utils\windows\win32\bspatch.exe nwl3.map nwl3.map nwl3.patch
213
utils\windows\win32\bspatch.exe nwl3.map nwl3.map nwl3.patch
216
utils\windows\win32\bspatch.exe nwl4.map nwl4.map nwl4.patch
214
utils\windows\win32\bspatch.exe nwl4.map nwl4.map nwl4.patch
217
utils\windows\win32\bspatch.exe nwl5.map nwl5.map nwl5.patch
215
utils\windows\win32\bspatch.exe nwl5.map nwl5.map nwl5.patch
218
utils\windows\win32\bspatch.exe nwl6.map nwl6.map nwl6.patch
216
utils\windows\win32\bspatch.exe nwl6.map nwl6.map nwl6.patch
219
utils\windows\win32\bspatch.exe nwl7.map nwl7.map nwl7.patch
217
utils\windows\win32\bspatch.exe nwl7.map nwl7.map nwl7.patch
220
utils\windows\win32\bspatch.exe nwl8.map nwl8.map nwl8.patch
218
utils\windows\win32\bspatch.exe nwl8.map nwl8.map nwl8.patch
221
if exist nwpatch*.h266 del /f /q nwpatch*.h266
219
if exist nwpatch*.h266 del /f /q nwpatch*.h266
222
if exist nwflag*.h266 del /f /q nwflag*.h266
220
if exist nwflag*.h266 del /f /q nwflag*.h266
223
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266
221
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266
224
attrib +r nwflag_%addonver%.h266
222
attrib +r nwflag_%addonver%.h266
225
echo.
223
echo.
226
echo Patching complete^!
224
echo Patching complete^!
227
:scanning
225
:scanning
228
cd "%exedir%"
226
cd "%exedir%"
229
echo.
227
echo.
230
echo Scanning directory for potential problems.
228
echo Scanning directory for potential problems.
231
if exist nwl1.mhk goto mhkfound
229
if exist nwl1.mhk goto mhkfound
232
if exist nwl1demo.mhk goto mhkfound
230
if exist nwl1demo.mhk goto mhkfound
233
if exist nwl2.mhk goto mhkfound
231
if exist nwl2.mhk goto mhkfound
234
if exist nwl3.mhk goto mhkfound
232
if exist nwl3.mhk goto mhkfound
235
if exist nwl4.mhk goto mhkfound
233
if exist nwl4.mhk goto mhkfound
236
if exist nwl5.mhk goto mhkfound
234
if exist nwl5.mhk goto mhkfound
237
if exist nwl6.mhk goto mhkfound
235
if exist nwl6.mhk goto mhkfound
238
if exist nwl7.mhk goto mhkfound
236
if exist nwl7.mhk goto mhkfound
239
if exist nwl8.mhk goto mhkfound
237
if exist nwl8.mhk goto mhkfound
240
if exist _nwzoo.mhk goto mhkfound
238
if exist _nwzoo.mhk goto mhkfound
241
:mhkfound_done
239
:mhkfound_done
242
if exist TILES005.ART goto artfound
240
if exist TILES005.ART goto artfound
243
if exist TILES006.ART goto artfound
241
if exist TILES006.ART goto artfound
244
if exist TILES007.ART goto artfound
242
if exist TILES007.ART goto artfound
245
if exist TILES008.ART goto artfound
243
if exist TILES008.ART goto artfound
246
if exist TILES009.ART goto artfound
244
if exist TILES009.ART goto artfound
247
if exist TILES012.ART goto artfound
245
if exist TILES012.ART goto artfound
248
if exist TILES013.ART goto artfound
246
if exist TILES013.ART goto artfound
249
if exist TILES014.ART goto artfound
247
if exist TILES014.ART goto artfound
250
if exist TILES015.ART goto artfound
248
if exist TILES015.ART goto artfound
251
:artfound_done
249
:artfound_done
252
if exist NWinter.con goto confound
250
if exist NWinter.con goto confound
253
if exist NWActor.con goto confound
251
if exist NWActor.con goto confound
254
if exist NWDefs.con goto confound
252
if exist NWDefs.con goto confound
255
if exist NWDP.con goto confound
253
if exist NWDP.con goto confound
256
if exist NWDPCode.con goto confound
254
if exist NWDPCode.con goto confound
257
if exist NWDPXXX.con goto confound
255
if exist NWDPXXX.con goto confound
258
if exist NWEDuke.con goto confound
256
if exist NWEDuke.con goto confound
259
if exist NWSnow.con goto confound
257
if exist NWSnow.con goto confound
260
if exist NWUser.con goto confound
258
if exist NWUser.con goto confound
261
:confound_done
259
:confound_done
262
echo.
260
echo.
263
pause
261
pause
264
goto restart
262
goto restart
265
 
263
 
266
:nopatch
264
:nopatch
267
echo.
265
echo.
268
echo Error: You don't have all the *.patch files in your directory.
266
echo Error: You don't have all the *.patch files in your directory.
269
echo Aborting installation.
267
echo Aborting installation.
270
echo Map patching is required for NW+ to function correctly.
268
echo Map patching is required for NW+ to function correctly.
271
echo.
269
echo.
272
pause
270
pause
273
goto end
271
goto end
274
 
272
 
275
:mhkfound
273
:mhkfound
276
echo.
274
echo.
277
echo Problematic .mhk files have been found in your directory.
275
echo Problematic .mhk files have been found in your directory.
278
echo Unless you have knowingly made a modification to NW's map hacks,
276
echo Unless you have knowingly made a modification to NW's map hacks,
279
echo the presence of these files in your %exeproper% directory will
277
echo the presence of these files in your %exeproper% directory will
280
echo cause NW+ to function incorrectly.
278
echo cause NW+ to function incorrectly.
281
echo.
279
echo.
282
echo nwl1.mhk
280
echo nwl1.mhk
283
echo nwl1demo.mhk
281
echo nwl1demo.mhk
284
echo nwl2.mhk
282
echo nwl2.mhk
285
echo nwl3.mhk
283
echo nwl3.mhk
286
echo nwl4.mhk
284
echo nwl4.mhk
287
echo nwl5.mhk
285
echo nwl5.mhk
288
echo nwl6.mhk
286
echo nwl6.mhk
289
echo nwl7.mhk
287
echo nwl7.mhk
290
echo nwl8.mhk
288
echo nwl8.mhk
291
echo _nwzoo.mhk
289
echo _nwzoo.mhk
292
goto mhkfound_done
290
goto mhkfound_done
293
 
291
 
294
:artfound
292
:artfound
295
echo.
293
echo.
296
echo Problematic .art files have been found in your directory.
294
echo Problematic .art files have been found in your directory.
297
echo Unless you have knowingly made a modification to NW's art,
295
echo Unless you have knowingly made a modification to NW's art,
298
echo the presence of these files in your %exeproper% directory will
296
echo the presence of these files in your %exeproper% directory will
299
echo cause NW+ to function incorrectly.
297
echo cause NW+ to function incorrectly.
300
echo.
298
echo.
301
echo TILES005.ART
299
echo TILES005.ART
302
echo TILES006.ART
300
echo TILES006.ART
303
echo TILES007.ART
301
echo TILES007.ART
304
echo TILES008.ART
302
echo TILES008.ART
305
echo TILES009.ART
303
echo TILES009.ART
306
echo TILES012.ART
304
echo TILES012.ART
307
echo TILES013.ART
305
echo TILES013.ART
308
echo TILES014.ART
306
echo TILES014.ART
309
echo TILES015.ART
307
echo TILES015.ART
310
goto artfound_done
308
goto artfound_done
311
 
309
 
312
:confound
310
:confound
313
echo.
311
echo.
314
echo Problematic .con files have been found in your directory.
312
echo Problematic .con files have been found in your directory.
315
echo Unless you have knowingly made a modification to NW's programming,
313
echo Unless you have knowingly made a modification to NW's programming,
316
echo the presence of these files in your %exeproper% directory will
314
echo the presence of these files in your %exeproper% directory will
317
echo cause NW+ to function incorrectly.
315
echo cause NW+ to function incorrectly.
318
echo.
316
echo.
319
echo NWinter.con
317
echo NWinter.con
320
echo NWEDuke.con
318
echo NWEDuke.con
321
echo NWDefs.con
319
echo NWDefs.con
322
echo NWUser.con
320
echo NWUser.con
323
echo NWDP.con
321
echo NWDP.con
324
echo NWDPCode.con
322
echo NWDPCode.con
325
echo NWDPXXX.con
323
echo NWDPXXX.con
326
echo NWActor.con
324
echo NWActor.con
327
echo NWSnow.con
325
echo NWSnow.con
328
echo.
326
echo.
329
echo IF THESE ARE THE ORIGINAL NUCLEAR WINTER CON FILES, OR THEY COME FROM
327
echo IF THESE ARE THE ORIGINAL NUCLEAR WINTER CON FILES, OR THEY COME FROM
330
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
328
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
331
echo IMMEDIATELY^!
329
echo IMMEDIATELY^!
332
echo NW+ uses modified .con files to fix programming errors created by
330
echo NW+ uses modified .con files to fix programming errors created by
333
echo the original programmers. Due to improvements made to the levels,
331
echo the original programmers. Due to improvements made to the levels,
334
echo NW+ will have major errors if the included .con files are not used.
332
echo NW+ will have major errors if the included .con files are not used.
335
goto confound_done
333
goto confound_done
336
 
334
 
337
:execheck
335
:execheck
338
if exist %exename%.bat goto execheck_done
336
if exist %exename%.bat goto execheck_done
339
if exist ..\%exename%.exe (
337
if exist ..\%exename%.exe (
340
cd ..
338
cd ..
341
goto recheck
339
goto recheck
342
)
340
)
343
if exist ..\..\%exename%.exe (
341
if exist ..\..\%exename%.exe (
344
cd ..\..
342
cd ..\..
345
goto recheck
343
goto recheck
346
)
344
)
347
if exist ..\..\..\%exename%.exe (
345
if exist ..\..\..\%exename%.exe (
348
cd ..\..\..
346
cd ..\..\..
349
goto recheck
347
goto recheck
350
)
348
)
351
if exist ..\%exename%.bat (
349
if exist ..\%exename%.bat (
352
cd ..
350
cd ..
353
goto execheck_done
351
goto execheck_done
354
)
352
)
355
if exist ..\..\%exename%.bat (
353
if exist ..\..\%exename%.bat (
356
cd ..\..
354
cd ..\..
357
goto execheck_done
355
goto execheck_done
358
)
356
)
359
if exist ..\..\..\%exename%.bat (
357
if exist ..\..\..\%exename%.bat (
360
cd ..\..\..
358
cd ..\..\..
361
goto execheck_done
359
goto execheck_done
362
)
360
)
363
echo Warning: You don't have %exeproper% in your directory.
361
echo Warning: You don't have %exeproper% in your directory.
364
goto execheck_done
362
goto execheck_done
365
 
363
 
366
:nodir
364
:nodir
367
echo.
365
echo.
368
echo Error: "nw_plus" data directory not found.
366
echo Error: "nw_plus" data directory not found.
369
echo Aborting launch.
367
echo Aborting launch.
370
echo.
368
echo.
371
pause
369
pause
372
goto end
370
goto end
373
 
371
 
374
:end
372
:end
375
echo.
373
echo.
376
set editor=0
374
set editor=0
377
set xxx=0
375
set xxx=0
378
set dp=0
376
set dp=0
379
set debug=0
377
set debug=0
380
cd %dir%
378
cd %dir%
381
@title %ComSpec%
379
@title %ComSpec%
382
@color 07
380
@color 07
383
 
381