home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DeathMatch Manifesto
/
DEATHMATCH.ISO
/
walkthru
/
duke13
/
dukedemo.bat
< prev
Wrap
DOS Batch File
|
1996-10-14
|
5KB
|
172 lines
@echo off
if "%2"=="" goto help
if "%1"=="00" goto noway
if "%1"=="0" goto noway
rem reserved for Duke Nukem 3D: Atomic Version
if "%1"=="4" goto noway
if "%1"=="5" goto noway
if "%1"=="6" goto noway
if "%1"=="7" goto noway
if "%1"=="8" goto noway
if "%1"=="9" goto noway
if "%1"=="10" goto noway
if "%1"=="11" goto noway
if "%1"=="12" goto noway
if "%1"=="13" goto noway
if "%1"=="14" goto noway
if "%1"=="15" goto noway
if "%1"=="16" goto noway
if "%1"=="17" goto noway
if "%1"=="18" goto noway
if "%1"=="19" goto noway
if "%1"=="20" goto noway
if "%1"=="21" goto noway
if "%1"=="22" goto noway
if "%1"=="23" goto noway
if "%1"=="24" goto noway
if "%1"=="25" goto noway
if "%1"=="26" goto noway
if "%1"=="27" goto noway
if "%1"=="28" goto noway
if "%1"=="29" goto noway
if "%1"=="30" goto noway
if "%1"=="31" goto noway
if "%1"=="32" goto noway
if "%1"=="33" goto noway
if "%1"=="34" goto noway
if "%1"=="35" goto noway
if "%1"=="36" goto noway
if "%1"=="37" goto noway
if "%1"=="38" goto noway
if "%1"=="39" goto noway
if "%1"=="40" goto noway
if "%2"=="0" goto sorry
if "%2"=="1" goto sorry
if "%2"=="2" goto sorry
if "%2"=="3" goto sorry
if "%2"=="4" goto sorry
if "%2"=="5" goto sorry
if "%2"=="6" goto sorry
if "%2"=="7" goto sorry
if "%2"=="8" goto sorry
if "%2"=="9" goto sorry
if "%2"=="00" goto noway
if "%2"=="12" goto noway
if "%2"=="13" goto noway
if "%2"=="14" goto noway
if "%2"=="15" goto noway
if "%2"=="16" goto noway
if "%2"=="17" goto noway
if "%2"=="18" goto noway
if "%2"=="19" goto noway
if "%2"=="20" goto noway
if "%2"=="21" goto noway
if "%2"=="22" goto noway
if "%2"=="23" goto noway
if "%2"=="24" goto noway
if "%2"=="25" goto noway
if "%2"=="26" goto noway
if "%2"=="27" goto noway
if "%2"=="28" goto noway
if "%2"=="29" goto noway
if "%2"=="30" goto noway
if "%2"=="31" goto noway
if "%2"=="32" goto noway
if "%2"=="33" goto noway
if "%2"=="34" goto noway
if "%2"=="35" goto noway
if "%2"=="36" goto noway
if "%2"=="37" goto noway
if "%2"=="38" goto noway
if "%2"=="39" goto noway
if "%2"=="40" goto noway
if "%2"=="41" goto noway
if "%2"=="42" goto noway
if "%2"=="43" goto noway
if "%2"=="44" goto noway
if "%2"=="45" goto noway
if "%2"=="46" goto noway
if "%2"=="47" goto noway
if "%2"=="48" goto noway
if "%2"=="49" goto noway
if "%2"=="50" goto noway
cls
echo Be sure to have this batch file and the appropriate demo file in your
echo registered Duke Nukem 3D v1.3D directory or else it won't play back!
echo.
echo Your original DEMO1.DMO will be renamed to _DEMO1.BAK, if anything goes
echo wrong you can rename _DEMO1.BAK to DEMO1.DMO to restore the original.
echo However it will be renamed automatically if this batch file won't be
echo interrupted by a crash or something like that, so it doesn't waste space.
echo.
echo If you have problems running this demo or Duke3D in general contact:
echo Steffen Itterheim (aka Duke Addict) 100606.2141@compuserve.com
echo.
echo.
echo Note that although I am co-sysop in Apogee's Compuserve forum:
echo.
echo ***THIS DEMO IS NOT MADE BY OR SUPPORTED BY 3D REALMS***
echo.
echo However feel free to contact me when you have problems and I'll try to
echo help you for the sole reason that I am the author of this file.
echo.
echo Signed: -Duke Addict :)
echo.
echo.
echo Now playing back DUKE%1_%2.DMO, press any key to start...
pause>nul
cls
more < duke%1_%2.txt
echo.
pause
cls
ren demo1.dmo _demo1.bak >NUL
copy duke%1_%2.dmo demo1.dmo >NUL
duke3d.exe
del demo1.dmo >NUL
ren _demo1.bak demo1.dmo >NUL
echo Finished Playback...
echo Your original DEMO1.DMO has been restored!
goto exit
:help
echo.
echo SYNTAX : DUKEDEMO.BAT [Episode #] [Level ##]
echo.
echo example: DUKEDEMO 1 04
echo this will run the demo from Episode 1, Map 4 (E1L4.MAP)
echo DUKEDEMO 3 11
echo this will run the demo from Episode 3, Map 11 (E3L11.MAP)
echo.
goto exit
:sorry
echo.
echo Error: the second parameter has only one digit!
echo If you want to play the demo from Episode 2, Level 8 use this syntax:
echo.
echo DUKEDEMO 2 08
echo note the leading 0 for levels between 1 and 9,
echo this is similar to the DNSCOTTYxyy cheat code!
echo.
echo *****************************************************************************
goto help
:noway
echo.
echo Sorry, this level does not exist: Episode %1, Level %2
echo.
goto exit
:exit