home *** CD-ROM | disk | FTP | other *** search
/ DeathMatch Manifesto / DEATHMATCH.ISO / walkthru / duke13 / dukedemo.bat < prev   
DOS Batch File  |  1996-10-14  |  5KB  |  172 lines

  1. @echo off
  2.  
  3. if "%2"=="" goto help
  4.  
  5. if "%1"=="00" goto noway
  6. if "%1"=="0" goto noway
  7.  
  8.         rem reserved for Duke Nukem 3D: Atomic Version
  9.         if "%1"=="4" goto noway
  10.  
  11. if "%1"=="5" goto noway
  12. if "%1"=="6" goto noway
  13. if "%1"=="7" goto noway
  14. if "%1"=="8" goto noway
  15. if "%1"=="9" goto noway
  16. if "%1"=="10" goto noway
  17. if "%1"=="11" goto noway
  18. if "%1"=="12" goto noway
  19. if "%1"=="13" goto noway
  20. if "%1"=="14" goto noway
  21. if "%1"=="15" goto noway
  22. if "%1"=="16" goto noway
  23. if "%1"=="17" goto noway
  24. if "%1"=="18" goto noway
  25. if "%1"=="19" goto noway
  26. if "%1"=="20" goto noway
  27. if "%1"=="21" goto noway
  28. if "%1"=="22" goto noway
  29. if "%1"=="23" goto noway
  30. if "%1"=="24" goto noway
  31. if "%1"=="25" goto noway
  32. if "%1"=="26" goto noway
  33. if "%1"=="27" goto noway
  34. if "%1"=="28" goto noway
  35. if "%1"=="29" goto noway
  36. if "%1"=="30" goto noway
  37. if "%1"=="31" goto noway
  38. if "%1"=="32" goto noway
  39. if "%1"=="33" goto noway
  40. if "%1"=="34" goto noway
  41. if "%1"=="35" goto noway
  42. if "%1"=="36" goto noway
  43. if "%1"=="37" goto noway
  44. if "%1"=="38" goto noway
  45. if "%1"=="39" goto noway
  46. if "%1"=="40" goto noway
  47.  
  48. if "%2"=="0" goto sorry
  49. if "%2"=="1" goto sorry
  50. if "%2"=="2" goto sorry
  51. if "%2"=="3" goto sorry
  52. if "%2"=="4" goto sorry
  53. if "%2"=="5" goto sorry
  54. if "%2"=="6" goto sorry
  55. if "%2"=="7" goto sorry
  56. if "%2"=="8" goto sorry
  57. if "%2"=="9" goto sorry
  58.  
  59. if "%2"=="00" goto noway
  60. if "%2"=="12" goto noway
  61. if "%2"=="13" goto noway
  62. if "%2"=="14" goto noway
  63. if "%2"=="15" goto noway
  64. if "%2"=="16" goto noway
  65. if "%2"=="17" goto noway
  66. if "%2"=="18" goto noway
  67. if "%2"=="19" goto noway
  68. if "%2"=="20" goto noway
  69. if "%2"=="21" goto noway
  70. if "%2"=="22" goto noway
  71. if "%2"=="23" goto noway
  72. if "%2"=="24" goto noway
  73. if "%2"=="25" goto noway
  74. if "%2"=="26" goto noway
  75. if "%2"=="27" goto noway
  76. if "%2"=="28" goto noway
  77. if "%2"=="29" goto noway
  78. if "%2"=="30" goto noway
  79. if "%2"=="31" goto noway
  80. if "%2"=="32" goto noway
  81. if "%2"=="33" goto noway
  82. if "%2"=="34" goto noway
  83. if "%2"=="35" goto noway
  84. if "%2"=="36" goto noway
  85. if "%2"=="37" goto noway
  86. if "%2"=="38" goto noway
  87. if "%2"=="39" goto noway
  88. if "%2"=="40" goto noway
  89. if "%2"=="41" goto noway
  90. if "%2"=="42" goto noway
  91. if "%2"=="43" goto noway
  92. if "%2"=="44" goto noway
  93. if "%2"=="45" goto noway
  94. if "%2"=="46" goto noway
  95. if "%2"=="47" goto noway
  96. if "%2"=="48" goto noway
  97. if "%2"=="49" goto noway
  98. if "%2"=="50" goto noway
  99.  
  100. cls
  101. echo Be sure to have this batch file and the appropriate demo file in your
  102. echo registered Duke Nukem 3D v1.3D directory or else it won't play back!
  103. echo.
  104. echo Your original DEMO1.DMO will be renamed to _DEMO1.BAK, if anything goes
  105. echo wrong you can rename _DEMO1.BAK to DEMO1.DMO to restore the original.
  106. echo However it will be renamed automatically if this batch file won't be
  107. echo interrupted by a crash or something like that, so it doesn't waste space.
  108. echo.
  109. echo If you have problems running this demo or Duke3D in general contact:
  110. echo    Steffen Itterheim (aka Duke Addict) 100606.2141@compuserve.com
  111. echo.
  112. echo.
  113. echo Note that although I am co-sysop in Apogee's Compuserve forum:
  114. echo.
  115. echo    ***THIS DEMO IS NOT MADE BY OR SUPPORTED BY 3D REALMS***
  116. echo.
  117. echo However feel free to contact me when you have problems and I'll try to
  118. echo help you for the sole reason that I am the author of this file.
  119. echo.
  120. echo    Signed: -Duke Addict :)
  121. echo.
  122. echo.
  123. echo         Now playing back DUKE%1_%2.DMO, press any key to start...
  124. pause>nul
  125.  
  126. cls
  127. more < duke%1_%2.txt
  128. echo.
  129. pause
  130. cls
  131.  
  132. ren demo1.dmo _demo1.bak >NUL
  133. copy duke%1_%2.dmo demo1.dmo >NUL
  134. duke3d.exe
  135. del demo1.dmo >NUL
  136. ren _demo1.bak demo1.dmo >NUL
  137.  
  138. echo Finished Playback...
  139. echo Your original DEMO1.DMO has been restored!
  140. goto exit
  141.  
  142. :help
  143. echo.
  144. echo SYNTAX : DUKEDEMO.BAT [Episode #] [Level ##]
  145. echo.
  146. echo example: DUKEDEMO 1 04
  147. echo                 this will run the demo from Episode 1, Map 4 (E1L4.MAP)
  148. echo          DUKEDEMO 3 11
  149. echo                 this will run the demo from Episode 3, Map 11 (E3L11.MAP)
  150. echo.
  151. goto exit
  152.  
  153. :sorry
  154. echo.
  155. echo Error: the second parameter has only one digit!
  156. echo        If you want to play the demo from Episode 2, Level 8 use this syntax:
  157. echo.
  158. echo          DUKEDEMO 2 08
  159. echo                 note the leading 0 for levels between 1 and 9,
  160. echo                 this is similar to the DNSCOTTYxyy cheat code!
  161. echo.
  162. echo *****************************************************************************
  163. goto help
  164.  
  165. :noway
  166. echo.
  167. echo Sorry, this level does not exist: Episode %1, Level %2
  168. echo.
  169. goto exit
  170.  
  171. :exit
  172.