home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
1,001 Nights of Doom
/
1001NightsOfDoom1995wickedSensations.iso
/
newstuff
/
edmap124.zip
/
BUILD.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-01-02
|
1KB
|
44 lines
@echo off
rem --------------------------------------------------------------
rem BUILD.BAT for EdMap v1.24+ (by Jeff Rabenhorst)
rem
rem Edit this file to use a different NODE-BUILDER
rem
rem Requires STUFFBUF.EXE to insert keystrokes into the buffer
rem and DOOM2WAD.EXE to convert PWAD map entries (DOOM1/DOOM2)
rem --------------------------------------------------------------
if not "%1"=="" goto OKPARAMS
echo ERROR: Missing WAD filename.
goto END
:OKPARAMS
if exist build.tmp del build.tmp > nul
copy %1.wad backup.wad > nul
rem doom2wad %1.wad 0
copy %1.wad build.wad > nul
echo Building BSP data...
stuffbuf y! > nul
idbsp -fullreject -wad build.wad %1.wad
if errorlevel 1 goto BUILDFAILED
echo
del build.wad > nul
rem doom2wad %1.wad %2
echo
echo Finished building PWAD; %1.wad is now playable
echo
if not "%4"=="" stuffbuf !
goto END
:BUILDFAILED
copy backup.wad %1.wad > nul
if "%4"=="" goto FAILTEXT
edmapcom %3 %4 PLAYMAP=FALSE
edmapcom %3 %4 ERROR BuildFailed
:FAILTEXT
echo BUILD FAILED!
echo PWAD RESTORED
goto END
:END