View Single Post
Old 5th Aug 2008, 10:43 AM   #13
lightfoot
Member
 
lightfoot's Avatar
 
Registered: Oct 2005
Location: *teleports up front*
Posts: 576
And yet another version. Displaying the asciified "Chat noir". A screenshot is in my "Stuff" album.

lnch.bat:
Code:
@echo off

: IMPORTANT This launcher will only work when it is 
: in your UT2004\AlienSwarm\maps\ folder.
: It further assumes that there is a folder called
: 'AlienSwarm\Maps\MenuMaps',
: which contains 5 (yes, the 'number' variable)
: actual menu maps, named '1.ut2', '2.ut2', and so on up to '5.ut2'.


: resize our window. title will come as soon as we know it.
mode con: cols=79 lines=66

: the following seems to be needed for randomness
setLocal EnableDelayedExpansion

: we have 'number' menu maps to choose from
: (TODO: the script should rather make a head count of the files
:             in the MenuMaps folder, instead of primitively setting it here!)
set number=5

: so randomly find a target between 1 and number
:
set /a target=!random!%%number+1

: get the respective map description from a 'subroutine'. brr, clumsy.
:
if %target%==1 goto Original 
if %target%==2 goto Sigma 
if %target%==3 goto Telic 
if %target%==4 goto Conrad 
if %target%==5 goto APC

:hell

:rename title bar
title Today's menu map: %descrip%   - Hit a key to accept and proceed to the game. -

: display the ASCII table, now feat. the targetted Map's description in the title bar

echo.
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNcWMMMMMMMMMMMMMMMMMMMMMM#MMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMHMMMMNJMMMMMMMMMMMMMMMMMHONNMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNg7MMeWMMMMMMMMMMMMMBJMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMeYMeMMMMMMMMMMM#jM#G+MMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN?M`MMMMMMMMM3M5jMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNWFMMMMMMMMq5JMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM@?TMMMMMMMpMJMMMMM#cjMMMMMM#YWMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMb` `.THMMMY```.7`  ?MMMMH=  `JMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMp   ` ``            `      .MMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN,     NJ._     _.JN    .dMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMHHHMMMMMM.   `7M_M#   dM_M=   MMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMM#Y+gMMMMMMMMMM#`                    dMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMagMMMMHWgggNNMM`                     ,NNNMagggVTHMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMS8MMMMMMMMBH.                     .NNgyYMMMMMMNJTMMM
echo  MMMMMMMMMMMMMMMMMMMMMMNJMMMMMWXjgMMMMM`                 ..MNg7MMMMNgZWMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMGgMMMMMMMM@`                .MMMMMMMmfMMMMMmJWMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMM5dMMMMMMMMM` ``             `  `JMMMMMMMNJWMMMMN,MMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM``   ` ``          `   WMMMMMMMMN`MMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMMMYMMMMMMMMMF`        `              MMMMMMMMMNMMMMMMMM
echo  MMMMMMMMMMMMMMMMMMMMMMB= ` ??T?TMM`                     `  JMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMM?751`      `   `` `                       MMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMMMR``              ` `                    `.MMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMMMMM3`                  ``                    JMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMm,```                    `                   `dMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMMB`                       `                 `.gMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMMF                                        `..MMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMM#1`              `                  `     .JMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMMp                 ```             `     JMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMM:                    `          ``    .MMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMM                     `         .`   ..MMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMMF`                    .`      ```   ..MMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMM`                      `     ` '`   :dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMMF.                      `    `.`     JMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMM:                      ``   ``.`   ``MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMM.                        `  ` .    ` dMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMM1                          `` `     `.,MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMM'`        `                 ` ``  `  `.`MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMM3       `   `               `` `       `.MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMNb`                        `           .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMML`.                                   .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMF``                                  .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMMMF.                                   `WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMMM#1.                   ```               WMMY?WMMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMMF  `                          ```      .     ```dMMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMM                  `   ` ``   ``                 `HMMMMMMMMMMMMMMMMMMMMMMM
echo  MMF.               ``                . .```     `` ``JMMMMMMMMMMMMMMMMMMMMMMM
echo  MMMM           ..JNNNNNNNNNNNNNNNNNNJ,.JgJ`....... ..J......,..............WM
echo  MMMM`         .MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMF.MM
echo  MMMM1`     `.JMMMMMMMMMMMMMMMMMMMMMMMMMMMM                             MMF#4M
echo  MMMM       `.JMMMMMMMMMMMMMMMMMMMMMMMMMMMM                             MM8#dM
echo  MMMM.      ``JMMMMMMMMMMMMMMM#=` `?TMMMMMM        /\ ^|_ ^| [- ^|\^|       MM:#qM
echo  MMMM.      ` .MMMMMMMMMMMMMMMNg,.   `.MMMM      _           _          MM:#dM
echo  MMMMM        .MMMMMMMMMMMMMMMMMMMa.   .MMM      \  \/\/ /\ ^|^< ^|\/^|     MMx#dM
echo  MMMMM `    ` ..MMMMMMMMMMMMMMMMMMMN.   TMM      ~                      M#tFWM
echo  MMMMMaJ`       .UMMMMMMMMMMMMMMMMMM`   `JM             by              M#:NdM
echo  MMMMMMM,        `.MMMMMMMMMMMMMMMMF`    JM                             MM1#WM
echo  MMMMMMMN.x        `.YMMMMMMMMMMMM9`    .MM       BLACK CAT GAMES       MM;#MM
echo  MMMMMMMMMMe`           ?7YYYMYY"`      JMM                             MbF#MM
echo  MMMMMMMMMMMe  .`          ``         .JMMM  Launcher and ascii proudly MNFMUM
echo  MMMMMMMMMMMMNMMNa,                  .MMMMM  presented by the Lightfoot MMF@jM
echo  MMMMMMMMMMMMMMMMMMN,.,          ...gMMMMMM                             MMN#NM
echo  MMMMMMMMMMMMMMMMMMMMMMMNNggg,.MMMMMMMMMMMM                             MM5#MM
echo  MMMMMMMMMMMMMMMMMMMMMMMMMMMMMNgMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNMMMMNMNMM


: wait for keypress, before actually doing stuff.
pause >nul


: now do stuff.  ONE: delete old menu map.
del alienswarmstartup.ut2

: do stuff          TWO: copy target into this directory.
copy menumaps\%target%.ut2

: do stuff          THREE: rename target into what the game expects.
ren %target%.ut2 AlienSwarmStartUp.ut2


: clear variables
set number=
set target=
set descrip=

cd..
AlienSwarm.exe
: (this would be the place to set ?mutator=... or other options)

exit


: the following are subroutines for setting the map description
:
: in case there are more menu maps to include: they could be added
: here, provided that you also add another if-condition up there.
: also, raise 'number' then, of course. 


:Original
set descrip=The original menu map.    
goto hell
:Sigma
set descrip=The Sigma campaign lobby. 
goto hell
:Telic
set descrip=The Telic campaign lobby. 
goto hell
:Conrad
set descrip=The mothership USS Conrad.
goto hell
:APC
set descrip=The APC at a close view.  
goto hell

Last edited by lightfoot; 12th Nov 2008 at 03:02 PM.
lightfoot is offline   Reply With Quote