Updating campaign without shutdown ?


(Fenris) #1

Hello

Being somewhat new (still ;)) to running my little server, which turned out a bit more popular than expected, I seem to find it full all day (and night) long, and so was thinking I’d ask before I tried it… :smiley:
but is it possible to add new maps and change the campaign without shutting down the server, and will this work without disconnecting the players ?

Of course I could always just shut it down a quickie, but I thought why not check if it works fine with it still running if anyone’s tried it before ?


(ND80) #2

You cant add new maps without shutting down the server (at least as far as I know), but you can switch campaigns if you want as long as you have access to the server. Easiest way is using rcon. For example, if you were running the 3 map campaign and had a 6 map campaign named campaigncycle2.cfg, you would type:

/rcon exec campaigncycle2.cfg and the server would restart without kicking any of the players and restart with the 6 map campaign.


(SiliconSlick) #3

Haven’t tested this, but you can give it a try:


// set cX for all available campaigns
seta c1 "set g_gametype 4;map oasis;campaign cmpgn_northafrica;seta nextcampaign vstr c1"
seta c2 "set g_gametype 4;map radar;campaign cmpgn_centraleurope;seta nextcampaign vstr c2"
seta c3 "set g_gametype 4;map battery;campaign cmpgn_completemap;seta nextcampaign vstr c3"
seta c4 "set g_gametype 4;map battery;campaign slicks_campaign;seta nextcampaign vstr c4"
seta c5 "set g_gametype 4;map battery;campaign slicks10_campaign;seta nextcampaign vstr c5"

// start the server with the first one
vstr c1

// to change the campaign to a new one without disturbing the
// present campaign and/or restarting the server, do:
//
//    seta nextcampaign "vstr cX"
//
// in the console where X is one of the campaigns defined above (1-5).
// As soon as the current campaign ends the next one should kick in.

SiliconSlick


(Fenris) #4

Thanks, I’ll give it a try, otherwise it will just have to be a standard stop/start :slight_smile: oh, another question then, I don’t think it’s possible now, but wouldn’t it be a nice idea in an update to be able to vote maps into a campaign, or am I thinking wrong and it wouldn’t work ?