home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Doom Levels
/
1000DOOMLevels-3DSharewareGames.bin
/
pc
/
doomwads
/
doombat1
/
doom.bat
< prev
next >
Wrap
DOS Batch File
|
1994-03-10
|
12KB
|
410 lines
@ECHO OFF
::
:: This bat file writen by: Mr. Eric M. Evans :: March 10th, 1994
:: Requires Waitkey.exe (included)
:: Requires Ansi driver (not included, see your DOS Manual)
:: Requires 70 bytes of environment space as is. (see DOS Manual)
::
:: This batch file is set up for three local players, Net games, and will also
:: run the RanDoom program. WARNING Randoom (as of v1.41) still has bugs in it.
:: Keep an unmodified copy of your DOOM.WAD file handy for net-games.
:: You must either make/rename the directories that are needed, or change
:: the dir. names in this batch file to match your setup.
:: You must make the save game sub-directories for this setup.
::
:: EXAMPLE: player Eric has savegames/cfg files in sub-dir EME.
:: path EXAMPLE: c:\games\doom\eme = player Eric
:: path EXAMPLE: c:\games\doom\cae = player Craig
:: path EXAMPLE: c:\games\doom\gst = player Guest
:: path EXAMPLE: c:\games\doom\net = net games (you could have multiple)
::
:: This bat file uses two command line peramiters:
:: #1 is the phone number to call.
:: #2 is the seed for RanDoom. (see randoom documentation)
:: EXAMPLE: Doom 18005551212
:: EXAMPLE: Doom *70-1-800-555-1212 seed
:: EXAMPLE: Doom anything seed
::
:: The save games and config files ARE DELETED from the main doom directory.
:: This is so that different peoples files will not intermix.
::
:: Waitkey command line: 3 peramiters
:: #1 is the acceptable keys in errorlevel order "1234567" etc...
:: #2 is the prompt string to show user both #1 and #2 require quotes, and
:: all three must be seperated by a comma. The ECHO . OK! is visual only.
:: #3 is the number of seconds to wait for imput, zero is wait forever.
:: Waitkey will exit after specified seconds with errorlevel 1 (one).
::
:: ErrorLevels are ALWAYS tested highest to lowest. This is due to the fact
:: that if errorlevel 5 is true, then errorlevel 0-4 are also true.
::
:: That's about it... Enjoy ... Avatar
::
C:
:START
ECHO . OK!
CLS
ECHO
ECHO
ECHO
╔═
══════════════════════════════════════════════════
═╗
ECHO
╠╦╦═
══════════════════════════════════════════════
═╦╦╣
ECHO
║║║
Welcome to the DOOM Central Control Station
║║║
ECHO
╠╩╩═
══════════════════════════════════════════════
═╩╩╣
ECHO
╠═
══════════════════════════════════════════════════
═╣
ECHO
║
Type [
C
] To Start Doom for Craig
║
ECHO
║
Type [
E
] To Start Doom for Eric
║
ECHO
║
Type [
G
] To Start Doom for Guest
║
ECHO
║
Type [
N
] To Start Doom NET GAME...
║
ECHO
║
Type [
R
] To Set up the RamDoomizer.
║
ECHO
║
Type [
Q
] to
QUIT TO DOS
║
ECHO
╚═
══════════════════════════════════════════════════
═╝
ECHO
WAITKEY "CEGNRQ","
Press appropriate key.
",0
IF ERRORLEVEL 7 GOTO START
IF ERRORLEVEL 6 GOTO QUIT
IF ERRORLEVEL 5 GOTO RANDOOM
IF ERRORLEVEL 4 GOTO PLAYERS
IF ERRORLEVEL 3 GOTO GST
IF ERRORLEVEL 2 GOTO EME
IF ERRORLEVEL 1 GOTO CAE
IF ERRORLEVEL 0 GOTO START
:EME
ECHO . OK!
C:
CD\GAMES\DOOM
>NUL: COPY C:\GAMES\DOOM\EME\*.* .
DOOM
>NUL: COPY C:\GAMES\DOOM\*.CFG C:\GAMES\DOOM\EME
>NUL: COPY C:\GAMES\DOOM\*.DSG C:\GAMES\DOOM\EME
DEL C:\GAMES\DOOM\*.CFG
DEL C:\GAMES\DOOM\*.DSG
GOTO START
:CAE
ECHO . OK!
C:
CD\GAMES\DOOM
>NUL: COPY C:\GAMES\DOOM\CAE\*.* .
DOOM
>NUL: COPY C:\GAMES\DOOM\*.CFG C:\GAMES\DOOM\CAE
>NUL: COPY C:\GAMES\DOOM\*.DSG C:\GAMES\DOOM\CAE
DEL C:\GAMES\DOOM\*.CFG
DEL C:\GAMES\DOOM\*.DSG
GOTO START
:GST
ECHO . OK!
C:
CD\GAMES\DOOM
>NUL: COPY C:\GAMES\DOOM\GST\*.* .
DOOM
>NUL: COPY C:\GAMES\DOOM\*.CFG C:\GAMES\DOOM\GST
>NUL: COPY C:\GAMES\DOOM\*.DSG C:\GAMES\DOOM\GST
DEL C:\GAMES\DOOM\*.CFG
DEL C:\GAMES\DOOM\*.DSG
GOTO START
:RANDOOM
ECHO . OK!
CLS
ECHO
ECHO
ECHO
╔═
════════════════════════════════════════════════════════
═╗
ECHO
╠╦╦═
════════════════════════════════════════════════════
═╦╦╣
ECHO
║║║
RanDoomizer Main Menu
║║║
ECHO
╠╩╩═
════════════════════════════════════════════════════
═╩╩╣
ECHO
╠═
════════════════════════════════════════════════════════
═╣
ECHO
║
Type [
A
] To Randomize Mode 0 - nothing +/-
║
ECHO
║
Type [
B
] To Randomize Mode 1 - episode +/-
║
ECHO
║
Type [
C
] To Randomize Mode 2 - totally random
║
ECHO
║
Type [
D
] To Randomize Mode 0 Seed is %2 - nothing +/-
║
ECHO
║
Type [
E
] To Randomize Mode 1 Seed is %2 - episode +/-
║
ECHO
║
Type [
F
] To Randomize Mode 2 Seed is %2 - totally random
║
ECHO
║
Type [
R
] To Restore the Default Levels.
║
ECHO
║
Type [
Q
] to
QUIT TO MAIN
║
ECHO
╚═
════════════════════════════════════════════════════════
═╝
ECHO
WAITKEY "ABCDEFRQ","
Press appropriate key.
",0
IF ERRORLEVEL 9 GOTO RANDOOM
IF ERRORLEVEL 8 GOTO START
IF ERRORLEVEL 7 GOTO RESTORE
IF ERRORLEVEL 6 GOTO RANS3
IF ERRORLEVEL 5 GOTO RANS2
IF ERRORLEVEL 4 GOTO RANS1
IF ERRORLEVEL 3 GOTO RAN3
IF ERRORLEVEL 2 GOTO RAN2
IF ERRORLEVEL 1 GOTO RAN1
IF ERRORLEVEL 0 GOTO RANDOOM
:RAN1
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -M0 -G
GOTO RANDOOM
:RAN2
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -M1 -G
GOTO RANDOOM
:RAN3
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -M2 -WRANDOOM.W -G
GOTO RANDOOM
:RANS1
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -M0 -C%2 -G
GOTO RANDOOM
:RANS2
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -M1 -C%2 -G
GOTO RANDOOM
:RANS3
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -M2 -WRANDOOM.W -C%2 -G
GOTO RANDOOM
:RESTORE
ECHO . OK!
C:
CD\GAMES\DOOM
RANDOOM DOOM.WAD -D -G
GOTO RANDOOM
:PLAYERS
ECHO . OK!
cls
WAITKEY "234","
Number of Players?
[2], [3], [4],
(default is 2)
.
",0
IF ERRORLEVEL 4 GOTO PLAYERS
IF ERRORLEVEL 3 GOTO IPX4
IF ERRORLEVEL 2 GOTO IPX3
IF ERRORLEVEL 1 GOTO IPX2
IF ERRORLEVEL 0 GOTO PLAYERS
:IPX2
ECHO . OK!
SET PLAYERS=2
GOTO MATCH
:IPX3
ECHO . OK!
SET PLAYERS=3
GOTO MATCH
:IPX4
ECHO . OK!
SET PLAYERS=4
GOTO MATCH
:MATCH
ECHO . OK!
cls
WAITKEY "YN","
Death Match Mode?
[Y] or [N]
(default is Y)
.
",0
IF ERRORLEVEL 3 GOTO MATCH
IF ERRORLEVEL 2 GOTO NO
IF ERRORLEVEL 1 GOTO YES
IF ERRORLEVEL 0 GOTO MATCH
:YES
ECHO . OK!
SET MATCH=-DEATHMATCH
GOTO SKILL
:NO
ECHO . OK!
SET MATCH=
GOTO SKILL
:SKILL
ECHO . OK!
cls
WAITKEY "41235","
What Skill Level?
[1], through [5]
(default is 4)
.
",0
IF ERRORLEVEL 6 GOTO SKILL
IF ERRORLEVEL 5 GOTO SKL5
IF ERRORLEVEL 4 GOTO SKL3
IF ERRORLEVEL 3 GOTO SKL2
IF ERRORLEVEL 2 GOTO SKL1
IF ERRORLEVEL 1 GOTO SKL4
IF ERRORLEVEL 0 GOTO SKILL
:SKL4
ECHO . OK!
SET SKILL=4
GOTO EPISODE
:SKL1
ECHO . OK!
SET SKILL=1
GOTO EPISODE
:SKL2
ECHO . OK!
SET SKILL=2
GOTO EPISODE
:SKL3
ECHO . OK!
SET SKILL=3
GOTO EPISODE
:SKL5
ECHO . OK!
SET SKILL=5
GOTO EPISODE
:EPISODE
ECHO . OK!
cls
WAITKEY "123","
Which Episode?
[1], [2], [3],
(default is 1)
.
",0
IF ERRORLEVEL 4 GOTO EPISODE
IF ERRORLEVEL 3 GOTO EPS3
IF ERRORLEVEL 2 GOTO EPS2
IF ERRORLEVEL 1 GOTO EPS1
IF ERRORLEVEL 0 GOTO EPISODE
:EPS1
ECHO . OK!
SET EPISODE=1
GOTO LOAD
:EPS2
ECHO . OK!
SET EPISODE=2
GOTO LOAD
:EPS3
ECHO . OK!
SET EPISODE=3
GOTO LOAD
:LOAD
ECHO . OK!
cls
WAITKEY "012345N","
Do you want to load a game?
[0] - [5] or [N] to NOT LOAD.
",0
IF ERRORLEVEL 8 GOTO LOAD
IF ERRORLEVEL 7 GOTO NOLOAD
IF ERRORLEVEL 6 GOTO LOAD5
IF ERRORLEVEL 5 GOTO LOAD4
IF ERRORLEVEL 4 GOTO LOAD3
IF ERRORLEVEL 3 GOTO LOAD2
IF ERRORLEVEL 2 GOTO LOAD1
IF ERRORLEVEL 1 GOTO LOAD0
IF ERRORLEVEL 0 GOTO LOAD
:LOAD0
ECHO . OK!
SET LOAD=-LOADGAME 0
GOTO MONSTER
:LOAD1
ECHO . OK!
SET LOAD=-LOADGAME 1
GOTO MONSTER
:LOAD2
ECHO . OK!
SET LOAD=-LOADGAME 2
GOTO MONSTER
:LOAD3
ECHO . OK!
SET LOAD=-LOADGAME 3
GOTO MONSTER
:LOAD4
ECHO . OK!
SET LOAD=-LOADGAME 4
GOTO MONSTER
:LOAD5
ECHO . OK!
SET LOAD=-LOADGAME 5
GOTO MONSTER
:NOLOAD
ECHO . OK!
SET LOAD=
GOTO MONSTER
:MONSTER
ECHO . OK!
cls
WAITKEY "NY","
Select NO-Monsters?
[Y] or [N]
(default is N)
.
",0
IF ERRORLEVEL 3 GOTO MONSTER
IF ERRORLEVEL 2 GOTO NOMONST
IF ERRORLEVEL 1 GOTO YESMONST
IF ERRORLEVEL 0 GOTO MONSTER
:YESMONST
ECHO . OK!
SET MONSTER=
GOTO NETGAME
:NOMONST
ECHO . OK!
SET MONSTER=-NOMONSTERS
GOTO NETGAME
:NETGAME
CLS
ECHO
ECHO
ECHO
╔═
═══════════════════════════════════════════════
═╗
ECHO
╠╦╦═
═══════════════════════════════════════════
═╦╦╣
ECHO
║║║
NETWORK GAMEING SESSION!!!
║║║
ECHO
╠╩╩═
═══════════════════════════════════════════
═╩╩╣
ECHO
╠═
═══════════════════════════════════════════════
═╣
ECHO
║
Type [
A
] IPX Network Connection
║
ECHO
║
Type [
B
] NULL Modem Connection
║
ECHO
║
Type [
C
] MODEM Connection -ANSWER
║
ECHO
║
Type [
D
] MODEM Connection -DIAL
║
ECHO
║
Type [
Q
] to
QUIT TO START
║
ECHO
╚═
═══════════════════════════════════════════════
═╝
ECHO
WAITKEY "ABCDQ","
Press appropriate key.
",0
IF ERRORLEVEL 6 GOTO NET
IF ERRORLEVEL 5 GOTO START
IF ERRORLEVEL 4 GOTO DIAL
IF ERRORLEVEL 3 GOTO ANSWER
IF ERRORLEVEL 2 GOTO NULL
IF ERRORLEVEL 1 GOTO IPX
IF ERRORLEVEL 0 GOTO NET
:IPX
ECHO . OK!
C:
CD\GAMES\DOOM
CLS
>NUL: COPY .\NET\*.*
IPXSETUP -NODES %players% %match% -SKILL %skill% -EPISODE %episode% %load% %monster%
>NUL: COPY *.CFG .\NET
>NUL: COPY *.DSG .\NET
>NUL: DEL *.CFG
>NUL: DEL *.DSG
GOTO START
:NULL
ECHO . OK!
C:
CD\GAMES\DOOM
CLS
>NUL: COPY .\NET\*.*
SERSETUP -NODES %players% %match% -SKILL %skill% -EPISODE %episode% %load% %monster% -COM1
>NUL: COPY *.CFG .\NET
>NUL: COPY *.DSG .\NET
>NUL: DEL *.CFG
>NUL: DEL *.DSG
GOTO START
:DIAL
ECHO . OK!
C:
CD\GAMES\DOOM
CLS
>NUL: COPY .\NET\*.*
SERSETUP -NODES %players% %match% -SKILL %skill% -EPISODE %episode% %load% %monster% -COM2 -DIAL %1
>NUL: COPY *.CFG .\NET
>NUL: COPY *.DSG .\NET
>NUL: DEL *.CFG
>NUL: DEL *.DSG
GOTO START
:ANSWER
ECHO . OK!
C:
CD\GAMES\DOOM
CLS
>NUL: COPY .\NET\*.*
SERSETUP -NODES %players% %match% -SKILL %skill% -EPISODE %episode% %load% %monster% -COM2 -ANSWER
>NUL: COPY *.CFG .\NET
>NUL: COPY *.DSG .\NET
>NUL: DEL *.CFG
>NUL: DEL *.DSG
GOTO START
:QUIT
ECHO . OK!
:: D: for multiple drive
:: CD\ game installations
C:
CD\
SET MATCH=
SET PLAYERS=
SET EPISODE=
SET SKILL=
SET LOAD=
SET MONSTER=
CLS
:EXIT