View Full Version : timlimit
blasney
11-01-2003, 03:09 PM
Hey guys, our server doesn't seem to be moving on after the 20 minutes thats set by the scr_sd_timlimit cvar.
Can someone look this over and see why it might not be moving on to the next map after 20 minutes?
seta sv_hostname " ^7>F|H< Hellfish LagTank"
seta g_privatepassword "xxx"
seta rconPassword "xxx"
seta g_log "fhserver.log"
seta protocol "1"
seta sv_pure "1"
seta g_logsync "1"
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 "400"
seta sv_maxrate "8000"
seta scr_motd "Welcome to the FishTank www.flyinghellfish.net"
//setnet_ip //IP to listen on for multihomed servers
seta net_port 28960 //set net_port 28960 port to listen on
seta sv_maxclients "12" //Max number of players
seta sv_privateclients "0"
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 "0"
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 "1" //0 - off 1 - on 2 - reflect damage
seta scr_drawfriend "1" //turns on the avatars
//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 "0" //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 "20" //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 "0" //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 "0" //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 "20" //Map time limit, in minutes - 0 to 1440
//Team Deathmatch Default Description
seta scr_tdm_scorelimit "0" //Map score limit
seta scr_tdm_timelimit "20"
seta timelimit 20
seta g_gametype sd
seta scr_sd_timelimit 20
seta sv_mapRotation "gametype sd map mp_carentan map mp_depot map mp_brecourt map mp_hurtgen gametype tdm map mp_ship gametype sd map mp_pavlov map mp_railyard map mp_harbor map mp_rocket map mp_dawnville"
map "mp_dawnville"
CFH666
11-02-2003, 12:14 AM
i couldnt get timelimit wokring on ours either, instead I set the roundlimit.
You can try this
set timelimit 20
I beleive that worked for us when we first set ours up.
6
gss_gideon
11-02-2003, 02:25 AM
looks to me like you have the max rounds set to zero so it doesnt know it is supposed to rotate. Set the round limit to 7 or something like it and it should do the first team to 7 then move on.
What if you don't want a round limit? You want a 20 min timelimit on the map, so regardless of the number of rounds played when the map has played 20 it switches. Like MOHAA.
blasney
11-02-2003, 03:02 AM
Exactly, I do not want to specify a number of rounds won before it moves on to the next map, I want it to go after 20 minutes regarless if its been 5 rounds, or 100.
Also, my fifth line from the bottom is seta timelimit 20.
Hammer
11-02-2003, 03:36 AM
This works the same way it does in Mohaa ...
You don't want score per round, set scr_sd_scorelimit and scr_sd_roundlimit to 0, you've got that part already. Now, each round will play for up to scr_sd_roundtlength minutes, you have that at 4.
Now, since you want 20 minutes for map time, set scr_sd_timelimit to 20. HOWEVER, the map will ONLY end after the LAST round is complete. If the last round happens to start at 19:59, it must play out until the objective(s) have been met OR the roundlength time is reached! This means that in reality, the map can last as long as 24 minutes (20 + 4) (take a second or so off).
Based on this, if you REALLY want the map to be no more than 20 minutes, then simply set scr_sd_roundlength to 16. The map will then run between 16 and 20 minutes.
Hope it makes sense!
CFH666
11-02-2003, 05:08 AM
actually hammer, there appears to be a bug in the timelimit. When we had our server setup on time based, it would end in the middle of maps.
This is why we set ours to a scorelimit.
6
blasney
11-02-2003, 12:52 PM
Thanks for the reply hammer, but that's exactly how I have it set.
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 "20" //Map time limit, in minutes - 0 to 1440
Hammer
11-02-2003, 02:00 PM
CFH666, there is no timelimit command or cvar in CoD, all the timelimit cvars star with scr_<gametype>_.
blasney, are you saying that after 24 minutes you're server still has not changed maps? Have you looked at the logs for rotation problems?
CFH666
11-02-2003, 02:33 PM
We had this prob where the maps wouldnt rotate.. I types "\rcon nextmap" in the console and it returned "nextmap is map_restart".
then i typed
\rcon set nextmap "" *nothing in the quotes!!*
And our rotation started working.
Also, Inherint said that you need to specify a gametype before each map in the maprotation otherwise there might be issues.
I even added the line "set nextmap """ in the server.cfg, and it still had nextmap set as map_restart, I have to manually type it in console after starting our server.
6
CFH666
11-02-2003, 02:34 PM
CFH666, there is no timelimit command or cvar in CoD, all the timelimit cvars star with scr_<gametype>_.
Well for us, timelimit worked(not scr_sd_timelimit), but it was restarting the same map. See my above post on why.
6
We are having the same problem.
With the following settings:
--------------------------------------------------------------------
seta scr_sd_roundlength "5" //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 "20" //Map time limit, in minutes - 0 to 1440
set sv_mapRotation "gametype sd map mp_brecourt gametype re map mp_chateau gametype bel map mp_depot gametype sd map mp_harbor gametype re map mp_pavlov gametype bel map mp_railyard gametype sd map mp_rocket gametype re map mp_brecourt gametype bel map mp_chateau gametype sd map mp_dawnville gametype re map mp_harbor gametype bel map mp_pavlov gametype sd map mp_powcamp gametype re map mp_rocket gametype bel map mp_brecourt gametype sd map mp_carentan gametype re map mp_dawnville gametype bel map mp_harbor gametype sd map mp_hurtgen gametype re map mp_powcamp gametype bel map mp_rocket gametype re map mp_carentan gametype bel map mp_dawnville gametype sd map mp_depot gametype gametype re map mp_hurtgen gametype bel map mp_powcamp gametype sd map mp_railyard gametype re map mp_ship gametype bel map mp_carentan gametype re map mp_depot gametype bel map mp_hurtgen gametype sd map mp_pavlov gametype re map mp_railyard gametype gametype bel map mp_ship"
map mp_brecourt
--------------------------------------------------------------------
The map never changes from brecourt.
Someone HELP
HankScorpio
11-02-2003, 07:31 PM
Do map_rotate instead of map mp_brecourt and see if that helps. I think the map_rotate command may be need to kick things off with the sv_maprotation mechanism.
Ok...I took out the map mp_brecourt at the end of the config and added: +map_rotate to the end of my command line. Still not working.
imported_Criticalmass
11-02-2003, 08:29 PM
Ive also got a Timelimit problem in RE gamemode. SD timelimit is working fine for me.
THis is my config
set dedicated 2
set developer 0
set sv_pure 1
set sv_hostname "[=N3S=] Public CoD Server | Retrieval | www.n3s-clan.nl"
set g_banIPs ""
set g_password ""
set rconPassword "XXXX"
set g_log "games_mp.log"
set g_logsync "0"
set scr_motd "Welcome the [=N3S=] Public CoD Server, Please visit us @ www.n3s-clan.nl"
set g_gametype "re" //gametype: bel, dm, re, sd, tdm
//setnet_ip //IP to listen on for multihomed servers
//set net_port 28960 port to listen on
set sv_maxclients "28" //Max number of players
set sv_privateclients "4"
set sv_privatepassword "XXXX"
seta sv_maxping "400"
//General Game Default Description
set scr_allow_bar "1" //0 - disable weapon 1 - enable weapon
set scr_allow_bren "1"
set scr_allow_enfield "1"
set scr_allow_fg42 "0"
set scr_allow_kar98k "1"
set scr_allow_kar98ksniper "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_mp40 "1"
set scr_allow_mp44 "1"
set scr_allow_nagant "1"
set scr_allow_nagantsniper "1"
set scr_allow_panzerfaust "0"
set scr_allow_ppsh "1"
set scr_allow_springfield "1"
set scr_allow_sten "1"
set scr_allow_thompson "1"
set scr_allow_vote "0" //Allow call voting
set scr_drawfriend "1" //Draws a team icon over teammates
set scr_forcerespawn "1" //Force respawning - DM & TDM
set scr_friendlyfire "0" //0 - off 1 - on 2 - reflect damage
//Behind Enemy Lines Default Description
set scr_bel_alivepointtime "10" //Number of seconds to get a point for staying alive as allied
set scr_bel_scorelimit "50" //Map score limit
set scr_bel_timelimit "30" //Map time limit, in minutes - 0 to 1440
set
//Deathmatch Default Description
set scr_dm_scorelimit "50" //Map score limit
set scr_dm_timelimit "30" //Map time limit - 0 to 1440, in minutes
//Retrieval Default Description
set scr_re_graceperiod "15" //Time at round start where spawning and weapon choosing is still allowed, 0 - 60 in seconds
set scr_re_roundlength "4" //Map round length in minutes
set scr_re_roundlimit "0" //Max Number of round wins per map
set scr_re_scorelimit "0" //Map score limit
set scr_re_showcarrier "0" //Show the objective carrier on compass
set scr_re_timelimit "20" //Map time limit, in minutes - 0 to 1440
//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 "4" //round length
set scr_sd_roundlimit "0" //Max Number of round wins per map
set scr_sd_scorelimit "0" //Map team score limit per map
set scr_sd_timelimit "20" //Map time limit, in minutes - 0 to 1440
//Team Deathmatch Default Description
set scr_tdm_scorelimit "100" //Map score limit
set scr_tdm_timelimit
set sv_mapRotation "gametype re 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_railyard
After 20 minutes of playing it wont move on to an other map. When setting a Score limit of 10 it still WONT go to the nextmap in the rotation...
FOUND THE SOLUTION!
don't make it a 0...make it ""
ie
scr_sd_timelimit ""
not
scr_sd_timelimit "0"
Only problem now is that it ends at the time.....right in the middle of a round.
Hammer
11-03-2003, 01:17 AM
Hmm, interesting, the code basically set it to "0" if it sees "" ...
if(getcvar("scr_sd_timelimit") == "") // Time limit per map
setcvar("scr_sd_timelimit", "0");
else if(getcvarfloat("scr_sd_timelimit") > 1440)
setcvar("scr_sd_timelimit", "1440");
level.timelimit = getcvarfloat("scr_sd_timelimit");
I don't know what the problem is, but it's in the scripts somewhere.
Irksome
11-03-2003, 11:43 AM
Ok...I took out the map mp_brecourt at the end of the config and added: +map_rotate to the end of my command line. Still not working.
map_rotate has to go in the command line not the cfg (+serverexex.cfg +map_rotate)
HankScorpio
11-03-2003, 01:06 PM
map_rotate has to go in the command line not the cfg (+serverexex.cfg +map_rotate)
Doesn't have to be. It just has to be the last thing which happens and command line options are always last. It's good practice to just put it on the command line but if you're careful with your config files and command lines you can put it in a config file.
Hammer
11-03-2003, 01:12 PM
RDH-Maximus is right! Make sure you're server config script(s) are correct and you will not have any problems. My server config script calls several other config scripts (keeps things clean and separate) and all but one file is identical across all the servers in MC Gamers. I'll post a zip file when I get a chance. The map_rotate is in the scripts, not the command line.
imported_TvS_Apollo
11-03-2003, 02:30 PM
Yes, please do. I'm totally lost. I took the zeroes out and replaced them with "" only and I put the kill limit at 10 for SD. Here's what appears to happen. The map starts, gets to 10 points then goes to the score screen, resets and starts the first map again. When I manually go to the next map, we play THAT map to 10 points and then it rotates to the following map fine like it should. For some reason it's getting hung up on the first map in rotation. Is this something to do with the map rotation AND the starting map line? Is it somehow telling it to restart and it's going back to the first map in rotation. PLEASE help me! This is so annoying. Plus i'm an idiot... i don't know where or how to use the +map_rotate thing you're talking about. Please write it for me as if i was in first grade... which I nearly am. Thanks. lol
Ok...I took out the map mp_brecourt at the end of the config and added: +map_rotate to the end of my command line. Still not working.
map_rotate has to go in the command line not the cfg (+serverexex.cfg +map_rotate)
Maybe you should read the part of my statement that you quoted.....and added: +map_rotate to the END OF MY COMMAND LINE.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.