Starting map in a campaign?


(SteelRat) #1

What is required to make a map possible to have as a starting map in a campaign?
I may be wrong, but I think only radar, oasis and battery are valid starting maps in a campaign of the official SD maps?

Are there any specific settings required or have I got everything wrong??

/SteelRat


(MrLego) #2

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


(SteelRat) #3

Thanks Mr Lego!


(SiliconSlick) #4

However, please don’t include a campaign with V2 base!

Campaigns should be distributed seperately from maps.

SiliconSlick


(SteelRat) #5

No worries SiliconSlick…I was just curious and had forgotten how I created my first campaigns :slight_smile:

/SteelRat