To make a Soldier of Fortune II server change maps by itself, list your maps in a map cycle file and point the sv_mapcycle setting at it in server.cfg. When a match ends, the server moves to the next map in the list. The classic Quake III method, a chain of vstr commands, also works and lets you change game type with each map.
Choose maps players have
Most SoF2 servers don’t send maps to players. If your rotation includes a custom map someone doesn’t have, they get a “missing map” error and leave. So:
- Mix the game’s own maps with a few well-known custom maps.
- Bundle your custom maps into one map pack and link it in your server name, message of the day or Discord.
- Check which maps people actually play. These are the most played on public servers in the last 30 days:
Method 1: sv_mapcycle
- Create the map cycle file next to
server.cfg, for examplemapcycle.txt, and list your maps (format below). - Point the server at it in
server.cfg:seta sv_mapcycle "mapcycle.txt" - Load the first map at the end of
server.cfg, for examplemap mp_shop. - Restart the server and let a match finish to check it moves on.
Each entry names the map and, optionally, the game type to play on it:
mp_shop
{
gametype "ctf"
}
mp_kam2
{
gametype "inf"
}
About sv_mapcycle. Setting it to none turns map cycling off, and the same map replays.
Method 2: a vstr rotation
Quake III engine games can chain settings with vstr, which runs the commands stored in a variable. Each step loads a map and sets the next step. Put this at the end of server.cfg:
set m1 "g_gametype ctf; map mp_shop; set nextmap vstr m2"
set m2 "g_gametype inf; map mp_kam2; set nextmap vstr m3"
set m3 "g_gametype ctf; map mp_shop2; set nextmap vstr m1"
vstr m1
The last line starts the rotation. Because each step sets the game type, one rotation can mix CTF, Infiltration and other modes.
Mods with their own rotation
RoCmod, 1fx. Mod and other mods may have their own rotation settings or vote-based map choice. If your mod has one, use it rather than mixing methods.
Changing the map by hand
With the rcon password you can change map at any time with /rcon map mp_shop, or skip to the next map in the rotation. Players can call a map vote if voting is on. See admin commands.
Frequently asked questions
Why does my server replay the same map?
sv_mapcycle is set to none, the file it points to can’t be found, or the file has a mistake. Check the server console when a match ends.
Can a rotation change game type?
Yes. Set the game type per map in the map cycle file, or with g_gametype in each step of a vstr rotation.
How many maps should a rotation have?
Five to ten is typical. Too many custom maps means more players missing files.
