Rev 34 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
color 0C
setlocal ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION
:restart
if "
%editor%"=="1"
title Duke It Out
In D.C. Editor Launcher
)
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo You are
%action% Sunstorm Interactive's Duke It Out
In D.C.
if "
%xxx%"=="1"
echo Using XXX mode.
if "
%dp%"=="1"
echo Using Duke Plus by DeeperThought.
if "
%debug%"=="1"
echo Using debug mode.
if "
%debug%"=="1"
echo DEBUG: Command Line Input:
%*
:recheck
:execheck_done
if "
%debug%"=="1"
echo DEBUG:
%exeproper% Directory: "
%exedir%"
:: if not exist dc_hrp\ goto nodir
if not exist duke3d.grp
echo Warning: You don't have Duke3D.grp
in your directory.
set sha1sum=
%startdir%\utils\windows\win32\sha1sum.exe
set kextract=
%startdir%\utils\windows\win32\kextract.exe
if "
%debug%"=="1"
set kextract=
%startdir%\utils\windows\win32\kextract.debug.exe
if "
%dcgrpname%"==""
set dcgrpname=dukedc.grp
:dcgrp_found
:nodcgrp_return
:init
:check
echo Launching Duke Nukem 3D . . .
if exist duke3d.def
ren duke3d.def duke3d_dcbak.def
if exist duke3d_dcbak.def
echo duke3d.def has been renamed to duke3d_dcbak.def to allow the add-on to operate.
:arguments
if exist "
%exedir%\polymer_hrp\"
set args=
%args% -j polymer_hrp
if exist "
%exedir%\duke3d_voxel.zip"
set args=
%args% -g duke3d_voxel.zip
if exist "
%exedir%\duke3d_hrp.zip"
set args=
%args% -g duke3d_hrp.zip
if exist "
%exedir%\hrp_update.zip"
set args=
%args% -g hrp_update.zip
if exist "
%exedir%\maphacks.zip"
set args=
%args% -g maphacks.zip
if exist "
%exedir%\eduke32_mus.zip"
set args=
%args% -g eduke32_mus.zip
set args=
%args% -g dukedc.grp -mx dc_user.
con
if exist "
%exedir%\dc.def"
set args=
%args% -h dc.def
if exist "
%exedir%\dukedc.def"
set args=
%args% -h dukedc.def
if exist "
%exedir%\dukedc_hrp.zip"
set args=
%args% -g dukedc_hrp.zip
if exist "
%exedir%\dc_hrp\"
set args=
%args% -j dc_hrp
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_lite.zip"
set args=
%args% -g xxx_lite.zip
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_lite\"
set args=
%args% -j xxx_lite
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_pack.zip"
set args=
%args% -g xxx_pack.zip
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_pack\"
set args=
%args% -j xxx_pack
if "
%dp%"=="1"
set args=
%args% -j DukePlus
if "
%debug%"=="1"
set exe=
%exename%.debug
if "
%debug%"=="1"
echo DEBUG: Final Command Line:
call %exe%.bat
%args%
if "
%debug%"=="1"
echo DEBUG: Final Command Line: start
%exe%.exe
%args%
start %exe%.exe %args%
)
if "
%svnpath%"=="0"
if exist "
%startdir%\svn\bin\svn.exe"
set svnpath=
%startdir%\svn\bin
if "
%svnpath%"=="0"
if exist "
%exedir%\svn\bin\svn.exe"
set svnpath=
%exedir%\svn\bin
if "
%svnpath%"=="0"
if exist "
%ProgramFiles%\SlikSvn\bin\svn.exe"
set svnpath=
%ProgramFiles%\SlikSvn\bin
if "
%svnpath%"=="0"
if exist "
%ProgramFiles(x86)%\SlikSvn\bin\svn.exe"
set svnpath=
%ProgramFiles(x86)%\SlikSvn\bin
if "
%svnpath%"=="0"
if exist "
%ProgramFiles%\Subversion\bin\svn.exe"
set svnpath=
%ProgramFiles%\Subversion\bin
if "
%svnpath%"=="0"
if exist "
%ProgramFiles(x86)%\Subversion\bin\svn.exe"
set svnpath=
%ProgramFiles(x86)%\Subversion\bin
if "
%svnpath%"=="0"
if exist "
%ProgramFiles%\TortoiseSVN\bin\svn.exe"
set svnpath=
%ProgramFiles%\TortoiseSVN\bin
if "
%svnpath%"=="0"
if exist "
%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe"
set svnpath=
%ProgramFiles(x86)%\TortoiseSVN\bin
chdir /d "
%exedir%\dc_hrp\"
)
:svn_action
set PATH=
%PATH%;
%svnpath%
for /f "delims="
%%a in ('svnversion.exe .'
) do @set oldrev=
%%a
if "
%oldrev%"=="exported"
goto :
eof
if "
%oldrev%"=="Unversioned directory"
goto :
eof
"svn.exe" update
for /f "delims="
%%a in ('svnversion.exe .'
) do @set rev=
%%a
set /a oldrev=
%oldrev% + 1
"svn.exe" log -r %oldrev%:%rev%
:nodcgrp
set megaton=Steam\SteamApps\common\Duke Nukem 3D\gameroot\addons\dukedc.grp
if exist "
%ProgramFiles%\
%megaton%"
copy "
%ProgramFiles%\
%megaton%" .\
&& call :
conprotect && goto nodcgrp_done
if exist "
%ProgramFiles(x86)%\
%megaton%"
copy "
%ProgramFiles(x86)%\
%megaton%" .\
&& call :
conprotect && goto nodcgrp_done
color 0C
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke It Out
In D.C.
for EDuke32 Installer º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍͼ
echo This batch file extracts the contents of DUKEDCPP.SSI or DUKEDC13.SSI and makes
echo it into a group file, DUKEDC.GRP.
set kgroup=
%startdir%\utils\windows\win32\kgroup.exe
if "
%debug%"=="1"
set kgroup=
%startdir%\utils\windows\win32\kgroup.debug.exe
set unpackssi=
%startdir%\utils\windows\win32\unpackssi.exe
if "
%debug%"=="1"
set unpackssi=
%startdir%\utils\windows\win32\unpackssi.debug.exe
:nodcgrp_top
echo Proceeding with DUKEDCPP.SSI extraction.
"%unpackssi%" ..\DUKEDCPP.SSI
if exist DUKETEAM.ANM
ren DUKETEAM.ANM RADLOGO.ANM
"%kgroup%" dukedc.grp *.*
echo DUKEDC.GRP has been added to your directory.
:check13
echo Proceeding with DUKEDC13.SSI extraction.
"%unpackssi%" ..\DUKEDC13.SSI
if exist DUKETEAM.ANM
ren DUKETEAM.ANM RADLOGO.ANM
"%kgroup%" dukedc.grp *.*
move dukedc.grp ..\dukedc13.grp
echo DUKEDC13.GRP has been added to your directory.
move dukedc.grp ..\dukedc.grp
echo DUKEDC.GRP has been added to your directory.
) )
:nodcgrp_done
type DCINTRO.TXT
echo Duke It Out
In D.C. installed
!
call :
grpchecksum_results
)
echo Contact Hendricks266
for help.
)
:conprotect
:grpchecksum
)
echo 1b66c3ad9a65556044946dd1ca97a839fcfedc3b *
%dcgrpname% | "
%sha1sum%" --status --check -
if "
%ERRORLEVEL%"=="1"
set version=unknown
:grpchecksum_results
if "
%version%"=="megaton"
echo DUKEDC.GRP
(Megaton Edition
) checksum verified.
:: if "%version%"=="unknown" echo DUKEDC.GRP checksum does not match any known copies because one was never distributed until the Megaton Edition.
:error
echo You
do not have DUKEDCPP.SSI or DUKEDC13.SSI
in this directory.
:retry
set /p cddrive=What is the drive letter that your Duke D.C.
CD is
in?
if not '
%cddrive%'==''
set cddrive=
%cddrive:~0,1%
if exist %cddrive%:\DUKEDC\DUKEDCPP.SSI
copy %cddrive%:\DUKEDC\*.SSI .\
&& goto nodcgrp_top
if exist %cddrive%:\DUKEDC\DUKEDC\DUKEDCPP.SSI
copy %cddrive%:\DUKEDC\DUKEDC\*.SSI .\
&& goto nodcgrp_top
if exist %cddrive%:\DC\DUKEDC\DUKEDCPP.SSI
copy %cddrive%:\DC\DUKEDC\*.SSI .\
&& goto nodcgrp_top
:cdno
echo '
%cddrive%' is
not valid. Please try again.
:cdwrong
echo '
%cddrive%' is
not the correct disc. Please try again.
:execheck
echo Warning: You don't have
%exeproper% in your directory.
:end
color 07