home *** CD-ROM | disk | FTP | other *** search
/ Crazy Collection 12 / CC-12_1.iso / update / doompack / data.a00 / NETDOOM.ZIP / NETDOOM.BAT next >
Encoding:
DOS Batch File  |  1995-02-02  |  3.2 KB  |  131 lines

  1. @echo off
  2. rem      NETDOOM.BAT  A small batch file to run NETdoom.
  3. rem      Copyright (c) 1995 By Owen Williams
  4. rem
  5. rem   %1, %2, %3, etc... are command line arguments.  If you
  6. rem   were to type "netdoom doom2 lsl", %1 would equal "doom2", 
  7. rem   and %2 would equal "lsl".
  8. rem
  9. cls
  10. if "%1"=="" goto inst
  11. if "%2"=="lsl" goto lslsetup
  12. if "%2"=="pkt" goto pktsetup
  13. goto inst
  14. :ret
  15. cls 
  16. rem    Remember to change all of the paths to make it right!
  17. type c:\netdoom\title.txt
  18. pause
  19. echo.
  20. echo                  ┌───────────────────────────────┐
  21. echo                  │         !! WARNING !!         │
  22. echo                  │                               │
  23. echo                  │ This won't let you use turbo! │
  24. echo                  │                               │
  25. echo                  │ After all, only cheetahs go   │
  26. echo                  │          fast!!!!!            │
  27. echo                  │                               │
  28. echo                  └───────────────────────────────┘
  29. echo.
  30. rem        On the next line, put the drive and directory right
  31. rem   above your doom/doom2 directories, and a %1.  
  32. rem   For example, in my case, the paths are c:\games\doom, 
  33. rem   and c:\games\doom2. I would put "c:\games\%1" on the line bellow.
  34. rem   If my path were d:\doom2, and d:\doom, I would put "d:\%1".
  35.  
  36. cd \games\%1
  37.  
  38. echo.
  39. echo If the computer just said "Invalid directory",
  40. echo You mistyped the word DOOM or DOOM2. Instead, you
  41. echo typed %1.  If %1 is right, you shouldn't be reading
  42. echo this junk.  But, if %1 isn't right, hit ESC now.  
  43. echo If not, hit something else.
  44.  
  45. pause
  46.  
  47. rem   You can comment out these next few lines (by adding "rem")
  48. rem   if you don't want to be restricted.
  49. if "%3"=="-turbo" goto turbo3
  50. if "%4"=="-turbo" goto turbo4
  51. if "%5"=="-turbo" goto turbo5
  52. if "%6"=="-turbo" goto turbo6
  53. if "%7"=="-turbo" goto turbo7
  54. if "%8"=="-turbo" goto turbo8
  55. ipxsetup %2 %3 %4 %5 %6 %7 %8 %9
  56.  
  57. :unload
  58. if "%2"=="lsl" goto lslunload
  59.  
  60. cls
  61. echo.
  62. echo Sorry, the packet drivers cannot be unloaded
  63. echo.
  64. rem Change that path!
  65. cd \netdoom
  66. goto end
  67.  
  68. :lslunload
  69. rem here, put the directory for this program.
  70. cd \netdoom\lsl
  71. ipxodi u
  72. ne2000 u
  73. lsl u
  74. goto end
  75.  
  76. :turbo3
  77. ipxsetup %2 %5 %6 %7 %8 %9
  78. goto unload
  79.  
  80. :turbo4
  81. ipxsetup %2 %3 %6 %7 %8 %9
  82. goto unload
  83.  
  84. :turbo5
  85. ipxsetup %2 %3 %4 %7 %8 %9
  86. goto unload
  87.  
  88. :turbo6
  89. ipxsetup %2 %3 %4 %5 %8 %9
  90. goto unload
  91.  
  92. :turbo7
  93. ipxsetup %2 %3 %4 %5 %6 %9
  94. goto unload
  95.  
  96. :turbo8
  97. ipxsetup %2 %3 %4 %5 %6 %7 
  98. goto unload
  99.  
  100. :pktsetup
  101. rem Again, the directory where all of this is.
  102. cd \netdoom\pktdrv
  103. rem  *****!!!!!MAKE SURE THESE SETTINGS ARE CORRECT!!!!!****
  104. lh ne2000 0x60 10 0x300
  105. lh ipxpd
  106. goto ret
  107.  
  108. :lslsetup
  109. cd \netdoom\lsl
  110. lsl
  111. ne2000
  112. ipxodi
  113. goto ret
  114.  
  115. :inst
  116. echo Usage:
  117. echo NETDOOM [GAME] [TYPE] (OPTIONS)
  118. echo.
  119. echo Where:
  120. echo.
  121. echo GAME is either DOOM or DOOM2. 
  122. echo TYPE is either lsl or pkt, which is the type of 
  123. echo      network you want.  PLAYERS CANNOT USE
  124. echo      DIFFERENT NETWORK TYPES!!!!!!
  125. echo OPTIONS are any command line options for the game,
  126. echo     such as -altdeath or -skill 4.
  127. echo.
  128. echo NOTE:  NETDOOM will not let you cheat with -turbo.
  129.  
  130. :end
  131.