Page 1 of 2
What is "Play Deathball.cmd" All About
Posted: 27-07-2004 15:18
by overon
Just curiosu but why does deathball use a *.cmd file to startup and then does some kind of online check. What is it checking for exactly and why the need for a *.cmd?
Thanks.
Posted: 27-07-2004 15:29
by StRaFe
/shrugs
/me looks at dave!!!11
Posted: 27-07-2004 15:53
by The_One
Surely it's obvious. It's checking for a new version of DB. Don't know if it actually works though, guess we'll see when 2.1 is released.
Posted: 27-07-2004 16:11
by Maegrim
i thought it checked for the \deathball map o_O
Posted: 27-07-2004 16:17
by The_One
Well it does a number of things. First it checks that the main DB files are present and then checks to see if there is a newer version of DB available (by running AutoUpdate.exe). Obviously the last thing it does is start UT2k4 with the -Mod=Deathball command.
Posted: 27-07-2004 16:33
by R3L!K
I never noticed that before..... what a handy feature....if it actually works.... (I just make my own shortcut)
Posted: 27-07-2004 16:45
by DavidM
as the one said....
We only keep telling people to use it forever.
Posted: 27-07-2004 17:05
by xiller8r
they even supply a sexy icon to use for it o/
Posted: 27-07-2004 21:36
by overon
I use the shortcut too, I'm just a curious dirty filthy smelly n00b.

Posted: 28-07-2004 02:55
by UsAaR33
Well, for those of us with windows 98, the CMD file won't work.
Following is the PlayDeathball.bat file, which does everything the CMD does.
The BAT will be in all future deathball versions.
Note how useful it is (verifies install, sets up UCL file, updates, launches deathball correctly):
Code: Select all
@echo off
@echo ===----------------------------------------------
@echo === Deathball Launcher
@echo ===----------------------------------------------
@echo === Environment Check ===
if exist ..\Deathball\PlayDeathball.bat goto Defcheck
echo 'PlayDeathball.bat' is missing from your UT2004\Deathball Deathball folder. Please reinstall Deathball.
pause
goto end
:Defcheck
IF EXIST ..\System\Default.ini goto DBUCheck
echo 'UT2004\System\Default.ini' is missing! Please reinstall UT2004!
pause
goto end
:DBUCheck
IF EXIST System\Deathball.u goto DBAICheck
echo 'Deathball.u' Package missing! Please reinstall Deathball.
pause
goto end
:DBAICheck
IF EXIST System\DeathballAI.u goto DBRCCheck
echo 'DeathballAI.u' Package missing! Please reinstall Deathball.
pause
goto end
:DBRCCheck
IF EXIST System\Deathball_rc.u goto EntryCheck
echo 'Deathball_rc.u' Package missing! Please reinstall Deathball.
pause
goto end
:EntryCheck
IF EXIST Maps\Entry.ut2 goto UCLProcess
echo 'Deathball\Maps\Entry.ut2' missing. Using UT2k4 default Entry map.
copy ..\Maps\Entry.ut2 Maps\Entry.ut2 > NUL
:UCLProcess
IF EXIST System\Deathball.ucl goto AutoUpdate
echo === Exporting Deathball.ucl ===
..\System\ucc exportcache -Mod=Deathball -v Deathball.u Deathball_rc.u DeathballAI.u Deathball.ucl
IF NOT errorlevel 1 goto UCLPostCheck
echo ERROR! Unable to run UCC.
pause
goto end
:UCLPostCheck
IF EXIST System\Deathball.ucl goto AutoUpdate
echo ERROR! Unable to export Deathball.ucl!
pause
goto end
:AutoUpdate
AutoUpdate.exe /S /D=%CD%
@echo === Starting Deathball ===
@REM Use START always when possible!
IF NOT "%OS%" == "Windows_NT" goto LNormal
REM START /B ..\System\ut2004.exe -Mod=Deathball
START /B c:\windows\notepad.exe
IF errorlevel 1 goto LNormal
exit
goto end
:LNormal
..\System\ut2004.exe -Mod=Deathball
:end
Posted: 28-07-2004 03:27
by DiStUrbeD
what about those of us on Windows 3.1?

:p
Posted: 28-07-2004 09:29
by UsAaR33
DiStUrbeD wrote:
what about those of us on Windows 3.1?

:p
I pity your lack of a start button.
I should note though that the .bat files will even work for those of you on DOS 5.0 still. Since win 3.1 requires dos 6.0 at least, I suppose you are AOK :p
Posted: 28-07-2004 11:30
by Maegrim
<3 win 3.11
<3 spam
Posted: 28-07-2004 11:50
by R3L!K
think i'll just stick to my System\ut2004.exe -Mod=Deathball shortcut, since I'm impatient and everything works fine anyway.
if something goes wrong, then sure, I'll try it out...
Posted: 28-07-2004 12:26
by Catalyst88
What about people who use DOS 4.0?