http://www.urbanterror.info/support/178-map-cycles/
 Login | Register 
Advertisement
printer


Server Admin

Map Cycles

Map cycles in Urban Terror have been done to make configuring them easier. Instead of having strange commands in your server.cfg, Urban Terror loads maps and sets information from a simple text file.

By default, the map rotation file is called mapcycle.txt. This file must be placed in the q3ut4 folder of the server. You can change the name of the map cycle file by setting the g_mapcycle CVAR to the name of the alternate file. For example, to use a map rotation file called mymaps.txt, you'd go to the console and type:

/g_mapcycle " mymaps.txt"

The map rotation file is a basic text file (you can use MS Notepad, BBEdit, Word, etc to create it). In its most simple form, the file is just a list of maps, one map to a line. When the last map is finished, the first map in the file is loaded and the process repeats. So, for example, a mapcycle.txt that looks like this:

ut_ricochet
ut_swim
ut_uptown

Would load up ricochet, then swim, then uptown, and then restart.

You can also use the map rotation file to set any server CVAR. The format for this is:

mapname
{
cvar value
cvar value
...
}


The cvar is the name of any Urban Terror server CVAR (eg: g_gametype) and the value is the value you want it set to. In the following example, the first example has been extended to set CVARs on ut_uptown:

ut_ricochet
ut_swim
ut_uptown
{
g_gametype 6
g_friendlyfire 1
g_maxteamkills 0
}
level_none By FrozenSand  -  Friday, 10 June 2011  -  viewed by 2417 members and 38116 visitors

Advertisement

Copyright © 1999-2017 Frozensand Games Limited  |  All rights reserved  |  Urban Terror™ and FrozenSand™ are trademarks of Frozensand Games Limited

Frozensand Games is a Limited company registered in England and Wales. Company Reg No: 10343942