View Full Version : sv_maprotation
sphinx175
10-31-2003, 03:41 PM
Do we have to use this variable? It's rather bulky to use and I'd much rather use a map rotation file similar to what I did in RtCW and ET where I could make a loop of a config file (for lack of a better term).
any thoughts or ideas?
ClickBouyow
10-31-2003, 04:01 PM
you can exec a map.cfg file from the servercfg.cfg file. There are several included in the pak0.pk3 file.
sphinx175
10-31-2003, 04:12 PM
Yeah, I saw those but think there has to be a better way. the sv_rotation thing works of course but it just doesn't seem very clean.
The way I've done this for the sv_rotation is that I have a separate file for the rotation which has
---
sv_rotation "gametype sd map [2,3,4,5,6....] ... [all other gametypes and maps]... gametype sd map [1]"
map [1]
---
It seemed that for whatever reason if I didn't put that map[1] after the sv_rotation it wouldn't start the server. To make sure that map[1] did get played though I put it at the end of the sv_rotation variable
In my serversetup.cfg file I start the game type as sd as well
(set g_gametype "sd"). That way map [1] doesn't start off as deathmatch [dm]
imported_IW-Inherent
10-31-2003, 04:22 PM
On the commad line you use to start the server add +map_roate at the end. That will make it start the rotation.
HankScorpio
10-31-2003, 04:26 PM
I personally think the sv_maprotation mechanism is a cool addition.
I imagine you could also do it with vstr if you don't like maprotation.
Juice
10-31-2003, 05:53 PM
This is the map rotation I am using and it hangs after the mp_harbor map so it won't restart the rotation any ideas?
set sv_mapRotation "map mp_brecourt map mp_carentan map mp_chateau map mp_dawnville map mp_depot map mp_harbor map mp_hurtgen map mp_pavlov map mp_powcamp map mp_railyard map mp_rocket map mp_ship"
map mp_hurtgen
Thanks,
Juice
imported_IW-Inherent
10-31-2003, 06:08 PM
You might need to set a gametype in that rotation. Does it cycle through all the maps up to harbor then stop? Call votes can mess with map rotations if you don't specify gametypes for the maps.
Juice
10-31-2003, 06:12 PM
Ok, I will try that.
Thanks,
Juice
Juice
10-31-2003, 09:04 PM
Thanks that worked.
Juice
Hammer
11-01-2003, 07:22 PM
I'm starting to agree that sv_maprotation is going to be a problem. Nextmap is being ignored, so the vstr loop trick will not work (I know, already tried it). IMO, the latter is much easier to manage than sv_maprotation.
What keywords, other than gametype and map, does sv_maprotation accept? If they are the only two, then just get rid of them and force the rotation to be <type> <mapname>. You'll save a lot of space on the sv_maprotation cvar.
I do however recommend you get rid of it and enable nextmap (with vstr support). Using that, in combination with all the scr_gtype_* cvars plus friendly fire settings, etc. makes for a huge change in game map rotations.
CFH666
11-02-2003, 12:07 AM
we had a probelm with the nextmap screwing up our rotation
It defaulted to nextmap = "map_restart" so after every map ends, it would reload the map. I added the line to server.cfg, nextmap "", to disable the next map, but it still kept it so I have had to do a rcon nextmap "", after i restart our server. I havnt tried adding +set nextmap "" to the command line parameters yet, Ill try that when I get a chance to shut ours down.
6
Cyberdoc
11-02-2003, 04:56 AM
This is the map rotation I am using and it hangs after the mp_harbor map so it won't restart the rotation any ideas?
set sv_mapRotation "map mp_brecourt map mp_carentan map mp_chateau map mp_dawnville map mp_depot map mp_harbor map mp_hurtgen map mp_pavlov map mp_powcamp map mp_railyard map mp_rocket map mp_ship"
map mp_hurtgen
Thanks,
Juice
We are also having a crashing porblem after Harbor.....score screen shows -1 pings and 0 scores then sever locks. Here:s our map rotation.
set g_gametype "sd" //gametype: bel, dm, re, sd, tdm
//Search and Destroy Default Description
set scr_sd_graceperiod "15" //Time at round start where spawning and
weapon choosing is still allowed, 0 - 60 seconds
set scr_sd_roundlength "5" //round length
set scr_sd_roundlimit "0" //Max Number of round wins per map
set scr_sd_scorelimit "5" //Map team score limit per map
set scr_sd_timelimit "0" //Map time limit, in minutes - 0 to 1440
map "mp_hurtgen"
set sv_mapRotation "gametype sd map mp_brecourt map mp_carentan map
mp_dawnville map mp_depot map mp_harbor map map_hurtgen map mp_pavlov map
mp_powcamp map mp_railyard map mp_rocket"
TheKomoman
11-02-2003, 09:19 AM
I'm running into rotation issues too. It comes to the end of the rotation and just stops. Voting is enabled and my players definitely makes use of it so maybe that's causing problems?
Is there a command I need to toss in there to make the rotation loop? I have +map_rotate in the command line and I'm using the rotation the IW folks posted at CallofDuty.org.
Any info would be appreciated.
sphinx175
11-02-2003, 01:27 PM
I'm running into rotation issues too. It comes to the end of the rotation and just stops. Voting is enabled and my players definitely makes use of it so maybe that's causing problems?
Is there a command I need to toss in there to make the rotation loop? I have +map_rotate in the command line and I'm using the rotation the IW folks posted at CallofDuty.org.
Any info would be appreciated.
Can you post a link to that please?
imported_IW-Inherent
11-02-2003, 02:04 PM
If you don't specify a gametype before every map in the map rotation it will have issues rotating the maps in the order you expect if people call vote.
AADiC
11-02-2003, 05:32 PM
On the commad line you use to start the server add +map_roate at the end. That will make it start the rotation.
Ok that works, but if you try to exec a diff map.cfg file without the "map mp_(mapname)" command at the end of the file it doesnt work.
Do you need that command at the end of the file no matter what?
imported_IW-Inherent
11-02-2003, 05:45 PM
your execing a config in a config?
I dont have a problem execing a config from the command line then issuing a +map_rotate after it. If you have a separate config just do 2 execs on the command line +exec server1.cfg +exec server2.cfg +map_rotate
AADiC
11-02-2003, 05:58 PM
seta g_log "server1.log"
seta protocol "1"
seta sv_pure "1"
seta g_logsync "0"
seta sv_gamespy "1"
seta sv_floodprotect "1"
seta g_forceteamspectate "1"
seta sv_invulnerabletime "3"
seta g_teamkillwarn "3"
seta g_teamkillkick "5"
seta g_teamswitchdelay "10"
seta sv_maxping "250"
seta sv_maxrate "15000"
seta scr_motd "Welcome to CoDadmin.com dedicated game server. we are testing cfg files. Server may reset"
seta sv_maxclients "22" //Max number of players
seta sv_privateclients "2"
seta g_password ""
seta g_allowvote "0"
//General Game Default Description
seta scr_allow_bar "1" //0 - disable weapon 1 - enable weapon
seta scr_allow_bren "1"
seta scr_allow_enfield "1"
seta scr_allow_fg42 "1"
seta scr_allow_kar98k "1"
seta scr_allow_kar98ksniper "1"
seta scr_allow_m1carbine "1"
seta scr_allow_m1garand "1"
seta scr_allow_mp40 "1"
seta scr_allow_mp44 "1"
seta scr_allow_nagant "1"
seta scr_allow_nagantsniper "1"
seta scr_allow_panzerfaust "1"
seta scr_allow_ppsh "1"
seta scr_allow_springfield "1"
seta scr_allow_sten "1"
seta scr_allow_thompson "1"
seta scr_allow_vote "0" //Allow call voting
seta scr_drawfriend "1" //Draws a team icon over teammates
seta scr_forcerespawn "0" //Force respawning - DM & TDM
seta scr_friendlyfire "2" //0 - off 1 - on 2 - reflect damage
//Behind Enemy Lines Default Description
seta scr_bel_alivepointtime "10" //Number of seconds to get a point for staying alive as allied
seta scr_bel_scorelimit "1" //Map score limit
seta scr_bel_timelimit "20" //Map time limit, in minutes - 0 to 1440
//Deathmatch Default Description
seta scr_dm_scorelimit "0" //Map score limit
seta scr_dm_timelimit "1" //Map time limit - 0 to 1440, in minutes
//Retrieval Default Description
seta scr_re_graceperiod "15" //Time at round start where spawning and weapon choosing is still allowed, 0 - 60 in seconds
seta scr_re_roundlength "4" //Map round length in minutes
seta scr_re_roundlimit "5" //Max Number of round wins per map
seta scr_re_scorelimit "10" //Map score limit
seta scr_re_showcarrier "0" //Show the objective carrier on compass
seta scr_re_timelimit "1" //Map time limit, in minutes - 0 to 1440
//Search and Destroy Default Description
seta scr_sd_graceperiod "10" //Time at round start where spawning and weapon choosing is still allowed, 0 - 60 seconds
seta scr_sd_roundlength "4" //round length
seta scr_sd_roundlimit "0" //Max Number of round wins per map
seta scr_sd_scorelimit "0" //Map team score limit per map
seta scr_sd_timelimit "1" //Map time limit, in minutes - 0 to 1440
//Team Deathmatch Default Description
seta scr_tdm_scorelimit "100" //Map score limit
seta scr_tdm_timelimit "1"
exec tdm_map.cfg
Ok, that is what I am running for server config. As you can see at the bottom it calls the map cfg. If I decide I want to run a diff game say BEL,in console I do a /rcon exec bel_map.cfg
set sv_hostname "CODADMIN.COM ^1BEL^7 Server"
set scr_motd "Welcome to CoDadmin.com dedicated game server. We are testing cfg files. Server may reset"
set g_gametype "bel" //gametype: bel, dm, re, sd, tdm
set sv_mapRotation "gametype bel map mp_brecourt gametype bel map mp_carentan gametype bel map mp_chateau gametype bel map mp_dawnville gametype bel map mp_depot gametype bel map mp_harbor gametype bel map mp_hurtgen gametype bel map mp_pavlov gametype bel map mp_powcamp gametype bel map mp_railyard gametype bel map mp_rocket gametype bel map mp_ship"
map mp_brecourt
Then it runs that map list, if I take out the map mp_brecourt from the end of the bel_map.cfg then it wont load.
Did I confuse you?[/code]
imported_IW-Inherent
11-02-2003, 09:41 PM
remove the exec from the first config and add it to the command line along with map_rotate. I'm not sure how changing map rotations works when its already in a rotation though.
Cyberdoc
11-03-2003, 12:41 AM
This is the same method we use, Inherent. If im undersatnding then, add both the cfg's to the server line? Then If we want to change to another game type exec whateva.cfg such as: set g_gametype "bel" //gametype: bel, dm, re, sd, tdm
set sv_mapRotation "gametype bel map mp_brecourt map mp_carentan map mp_dawnville map mp_depot map mp_harbor map mp_hurtgen map mp_pavlov map mp_powcamp map mp_railyard map mp_rocket map mp_ship map mp_chateau"
map "mp_brecourt"
HankScorpio
11-03-2003, 01:37 AM
I'm not sure how changing map rotations works when its already in a rotation though.
That's something which I've been having trouble with. I can't change to a different sv_maprotation without restarting the server.
imported_IW-Inherent
11-03-2003, 02:38 AM
It finishes out sv_maprotationcurrent so that cvar probably needs to be cleared if your changing the rotation, otherwise it looks like it finishes that off first.
helltamer
11-03-2003, 09:23 AM
Well maybe I took the old fashion approach to this here is what I did. (all rotations work no crashes)
I made a seperate config file for all rotations with all information that the game needs to run in that rotation. Call a config and it starts in that rotation changes the server name to reflect that rotation sets all pram for the rotation calls Correct map list.
TDM.cfg
set sv_hostname "Bestgamefiles.com TDM Main [BGP]clan server"
set sv_maxclients 32 //sets the maximum # of players, default is 32
set sv_privatepassword ""
set sv_privateclients 3
set rconPassword ""
set g_allowvote 0
set scr_friendlyfire 2
set scr_motd "Welcome to www.bestgamefiles.com and the [BGP]Clan Play well, Play fair, NO CHEATING, Friendly Fire is ON and BAD Language is OFF"
set sv_pure 1
set scr_drawfriend 1
set g_gametype tdm
set scr_tdm_scorelimit 1000
set sv_mapRotation "gametype tdm map mp_dawnville map mp_railyard map mp_rocket map mp_pavlov map mp_carentan map mp_depot map mp_powcamp map mp_ship"
map mp_dawnville
///////////////////////// SD.CFG ////////////////////////
set sv_hostname "Bestgamefiles.com SD Main [BGP]clan server"
set sv_maxclients 32 //sets the maximum # of players, default is 32
set sv_privatepassword ""
set sv_privateclients 3
set rconPassword ""
set g_allowvote 0
set scr_friendlyfire 2
set scr_motd "Welcome to www.bestgamefiles.com and the [BGP]Clan Play well, Play fair, NO CHEATING, Friendly Fire is ON and BAD Language is OFF"
set sv_pure 1
set scr_drawfriend 1
set scr_sd_graceperiod 15 //Time at round start where spawning and weapon choosing is still allowed, 0 - 60 seconds
set scr_sd_roundlength 4 //round length
set scr_sd_roundlimit 5 //Max Number of round wins per map
set scr_sd_scorelimit 10 //Map team score limit per map
set scr_sd_timelimit 20 //Map time limit, in minutes - 0 to 1440
set g_gametype sd
set sv_mapRotation "map mp_brecourt map mp_carentan map mp_dawnville map mp_depot map mp_harbor map mp_hurtgen map mp_pavlov map mp_railyard map mp_rocket"
map mp_brecourt
//////////////////////////// bel,cfg //////////////////
set sv_hostname "Bestgamefiles.com BEL Main [BGP]clan server"
set sv_maxclients 50 //sets the maximum # of players, default is 32
set sv_privatepassword ""
set sv_privateclients 3
set rconPassword ""
set g_allowvote 0
set scr_friendlyfire 2
set scr_motd "Welcome to www.bestgamefiles.com and the [BGP]Clan Play well, Play fair, NO CHEATING, Friendly Fire is ON and BAD Language is OFF"
set sv_pure 1
set scr_drawfriend 1
set scr_bel_alivepointtime 10 ///Number of seconds to get a point for staying alive as allied
set scr_bel_scorelimit 150 ////Map score limit
set scr_bel_timelimit 30 ////Map time limit, in minutes - 0 to 1440
set g_gametype bel
set sv_mapRotation "gametype bel map mp_brecourt map mp_carentan map mp_chateau map mp_dawnville map mp_depot map mp_harbor map mp_hurtgen map mp_pavlov map mp_powcamp map mp_railyard map mp_rocket map mp_ship"
map mp_brecourt
///////////////////////////////////////////////////////////////////////
and so on all config files work we are Communists here we do not allow the users to vote we run autockick on 2 servers have had as many as 47 on bel and no issues other than
This game rocks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!
Thanks IW
This may seem redundant to some of you but hey it never crashes..
HankScorpio
11-03-2003, 09:55 AM
It finishes out sv_maprotationcurrent so that cvar probably needs to be cleared if your changing the rotation, otherwise it looks like it finishes that off first.
Thanks! That fixed it and I see how it works now. sv_maprotationcurrent acts as stack and as each command through the stack is run it is popped off the stack. This way you can have duplications within the rotation and it'll still work. MOHAA's sv_maplist mechanism didn't allow duplicates, although Hammer's mod took care of it.
So to switch to a new rotation, you just need to do the follow...
sv_maprotationcurrent ""
exec server_bel.cfg
map_rotate
UnDead
04-24-2004, 05:53 PM
your execing a config in a config?
I dont have a problem execing a config from the command line then issuing a +map_rotate after it. If you have a separate config just do 2 execs on the command line +exec server1.cfg +exec server2.cfg +map_rotate
Ok this is what I want to do, is it possible.....
With Spearhead you could use VSTR map rotations and add any variables to it (again I know this is CoD not Spearhead but please hear me out). So for example you could do this:
seta sv_maplist "x1"
set x1 "set nextmap vstr x2; g_gametype 4; timelimit 10; roundlimit 5; map_start 1; map obj/obj_team1"
set x2 "set nextmap vstr x3; g_gametype 5; timelimit 20; roundlimit 10; map_start 0; map obj/MP_Flughafen_TOW"
set x3 "set nextmap vstr x4; g_gametype 4; timelimit 10; roundlimit 5; map_start 1; map obj/obj_team2"
set x4 "set nextmap vstr x5; g_gametype 5; timelimit 20; roundlimit 10; map_start 0; map obj/MP_Ardennes_TOW"
set x5 "set nextmap vstr x6; g_gametype 4; timelimit 10; roundlimit 5; map_start 1; map obj/obj_team4"
set x6 "set nextmap vstr x1; g_gametype 5; timelimit 20; roundlimit 10; map_start 0; map obj/MP_Berlin_TOW"
vstr x1 //startup first map
Notice the above cvars added like timelimit and roundlimit and a random mod cvar for map_start for the obj maps. Is it possible with multiple configs to do a similer setup. Such as when one maprotation ends to exec a new one that will have different variables etc. So its automatic.
Basically what I want this for is DEM gametype. In stalingrad on DEM, the spawn points for Allies is right on top of the german obj's to blow up. I would like to make the timelimit that it takes bomb to blow from 60 to 30 just for stalingrad only. So I need to add variable "scr_dem_countdown 30" and then after stalingrad make it "scr_dem_countdown 60. Is there anyway to do this with CoD. Thanks for any help.
Well, without the use of a mod, you couldn't set it up to auto switch; sv_maprotation doesn't seem to permit anything other then map loads. You could accomplish this manually by using configs for each rotation you want, including the individual settings you want; though as stated, you'd have to manually switch (i.e. exec the configs).
Now, to do this automatically, you could script it, linking it to a custom cvar(s), which would allow you to set up the rotation and settings as you want.
If, however, you're not too keen on scripting, you could look at CoDaM. There's a very powerful plugin for it called Buzz's Goodies. It has the ability to set timed functions, whereby you could create multiple configs for the rotation and settings you want, then setup a timed function to execute a particular config or configs. I'm looking at this very thing right now actually. I was thinking of setting up a rotation solely with the timed function; having switch to a map and execute various settings, then using VSTR, toggle to the next map setup so when the time limit is reached, it executes it then toggles to the next one. CoDaM is a very powerful tool, and with plugins such as Buzz's Goodies, it becomes even more powerful.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.