Running a Multi-Game Map Cycle (UT2004)
From UnrealAdminWiki
Taken from a forum posting by Loibisch on the Atari Forums
Running a Multi-Game Map Cycle
Lets assume you want the following mapcycle: ONS --> CTF --> AS --> DM --> BR
Check the ini file of your server, go down to the lines that read:
[XInterface.MapListDeathMatch] MapNum=0 Maps=DM-Rankin [XInterface.MapListTeamDeathMatch] MapNum=0 Maps=DM-Rankin [XInterface.MapListCaptureTheFlag] MapNum=0 Maps=CTF-BridgeOfFate [XInterface.MapListBombingRun] MapNum=0 Maps=BR-Colossus [Onslaught.ONSMapListOnslaught] Maps=ONS-TORLAN [UT2K4Assault.ASMapList] Maps=AS-CONVOY
and change them to:
[XInterface.MapListDeathMatch] MapNum=0 Maps=BR-Colossus?game=XGame.xBombingRun [XInterface.MapListTeamDeathMatch] MapNum=0 Maps=DM-Rankin?game=xGame.xTeamGame [XInterface.MapListCaptureTheFlag] MapNum=0 Maps=AS-CONVOY?game=UT2k4Assault.ASGameInfo [XInterface.MapListBombingRun] MapNum=0 Maps=ONS-TORLAN?game=Onslaught.ONSOnslaughtGame [Onslaught.ONSMapListOnslaught] MapNum=0 Maps=CTF-BridgeOfFate?game=XGame.xCTFGame [UT2K4Assault.ASMapList] MapNum=0 Maps=DM-Rankin?game=XGame.xDeathMatch
How Does This Work?
Let's say you start the server with ONS (Onslaught).
After the map finishes the server will look up the next map in the .ini filefor the Onslaught gametype. The next "map" in that game type is CTF-BridgeOfFate?game=XGame.xCTFGame
, which forces the server to change gametype to CTF.
After the CTF map finishes, it will look for the next map to load in the CTFgame type.
The next map in there is AS-CONVOY?game=UT2k4Assault.ASGameInfo
, so the server will switch to AS.
With a little working out you can do any kind of "gamecycle" you want.