What is "Play Deathball.cmd" All About

Everything about Death Ball.

Moderators: Jay2k1, DavidM, The_One

overon
Junior Member
Posts: 29
Joined: 27-07-2004 14:46

What is "Play Deathball.cmd" All About

Post 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.
User avatar
StRaFe
Posts: 403
Joined: 27-11-2003 12:46

Post by StRaFe »

/shrugs
/me looks at dave!!!11
User avatar
The_One
Senior Member
Posts: 1962
Joined: 09-03-2003 00:38
Location: UK

Post 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.
User avatar
Maegrim
Posts: 1317
Joined: 09-03-2003 13:26
Contact:

Post by Maegrim »

i thought it checked for the \deathball map o_O
User avatar
The_One
Senior Member
Posts: 1962
Joined: 09-03-2003 00:38
Location: UK

Post 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.
User avatar
R3L!K
Posts: 1274
Joined: 09-03-2003 01:03

Post by R3L!K »

I never noticed that before..... what a handy feature....if it actually works.... (I just make my own shortcut)
User avatar
DavidM
Posts: 6795
Joined: 08-03-2003 20:35
Contact:

Post by DavidM »

as the one said....
We only keep telling people to use it forever.
xiller8r
Senior Member
Posts: 545
Joined: 29-03-2004 12:30

Post by xiller8r »

they even supply a sexy icon to use for it o/
overon
Junior Member
Posts: 29
Joined: 27-07-2004 14:46

Post by overon »

I use the shortcut too, I'm just a curious dirty filthy smelly n00b.::Pfffff:: :noob:
User avatar
UsAaR33
Posts: 28
Joined: 24-06-2003 07:05
Contact:

Post 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
User avatar
DiStUrbeD
Posts: 671
Joined: 13-03-2003 20:23
Contact:

Post by DiStUrbeD »

what about those of us on Windows 3.1?

\o/ :p
User avatar
UsAaR33
Posts: 28
Joined: 24-06-2003 07:05
Contact:

Post by UsAaR33 »

DiStUrbeD wrote: what about those of us on Windows 3.1?

\o/ :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
User avatar
Maegrim
Posts: 1317
Joined: 09-03-2003 13:26
Contact:

Post by Maegrim »

<3 win 3.11








<3 spam
User avatar
R3L!K
Posts: 1274
Joined: 09-03-2003 01:03

Post 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...
User avatar
Catalyst88
Posts: 707
Joined: 18-03-2003 12:02

Post by Catalyst88 »

What about people who use DOS 4.0?
Locked