shuffle_teams command in map rotation script


(Mjolnyr) #1

I modified the campaigncycle.cfg as following:

set d1 “shuffle_teams; campaign cmpgn_northafrica ; set nextcampaign vstr d2”
set d2 “shuffle_teams; campaign cmpgn_centraleurope ; set nextcampaign vstr d1”

And I encounter severe problem during every new campaign starting, the server cannot load map properly (?), and lost response.

Hope it could be fixed in the patch that you’re working at.


(DG) #2

yeah i had problem too, but when i checked in ASE server was 9999… ran VNC and console was going totally ape-shit, just flashes of text and it was using 100% cpu. i think after one rotation, the server started constantly screaming through the map rotation without bothering to wait for game to finish :eek3:

i’m a bit hesitant to retry having shuffle in the rotation, but i think it really needs one as er good players seem to like being on the winning team alot :disgust:


(Ifurita) #3

bump. we are trying to code a shuffle into our sw rotation so that we can disable shuffle votes and get rid of those mid game shuffles


(SiliconSlick) #4

You might try removing the spaces around the semi-colons…

I found out yesterday there is a big difference between:

set d1 “pb_sv_banempty ; pb_sv_banload;campaign cmpgn_northafrica;set nextcampaign vstr d2”
set d2 “pb_sv_banempty ; pb_sv_banload;campaign cmpgn_centraleurope;set nextcampaign vstr d1”

and

set d1 “pb_sv_banempty;pb_sv_banload;campaign cmpgn_northafrica;set nextcampaign vstr d2”
set d2 “pb_sv_banempty;pb_sv_banload;campaign cmpgn_centraleurope;set nextcampaign vstr d1”

The former only does the ban empty and not the ban load
(it echoes “Server: pb_sv_banload” on the console). The
latter (with no spaces) works.

SiliconSlick


(Fenris) #5

Hm, a bit beside the original question but I’m having some error I don’t understand fully.

I’m running campaigncycles, based on the original file, however my cfg file looks this way

set d1 “shuffle_teams;campaign cmpgn_centraleurope ; set nextcampaign vstr d2”
set d2 “shuffle_teams;campaign cmpgn_complete ; set nextcampaign vstr d1”
set d_initial “set g_gametype 4 ; mp railgun ; set nextcampaign vstr d2”
vstr d_initial

My problem is that the server starts up, it runs the “complete” campaign, but once that is over it makes an xp shuffle and then starts the “complete” campaign again, not the centraleurope campaign, (also the server makes a restart)

I’m unsure why this happens, my guess is that since the campaigns have different starting maps something in this config is not valid, or does anyone have any other idea ?


(rgoer) #6

Check and make sure that nothing is being called from server.cfg that might start the “complete” campaign going before it gets a chance to exec campaigns.cfg.


(Fenris) #7

Nope, nothing at all, as far as I can see, and if I remove the shuffle_teams, and change centraleurope to complete it will work fine again.


(rgoer) #8

you mention that the spaces make a big difference… you’ve got spaces in your “d_initial” definition. Try removing those, since it’s the first one that gets /vstr’ed.


(Fenris) #9

Hmm, the one thing I do not get is why it would work with spaces when I have the “complete” campaign on both lines but not when I have different campaigns set up ? Oh well, I’ll give it a try but the spaces are there in the default setting so I’m unsure why they would interfere :slight_smile:


(Rippin Kitten) #10

I’m running this on a LAN server, and haven’t seen any of these problems. It says up all day, and while we could run 40 clients on it, we still only average about 12 to 18 a night.

All I can think of is that the shuffle_teams command seems to have every client temporarly “disconnect” from the server and rejoin. If the server were then engrossed with loading up the next map while clients were still in this connection limbo, it could cause all sorts of mayhem. Since all of our clients are on a LAN and ping isn’t a big issue, I’m guessing that’s why I haven’t seen this.

You could try adding a wait command after the shuffle_teams and see if that helps. That’ll give clients a 20th of a second to resort themselves before the server moves on to the next map.

RK


(Fenris) #11

Yes, but the problem is not actually the shuffling, that works, the main problem is that the server does not rotate between campaign A and campaign B, but instead when campaign A is finished the server restarts and runs campaign A again, when it should be running campaign B…


(ShanK-fOO) #12

:bump:

I have issues with this as well… The BeerGarden gets stuck on the post-map screen if it tries to shuffle after a campaign…

I plan to try adding a “wait 100” in there somewhere, has anyone done this already???

BTW I should note that swap_teams works fine for me. It’s shuffle_teams that’s broken. IMHO it’s a bug.


(DG) #13

fwiw, this is working fine for me:

set d1 "shuffle_teams; campaign cmpgn_northafrica; set nextcampaign vstr d2"
set d2 "shuffle_teams; campaign cmpgn_centraleurope; set nextcampaign vstr d1"

set d_initial "set g_gametype 4 ; map oasis ; set nextcampaign vstr d2"
vstr d_initial

pretty sure it does need that server patch though.


(O2.iceman) #14

Mine works the same as ^^^ no problems.


(Fenris) #15

Hm, I really do not understand why mine does not since I see absolutely no differences here, now I have tried both with and without “spaces” in the commmandline and nothing wants to work. Oh well, back to config jungle again. :frowning:


(ShanK-fOO) #16

DG, Fenris, are your servers linux or Windows?

That might be the difference, Fenris; mine are Windows and it doesn’t work.


(Fenris) #17

Mine is Linux (RedHat) so that’s not a common factor then.


(DG) #18

windows


(Mjolnyr) #19

Yes, the script works after the server patch applied.