stopwatch campaign.


(A-Tuin) #1

OK, call me stupid or whatever … I’d like to create a “stopwatch style” campaign for my server.

imagine …

oasis - swapteams - oasis - railgun - swapteams - railgun - swapteams - goldrush - swapteams - goldrush.

You get the idea, I could do this in stopwatch mode, with a custom map rotation script and xp not resetting, but it would be nice if it could be done in a .campaign file so the welcome screen shows all the maps in the campaign etc.

Google’s not very helpful and #splashdamage seems full of people either sleeping or playing :frowning:

Has anybody tried doing this ? are there any “secrets” to the .campaign files ?

Who knows :banana:

[LGND] A-Tuin

http://www.lgnd.org.uk/
http://www.games.legend.co.uk


(Rippin Kitten) #2

You can, but its incredibly messy.

The .campaign script file only stores the maps to be used in the rotation. There’s no place to add server commands to be run between maps. The campaigncycle.cfg can store server commands, but its only used between entire campaigns.

This means two things. If you have your heart set on staying in campaign mode you can do this with the help of etpro’s per-map config feature. If you don’t mind going into stopwatch mode, you can do a “stopwatch campaign” with shrub’s xp save features.

Going the per-map config route, you extract the .bsp files for all six maps, rename them (oasis becomes oasis2) and repack them in a new pk3. This way you could have a per-map config for oasis and oasis2 to handle switching teams. Your campaign file would have a map list like this (oasis;oasis2;battery;battery2…) so you run each map twice.

Obviously this is pretty messy. Forcing clients to download a new pk3 that basically has maps that they already have is silly. Its taxing on your server’s bandwidth and would turn away many pubbers. But you keep your server in campaign mode.

The other way is using the xp persistance feature of shrub (etpro probably has a similar feature). With g_xpsave set to 7, it will only reset when the server runs the clearxp command. You just need to tweak the stopwatchcycle.cfg file to make use of this:


// Campaign Stopwatch Cycle Configuration

// Oasis Stopwatch Cycles
set m1r1 "clearxp ; map oasis ; set nextmap vstr m1r2 ; sets StopwatchRound 1"
set m1r2 "map_restart 0 ; set nextmap vstr m2r1 ; sets StopwatchRound 2"

// Battery Stopwatch Cycles
set m2r1 "map battery ; set nextmap vstr m2r2 ; sets StopwatchRound 1"
set m2r2 "map_restart 0 ; set nextmap vstr m3r1 ; sets StopwatchRound 2"

// Goldrush Stopwatch Cycles
set m3r1 "map goldrush ; set nextmap vstr m3r2 ; sets StopwatchRound 1"
set m1r2 "map_restart 0 ; set nextmap vstr m1r1 ; sets StopwatchRound 2"

// Commands to start the cycle
set g_gametype 3 // Activates Stopwatch Gametype
set g_xpsave 7 // XP only resets on clearxp command (shrub specific)
vstr m1r1 // Begins the cycle

This will start the server on Oasis for Round 1 of Stopwatch play. After two rounds, it moves on to Battery and then to Goldrush. Only at the end of Goldrush, when it loops back to m1r1, is XP cleared for the start of a new cycle.

You can add additional maps to cover the Europe campaign or custom maps. Anytime you want to start over with XP just add the clearxp command before you call the next map. Doing it after you call the map leads to strange behavior, and can potentially lead to clients getting dropped.

RK


(Roeligan) #3

Actually think this is a nice idea… Stopwatch cmgn… lol that noone has thought of that before… :clap:


(mouse) #4

hmm Infamouse has all maps running in SW mode, 6 in a row, you’ll loose the xp though (wich is good, why would you else have SW).


(Kendle) #5

Infamous if you please :eek2:

And yes ETPro can also save XP across SW rounds, b_xpstopwatch 1, but we run SW because that’s how competition ET is played, not to limit XP, although that’s an added bonus of course. :wink:


(mouse) #6

Infamous if you please :eek2:
[/quote]
LoL, the e probably followed because its in my nick, and im used to type it :slight_smile: Soz for damaging your clanname, take a pint m8 :drink:


(Mael) #7

Here’s how we set up Stopwatch campaigns with persistent XP. You do need to use use either ETpro or Shrub to carry over XP, we used shrub. You need to create a stopwatchcycle.cfg rotation file and properly configure shurb not to reset XP ever (the rotation config will reset XP).

stopwatchcycle.cfg

/Map-Cycle Stopwatch with XP reset every 2 rounds or 4 maps
//by Mael
//
//3 = Stopwatch
//Stopwatch Rotation. A full ABBA or ABAB rotation requires 4 rounds per map.
//A simple map_restart is all that is needed for rounds 2-4.

//*****Siwa Oasis Stopwatch Game
set m2r1 “g_gametype 3; map oasis; set nextmap vstr m2r2; sets StopwatchRound 1;”
set m2r2 “map_restart 0; set nextmap vstr m2r3; sets StopwatchRound 2;”

//*****Return to Carnage Canyon Stopwatch Game
set m2r3 “g_gametype 3; map carnage; set nextmap vstr m2r4; sets StopwatchRound 1;”
set m2r4 “map_restart 0; set nextmap vstr m2r5; sets StopwatchRound 2;”

//*****Seawall Battery Stopwatch Game
set m2r5 “g_gametype 3; clearXP; map battery; set nextmap vstr m2r6; sets StopwatchRound 1;”
set m2r6 “map_restart 0; set nextmap vstr m2r7; sets StopwatchRound 2;”

//*****Gold Rush Stopwatch Game
set m2r7 “g_gametype 3; map goldrush; set nextmap vstr m2r8; sets StopwatchRound 1;”
set m2r8 “map_restart 0; set nextmap vstr m2r9; sets StopwatchRound 2;”

//*****Würzburg Radar Stopwatch Game
set m2r9 “g_gametype 3; clearXP; map radar; set nextmap vstr m2r10; sets StopwatchRound 1;”
set m2r10 “map_restart 0; set nextmap vstr m2r11; sets StopwatchRound 2;”

//*****Rhine Bridge 2 Stopwatch Game
set m2r11 “g_gametype 3; map rhine2; set nextmap vstr m2r12; sets StopwatchRound 1;”
set m2r12 “map_restart 0; set nextmap vstr m2r13; sets StopwatchRound 2;”

//*****Rail Gun Stopwatch Game
set m2r13 “g_gametype 3; clearXP; map railgun; set nextmap vstr m2r14; sets StopwatchRound 1;”
set m2r14 “map_restart 0; set nextmap vstr m2r15; sets StopwatchRound 2;”

//*****Fuel Dump Stopwatch Game
set m2r15 “g_gametype 3; map fueldump; set nextmap vstr m2r16; sets StopwatchRound 1;”
set m2r16 “map_restart 0; set nextmap vstr m2r1; sets StopwatchRound 2;”

vstr m2r1

Edit the following setting in you shrub configuration.

set g_XPSave “4”

Then call stopwatchcycle.cfg from you server.cfg file.

exec stopwatchcycle.cfg

Hope this helps


(Rippin Kitten) #8

Hope you have a clearxp in the Oasis setup. Otherwise you’re going from Railgun to Fueldump to Oasis to CarnageCanyon before XP gets reset. 4 maps with 8 rounds means some serious XP whorage. =)

RK