home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Instant Doom Levels
/
Instant.Doom.Levels.-.Level.Master.II.iso
/
WADS
/
DOOM1
/
M_O
/
OTTAWAU.ZIP
/
CHG2OU.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-03-20
|
6KB
|
158 lines
@echo off
cls
if '%0'=='back2org' goto back2org
if '%0'=='BACK2ORG' goto back2org
if '%0'=='back2org.bat' goto back2org
if '%0'=='BACK2ORG.BAT' goto back2org
echo ********************************************************************
echo *** OTTAWAU.WAD ver 0.9 (pre-release) ***
echo ********************************************************************
dmcheck /q s 14680064
echo
if errorlevel==1 goto nospace
if not exist doom.exe goto nofiles
if not exist doom.wad goto nofiles
if not exist ottawau.wad goto nofiles
if not exist bupdate.exe goto nofiles
:chg2ou
dmcheck /q v 1.9
echo
if not errorlevel == 2 goto go_on
echo
echo ********************************************************************
echo *** Sorry, you can't use this program and PWAD on a sharewear ***
echo *** copy of DOOM! ***
echo ********************************************************************
echo
goto end
:go_on
if not errorlevel == 1 goto ok_1666
echo
echo ********************************************************************
echo *** You do not have version 1.9 of DOOM or the files aren't ***
echo *** in their original versions. Please re-install the original ***
echo *** DOOM.WAD and DOOM.EXE files and try again! ***
echo ********************************************************************
echo
goto end
:ok_1666
cls
echo ********************************************************************
echo *** OTTAWAU.WAD ver 0.9 ***
echo ********************************************************************
echo
echo ╔═════════════════════════════════════════════════════════╗
echo ║ You are about to update the DOOM.EXE, DOOM.WAD and ║
echo ║ OTTAWAU.WAD files to have the new floors, new ceilings, ║
echo ║ new monsters and changed text for the Ottawa University ║
echo ║ scenario. If this is not what you want to do, then ║
echo ║ press [CTRL]C to abort, otherwise press [ENTER] to ║
echo ║ continue this updating procedure. ║
echo ╚═════════════════════════════════════════════════════════╝
pause >nul
cls
if exist chg2ou.bat goto ok1
echo
echo ********************************************************************
echo *** Please make sure you are running chg2ou from the ***
echo *** same directory as DOOM.EXE, DOOM.WAD and OTTAWAU.WAD! ***
echo ********************************************************************
echo
goto end
:ok1
echo One moment, updating DOOM.EXE file (10-20 seconds)...
bupdate doom.exe outemp.exe d2ouexe.pch >nul
if not exist outemp.exe goto error1
ren doom.exe doomexe.ou
ren outemp.exe doom.exe
echo One moment, updating DOOM.WAD file (1-2 minutes)...
bupdate doom.wad outemp.wad d2ouwad.pch >nul
if not exist outemp.wad goto error2
ren doom.wad doomwad.ou
ren outemp.wad doom.wad
echo One moment, updating OTTAWAU.WAD file (15-30 seconds)...
bupdate ottawau.wad outemp.wad o2chwad.pch >nul
if not exist outemp.wad goto error3
ren ottawau.wad ouwad.ou
ren outemp.wad ottawau.wad
echo
echo
echo Changes successfully made!
chgname CHG2OU BACK2ORG
:back2org
if not exist doomexe.ou goto noback
if not exist doomwad.ou goto noback
if not exist ouwad.ou goto noback
cls
if exist back2org.bat goto ok2
echo
echo ********************************************************************
echo *** Please make sure you are running BACK2ORG from the ***
echo *** same directory as DOOM.EXE, DOOM.WAD and OTTAWAU.WAD! ***
echo ********************************************************************
echo
goto end
:ok2
echo One moment, restoring original DOOM files...
del doom.wad
ren doomwad.ou doom.wad
del doom.exe
ren doomexe.ou doom.exe
del ottawau.wad
ren ouwad.ou ottawau.wad
echo Files restored successfully!
chgname BACK2ORG CHG2OU
:nofiles
echo
echo *** Please make sure you are running this from a directory ***
echo *** with the files DOOM.EXE, DOOM.WAD, OTTAWAU.WAD and the ***
echo *** BUPDATE.EXE files. Then try again! ***
echo ********************************************************************
goto end
:noback
echo
echo *** The backup files from the CHG2OU process seam to be ***
echo *** missing! Please make sure you are running this from the same ***
echo *** directory from which CHG2OU was run and that the files ***
echo *** DOOMEXE.OU, DOOMWAD.OU and OUWAD.OU exist. Otherwise, you ***
echo *** will have to re-install the original DOOM 1.2 game! ***
echo ********************************************************************
goto end
:nospace
echo *** Oops! There isn't enough space on your hard disk to do ***
echo *** the update. You need at least 14Meg. Please correct this and ***
echo *** try again! ***
echo ********************************************************************
goto end
:error1
echo
echo ********************************************************************
echo *** An error has occured trying to update the DOOM.EXE ***
echo *** file! ***
goto error
:error2
del doom.exe
ren orgdoom.exe doom.exe
echo
echo ********************************************************************
echo *** An error has occured trying to update the DOOM.WAD ***
echo *** file! ***
goto error
:error3
del doom.exe
ren orgdoom.exe doom.exe
del doom.wad
ren orgdoom.wad doom.wad
echo
echo ********************************************************************
echo *** An error has occured trying to update the OTTAWAU.WAD ***
echo *** file! ***
:error
echo ********************************************************************
echo *** Please check to make sure the files are in the same ***
echo *** directory as the original DOOM.EXE and DOOM.WAD or a copy ***
echo *** of them and that there is enough free space on the disk and ***
echo *** then try again! ***
echo ********************************************************************
:end