In order for your campaign to function properly you need 2 files, a campaign file and a config file.
Your config file determines what the default map will be.
Contents of a campaign file called “cmpgn_name_here.campaign”:
{
name "My Custom Campaign"
shortname "cmpgn_name_here"
description "Standard and Custom maps.**Raiders - Final**Venice - Final**Navarone - Final**Temple - Final**Operation Archery - B4**Goldrush**Fueldump**Oasis"
maps "raiders;venice;navarone;temple_final;mc_bergen_beta_a4;goldrush;fueldump;oasis"
mapTC 374 374
type "wolfmp"
}
Contents of a config file called “cmpgn_name_here.cfg”:
set d1 "campaign cmpgn_name_here ; set nextcampaign vstr d2"
set d2 "swap_teams ; campaign cmpgn_name_here ; set nextcampaign vstr d1"
// server doesn't recognize the campaign command when the gamecode isn't running yet.
set d_initial "set g_gametype 4 ; map raiders ; set nextcampaign vstr d2"
vstr d_initial
Add this to your server.cfg file to execute the campaign automatically in case of a reboot:
exec cmpgn_name_here.cfg
set com_watchdog_cmd "exec cmpgn_name_here.cfg"
Put the “cmpgn_name_here.cfg” in your etmain folder
Put the “cmpgn_name_here.campaign” in your etmain/scripts folder
Substitute “cmpgn_name_here” with whatever title you care to use.
This is our current server campaign and it starts with Raiders