[Admin]Campaign rotation


(DrFunkenstein) #1

We’re having a bit of trouble on our server with campaign rotations after a server reboot. The game starts with Valley instead of Refinery as it’s supposed to and it gets stuck on the North American Campaign if no one intervenes. Executing “server.cfg” manually fixes the problem.

Here’s the relevant part of our server.cfg:

set m0 "set g_nextMap $m1;spawnServer campaign_africa"
set m1 "set g_nextMap $m2;spawnServer campaign_northamerica"
set m2 "set g_nextMap $m3;spawnServer campaign_northeurope"
set m3 "set g_nextMap $m0;spawnServer campaign_pacific"

vstr m0

Is there anything wrong with that?

We asked our GSP to check if the file was executed after a reboot and they said it was called for in the command line.

We’ll get back to them but I want to make sure we’ve done everything right on our end before we do that. Any help would be appreciated.

Dr. Funkenstein


(Crytiqal) #2

// campaign rotation settings
set si_rules “sdGameRulesCampaign”

seta cmpgn0 “set g_nextMap $cmpgn1; spawnServer campaign_africa”
seta cmpgn1 “set g_nextMap $cmpgn2; spawnServer campaign_northamerica”
seta cmpgn2 “set g_nextMap $cmpgn3; spawnServer campaign_northeurope”
seta cmpgn3 “set g_nextMap $cmpgn0; spawnServer campaign_pacific”
vstr cmpgn0

This is my campaign.cfg rotation config.
Only difference I see is i use seta instead of set.


(DrFunkenstein) #3

Thanks for the reply, Crytiqal.

We tried that today, but the problem remains. One other thing that I can think of is an error in the command line they use to start the server, but I have no idea how it looks and no idea how it should look.

Would be great if someone could post an example of a correct command line to start the server.

Dr. Funkenstein


(Crytiqal) #4

+set fs_savePath “X:\path o\server_propub” +set fs_userPath “X:\path o\server_propub” +set fs_game “etqwpro” +set net_port “27734” +exec “server_propub.cfg”

This is what i have.
Then server_propub.cfg executes a rotation.cfg


(DrFunkenstein) #5

Thank you very much for your help!

Dr. Funkenstein


(DrFunkenstein) #6

Problem is fixed.

They had this as a part of the command line:

+exec server.cfg +spawnServer "campaign_northamerica"

Removing the +spawnServer part of the command line did the trick.

Thanks for the help, Crytiqal!

Dr. Funkenstein


(Crytiqal) #7

Glad it has worked out!

Cheers