PDA

View Full Version : Completely Random Gametype and Map Rotation


=AWOL=Manoe
12-23-2007, 01:11 PM
My maplist is below. What am I doing wrong??? I upload this to my server and restart and it loads a completely different first map. I am thinking that I have to many maps listed?

//set sv_mapRotation "gametype war mp_crash_snow gametype koth map mp_convoy gametype sab map mp_farm gametype sd map mp_bog gametype dm map mp_shipment gametype war map mp_overgrown gametype koth map mp_strike gametype sab map mp_citystreets gametype sd map mp_vacant gametype war map mp_crash gametype koth map mp_pipeline gametype sab map mp_showdown gametype sd map mp_countdown gametype war map mp_farm gametype koth map mp_overgrown gametype sab map mp_strike gametype sd map mp_citystreets gametype war map mp_bog gametype koth map mp_cargoship gametype sab map mp_bloc gametype sd map mp_showdown gametype war map mp_pipeline gametype koth map mp_farm gametype sab map mp_convoy gametype sd map mp_crash gametype war map mp_strike gametype koth map mp_bloc gametype sab map mp_pipeline gametype sd map mp_convoy gametype war map mp_countdown gametype koth map mp_backlot gametype sab map mp_bog gametype sd map mp_strike gametype war map mp_showdown gametype koth map mp_crossfire gametype sab map mp_crash gametype sd map mp_farm gametype war map mp_citystreets gametype koth map mp_crash gametype sab map mp_overgrown"


set sv_maprotationcurrent ""

-=B2Z=-Goucho
12-23-2007, 01:21 PM
I am no expert m8 but your server command line dictates the first map. If you have no access to this then ask your server provider to change it to the map and gametype you want.

Also get rid of the // in front of set as that stops it but remember to stick // in front of the present one.

OEW Batman
12-23-2007, 04:41 PM
The server command line points to the mod and file being used but does not set map rotattion or initial map.

You need to remove the // as that "remarks" or ignores the line.

Wizz
12-23-2007, 05:34 PM
Make this:


//set sv_mapRotation "gametype war mp_crash_snow gametype koth map mp_convoy gametype sab map mp_farm gametype sd map mp_bog gametype dm map mp_shipment gametype war map mp_overgrown gametype koth map mp_strike gametype sab map mp_citystreets gametype sd map mp_vacant gametype war map mp_crash gametype koth map mp_pipeline gametype sab map mp_showdown gametype sd map mp_countdown gametype war map mp_farm gametype koth map mp_overgrown gametype sab map mp_strike gametype sd map mp_citystreets gametype war map mp_bog gametype koth map mp_cargoship gametype sab map mp_bloc gametype sd map mp_showdown gametype war map mp_pipeline gametype koth map mp_farm gametype sab map mp_convoy gametype sd map mp_crash gametype war map mp_strike gametype koth map mp_bloc gametype sab map mp_pipeline gametype sd map mp_convoy gametype war map mp_countdown gametype koth map mp_backlot gametype sab map mp_bog gametype sd map mp_strike gametype war map mp_showdown gametype koth map mp_crossfire gametype sab map mp_crash gametype sd map mp_farm gametype war map mp_citystreets gametype koth map mp_crash gametype sab map mp_overgrown"


set sv_maprotationcurrent ""


To this:


set sv_maprotationcurrent ""

set sv_mapRotation "gametype war mp_crash_snow gametype koth map mp_convoy gametype sab map mp_farm gametype sd map mp_bog gametype dm map mp_shipment gametype war map mp_overgrown gametype koth map mp_strike gametype sab map mp_citystreets gametype sd map mp_vacant gametype war map mp_crash gametype koth map mp_pipeline gametype sab map mp_showdown gametype sd map mp_countdown gametype war map mp_farm gametype koth map mp_overgrown gametype sab map mp_strike gametype sd map mp_citystreets gametype war map mp_bog gametype koth map mp_cargoship gametype sab map mp_bloc gametype sd map mp_showdown gametype war map mp_pipeline gametype koth map mp_farm gametype sab map mp_convoy gametype sd map mp_crash gametype war map mp_strike gametype koth map mp_bloc gametype sab map mp_pipeline gametype sd map mp_convoy gametype war map mp_countdown gametype koth map mp_backlot gametype sab map mp_bog gametype sd map mp_strike gametype war map mp_showdown gametype koth map mp_crossfire gametype sab map mp_crash gametype sd map mp_farm gametype war map mp_citystreets gametype koth map mp_crash gametype sab map mp_overgrown"


The way you had it with the set sv_maprotationcurrent "" AFTER the map rotation would clear out the map rotation you just set. The set sv_maprotationcurrent "" setting comes BEFORE the map rotation "always".

Wizard

OEW Batman
12-23-2007, 10:11 PM
Make this:


//set sv_mapRotation "gametype war mp_crash_snow gametype koth map mp_convoy gametype sab map mp_farm gametype sd map mp_bog gametype dm map mp_shipment gametype war map mp_overgrown gametype koth map mp_strike gametype sab map mp_citystreets gametype sd map mp_vacant gametype war map mp_crash gametype koth map mp_pipeline gametype sab map mp_showdown gametype sd map mp_countdown gametype war map mp_farm gametype koth map mp_overgrown gametype sab map mp_strike gametype sd map mp_citystreets gametype war map mp_bog gametype koth map mp_cargoship gametype sab map mp_bloc gametype sd map mp_showdown gametype war map mp_pipeline gametype koth map mp_farm gametype sab map mp_convoy gametype sd map mp_crash gametype war map mp_strike gametype koth map mp_bloc gametype sab map mp_pipeline gametype sd map mp_convoy gametype war map mp_countdown gametype koth map mp_backlot gametype sab map mp_bog gametype sd map mp_strike gametype war map mp_showdown gametype koth map mp_crossfire gametype sab map mp_crash gametype sd map mp_farm gametype war map mp_citystreets gametype koth map mp_crash gametype sab map mp_overgrown"


set sv_maprotationcurrent ""


To this:


set sv_maprotationcurrent ""

set sv_mapRotation "gametype war mp_crash_snow gametype koth map mp_convoy gametype sab map mp_farm gametype sd map mp_bog gametype dm map mp_shipment gametype war map mp_overgrown gametype koth map mp_strike gametype sab map mp_citystreets gametype sd map mp_vacant gametype war map mp_crash gametype koth map mp_pipeline gametype sab map mp_showdown gametype sd map mp_countdown gametype war map mp_farm gametype koth map mp_overgrown gametype sab map mp_strike gametype sd map mp_citystreets gametype war map mp_bog gametype koth map mp_cargoship gametype sab map mp_bloc gametype sd map mp_showdown gametype war map mp_pipeline gametype koth map mp_farm gametype sab map mp_convoy gametype sd map mp_crash gametype war map mp_strike gametype koth map mp_bloc gametype sab map mp_pipeline gametype sd map mp_convoy gametype war map mp_countdown gametype koth map mp_backlot gametype sab map mp_bog gametype sd map mp_strike gametype war map mp_showdown gametype koth map mp_crossfire gametype sab map mp_crash gametype sd map mp_farm gametype war map mp_citystreets gametype koth map mp_crash gametype sab map mp_overgrown"


The way you had it with the set sv_maprotationcurrent "" AFTER the map rotation would clear out the map rotation you just set. The set sv_maprotationcurrent "" setting comes BEFORE the map rotation "always".

Wizard

No offense, but rubbish. His only issue is the // that remarks out the first line and makes it a totally ignored command. Leading off with set sv_mapRotation is legit. Ending with set sv_maprotationcurrent "" will not clear out the map rotation, I have two servers that can attest to that.

Wizz
12-24-2007, 07:00 AM
No offense, but rubbish.

snip

snip


Dude do your homework on how to run a server. And let me school ya in this map rotation issue by this:


Defining Map Rotations
Map rotation is a list of maps the server will load. As it map finishes, it will load the next map in the rotation. Call of Duty has 2 cvars designed to manage this ability (both are used by the server): sv_MapRotation and sv_MapRotationCurrent.

sv_MapRotation is the main map list variable and is what server uses to load its list of maps. sv_MapRotationCurrent is auto set by the server itself, based on the maps defined in sv_MapRotation – think of it as a memory buffer. The server reads sv_MapRotation, assigns the maps defined in it to sv_MapRotationCurrent, and then uses sv_MapRotationCurrent when loading the next map(s). This can be very confusing as people tend to only set sv_MapRotation, ignoring sv_MapRotationCurrent, and then wonder why the old maps previously defined in sv_MapRotation are being loaded instead of their new ones. To avoid this, server admins MUST first clear sv_MapRotationCurrent BEFORE changing sv_MapRotation and loading the next map.

When defining map rotations, you MUST follow the correct format or you risk crashing the server. You MUST precede each map name by the map command (i.e. map mp_harbor). You may also optionally add a gametype for each map in your map list (i.e. gametype sd map mp_harbor). If you do not define gametype for each map in your map list, the server will use whatever mode you have defined in g_gametype.

The following are example setups for map rotations:

HeadQuarters Map List Example
//Clear the current map rotation (should one exist)

set sv_mapRotationCurrent ""

//Define the map rotation

set sv_mapRotation "map mp_railyard map mp_brecourt map mp_rocket”

//Define the gametype to be used for all maps in the new rotation

set g_gametype “hq”

//Load the first map

map mp_rocket

NOTE: In the above example, all maps will play in HeadQuarters mode.


This info can be found here:

http://www.dajoint.nl/rcon.html#_Toc66922834

And please dont come in here and say that is for CoD and not CoD4, cod is cod period and the cvars works the same across the board with just a couple of exceptions, namely the friendly fire cvar ( renamed only ), the function is the same for example.

OEW Batman
12-25-2007, 10:48 AM
And a Merry Christmas to you too! LOL As I said before, I have two servers up and map rotation works perfectly in exactly the same format as the original poster, which you refuse to believe of course, so here it is:

// Map_rotation
set sv_mapRotation "gametype dom map mp_strike gametype war map mp_pipeline gametype war map mp_crash_snow gametype sab map mp_crossfire gametype war map mp_farm gametype war map mp_backlot gametype war map mp_overgrown gametype sab map mp_convoy gametype dom map mp_citystreets gametype war map mp_countdown gametype war map mp_bloc gametype dom map mp_crash_snow"

set sv_maprotationcurrent ""

I really don't know why you're beating this dead horse (apologies to horse fans), but I do thank you for quoting information that validates what I said. Ultimately, I think you've over-engineered the solution to his problem.

He has one list of map, nothing fancy. No g_gametype, no separate lists of dm and war and sd maps. His info is completely valid and will work exactly as he wants, AS LONG AS he removes the // which remarks out that line - and which is the ONLY thing preventing the rotation from working and repeating perfectly. Reversing maprotation and maprotationcurrent is completely unnecessary.

Ghost-Ryder
12-25-2007, 11:05 AM
The only thing you need to watch is the max number of maps in the rotation.
i think the max is 1024 chars for the rotation.

{CBJ}jim
12-25-2007, 02:43 PM
OK have tried just about everything you guys suggest here and does not seem to work. Server will not restart after trying to set up a alternate game play map rotation, any suggestion? I am thinking it might be the map choices for mine?

set sv_mapRotationCurrent ""

set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant gametype sab map mp_backlot gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant gametype sd map mp_backlot gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_shipment gametype sd map mp_showdown"

set g_gametype "koth"


It is 1019 characters long:salute:

=AWOL=Manoe
12-25-2007, 03:08 PM
It was a couple of things. Removed the // and took a couple out of the rotation and it worked. Having the command at the end of the rotation does NOT clear out the rotation. It goes and goes :)

Thanks!

-=B2Z=-Goucho
12-25-2007, 05:11 PM
So my short and to the point post worked hehehe ;)

OEW Batman
12-25-2007, 09:09 PM
Short is good! :D

{CBJ}jim
12-26-2007, 10:46 AM
It was a couple of things. Removed the // and took a couple out of the rotation and it worked. Having the command at the end of the rotation does NOT clear out the rotation. It goes and goes :)

Thanks!

Great to hear Manoe.

How man maps did you have to delete in the map rotation to get it to work and could you possibly post your conf for the map rotation file here for us to view how you got it to work

Thank you in advance

theMechanic
12-26-2007, 10:56 AM
OK have tried just about everything you guys suggest here and does not seem to work. Server will not restart after trying to set up a alternate game play map rotation, any suggestion? I am thinking it might be the map choices for mine?

set sv_mapRotationCurrent ""

set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant gametype sab map mp_backlot gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant gametype sd map mp_backlot gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_shipment gametype sd map mp_showdown"

set g_gametype "koth"


It is 1019 characters long:salute:

jim, in cod4, i dont think you need the set g_gametype "koth", but using it don't hurt anything.
BUT, It needs to be before the mapstring.

{CBJ}jim
12-26-2007, 03:29 PM
thanks your 100% right just the map rotaion and the set sv_mapRotationCurrent ""
line works great Thanks all.

AngryMan
01-03-2008, 12:56 PM
OK guys, this all seems to be straight forward....but... I have tried replacing my original maprotation.cfg below:

/************************************************** ****************************
// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch
//************************************************** ****************************
set g_gametype "war"

//************************************************** ****************************
// DM -- FREE FOR ALL DEATHMATCH
//************************************************** ****************************
//set sv_mapRotation "gametype dm map mp_backlot gametype dm map mp_bloc gametype dm map mp_bog gametype dm map mp_cargoship gametype dm map mp_citystreets gametype dm map mp_convoy gametype dm map mp_countdown gametype dm map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype dm map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant"

//************************************************** ****************************
// DOM -- DOMINATION
//************************************************** ****************************
//set sv_mapRotation "gametype dom map mp_backlot gametype dom map mp_bloc gametype dom map mp_bog gametype dom map mp_cargoship gametype dom map mp_citystreets gametype dom map mp_convoy gametype dom map mp_countdown gametype dom map mp_crash gametype dom map mp_crossfire gametype dom map mp_farm gametype dom map mp_overgrown gametype dom map mp_pipeline gametype dom map mp_shipment gametype dom map mp_showdown gametype dom map mp_strike gametype dom map mp_vacant"

//************************************************** ****************************
// KOTH -- HEADQUARTERS
//************************************************** ****************************
//set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_bloc gametype koth map mp_bog gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_countdown gametype koth map mp_crash gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_overgrown gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant"

//************************************************** ****************************
// SAB -- SABOTAGE
//************************************************** ****************************
//set sv_mapRotation "gametype sab map mp_backlot gametype sab map mp_bloc gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant"

//************************************************** ****************************
// SD -- SEARCH & DESTROY
//************************************************** ****************************
//set sv_mapRotation "gametype sd map mp_backlot gametype sd map mp_bloc gametype sd map mp_bog gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_convoy gametype sd map mp_countdown gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_pipeline gametype sd map mp_shipment gametype sd map mp_showdown gametype sd map mp_strike gametype sd map mp_vacant"

//************************************************** ****************************
// WAR -- TEAM DEATH MATCH
//************************************************** ****************************
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"/************************************************** ****************************
// First gametype to load
// "dm" - free for all deathmatch
// "dom" - domination
// "koth" - headquarters
// "sab" - sabotage
// "sd" - search & destroy
// "war" - team deathmatch
//************************************************** ****************************
set g_gametype "war"

//************************************************** ****************************
// DM -- FREE FOR ALL DEATHMATCH
//************************************************** ****************************
//set sv_mapRotation "gametype dm map mp_backlot gametype dm map mp_bloc gametype dm map mp_bog gametype dm map mp_cargoship gametype dm map mp_citystreets gametype dm map mp_convoy gametype dm map mp_countdown gametype dm map mp_crash gametype dm map mp_crossfire gametype dm map mp_farm gametype dm map mp_overgrown gametype dm map mp_pipeline gametype dm map mp_shipment gametype dm map mp_showdown gametype dm map mp_strike gametype dm map mp_vacant"

//************************************************** ****************************
// DOM -- DOMINATION
//************************************************** ****************************
//set sv_mapRotation "gametype dom map mp_backlot gametype dom map mp_bloc gametype dom map mp_bog gametype dom map mp_cargoship gametype dom map mp_citystreets gametype dom map mp_convoy gametype dom map mp_countdown gametype dom map mp_crash gametype dom map mp_crossfire gametype dom map mp_farm gametype dom map mp_overgrown gametype dom map mp_pipeline gametype dom map mp_shipment gametype dom map mp_showdown gametype dom map mp_strike gametype dom map mp_vacant"

//************************************************** ****************************
// KOTH -- HEADQUARTERS
//************************************************** ****************************
//set sv_mapRotation "gametype koth map mp_backlot gametype koth map mp_bloc gametype koth map mp_bog gametype koth map mp_cargoship gametype koth map mp_citystreets gametype koth map mp_convoy gametype koth map mp_countdown gametype koth map mp_crash gametype koth map mp_crossfire gametype koth map mp_farm gametype koth map mp_overgrown gametype koth map mp_pipeline gametype koth map mp_shipment gametype koth map mp_showdown gametype koth map mp_strike gametype koth map mp_vacant"

//************************************************** ****************************
// SAB -- SABOTAGE
//************************************************** ****************************
//set sv_mapRotation "gametype sab map mp_backlot gametype sab map mp_bloc gametype sab map mp_bog gametype sab map mp_cargoship gametype sab map mp_citystreets gametype sab map mp_convoy gametype sab map mp_countdown gametype sab map mp_crash gametype sab map mp_crossfire gametype sab map mp_farm gametype sab map mp_overgrown gametype sab map mp_pipeline gametype sab map mp_shipment gametype sab map mp_showdown gametype sab map mp_strike gametype sab map mp_vacant"

//************************************************** ****************************
// SD -- SEARCH & DESTROY
//************************************************** ****************************
//set sv_mapRotation "gametype sd map mp_backlot gametype sd map mp_bloc gametype sd map mp_bog gametype sd map mp_cargoship gametype sd map mp_citystreets gametype sd map mp_convoy gametype sd map mp_countdown gametype sd map mp_crash gametype sd map mp_crossfire gametype sd map mp_farm gametype sd map mp_overgrown gametype sd map mp_pipeline gametype sd map mp_shipment gametype sd map mp_showdown gametype sd map mp_strike gametype sd map mp_vacant"

//************************************************** ****************************
// WAR -- TEAM DEATH MATCH
//************************************************** ****************************
set sv_mapRotation "gametype war map mp_backlot gametype war map mp_bloc gametype war map mp_bog gametype war map mp_cargoship gametype war map mp_citystreets gametype war map mp_convoy gametype war map mp_countdown gametype war map mp_crash gametype war map mp_crossfire gametype war map mp_farm gametype war map mp_overgrown gametype war map mp_pipeline gametype war map mp_shipment gametype war map mp_showdown gametype war map mp_strike gametype war map mp_vacant"

------------------------------

With this one:

set sv_mapRotationCurrent ""

set sv_maprotation "gametype dom map mp_backlot gametype sab map mp_bloc gametype sd map mp_bog gametype koth map mp_cargoship gametype dom map mp_citystreets gametype sab map mp_convoy gametype sd map mp_countdown gametype koth map mp_crash gametype dom map mp_crossfire gametype sab map mp_farm gametype sd map mp_overgrown gametype koth map mp_pipeline gametype dom map mp_shipment gametype sab map mp_showdown gametype sd map mp_strike gametype koth map mp_vacant gametype sab map mp_backlot gametype sd map mp_bloc gametype koth map mp_bog gametype dom map mp_cargoship gametype sab map mp_citystreets gametype sd map mp_convoy gametype koth map mp_countdown gametype dom map mp_crash gametype sab map mp_crossfire gametype sd map mp_farm gametype koth map mp_overgrown gametype dom map mp_pipeline gametype sab map mp_shipment gametype sd map mp_showdown gametype koth map mp_strike gametype dom map mp_vacant gametype sd map mp_backlot gametype koth map mp_bloc gametype dom map mp_bog gametype sab map mp_cargoship gametype sd map mp_citystreets gametype koth map mp_convoy gametype dom map mp_countdown gametype sab map mp_crash gametype sd map mp_crossfire gametype koth map mp_farm gametype dom map mp_overgrown gametype sab map mp_pipeline gametype sd map mp_shipment gametype koth map mp_showdown gametype dom map mp_strike gametype sab map mp_vacant gametype koth map mp_backlot gametype dom map mp_bloc gametype sab map mp_bog gametype sd map mp_cargoship gametype koth map mp_citystreets gametype dom map mp_convoy gametype sab map mp_countdown gametype sd map mp_crash gametype koth map mp_crossfire gametype dom map mp_farm gametype sab map mp_overgrown"

---------------------------------------


And my server will not start, I revert to the old and it runs.. I have tried all the suggestions in this thread but it still will not start.

Here is my start up: +set dedicated 2 +set net_ip xxx.xxx.xxx.xxx +set sv_maxclients 16 +set net_port 28960 +exec config.cfg +map_rotate

Is the rotation too long???


Any help fo this beginner would be awesome...TX

AngryMan
01-03-2008, 03:13 PM
Please disregard my earlier post, I have discoverd the issue, I had too many maps in my rotation.

Shortening my rotation was the key as suggested by an earlier post.

Aplologies for wasting your time.

Angry