Raised This Month: $75 Target: $400
 18% 

TF2 Waiting for players issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bury
Junior Member
Join Date: May 2008
Old 09-01-2010 , 15:12   TF2 Waiting for players issue
Reply With Quote #1

Hello, on my server, I don't know whether it is actually Sourcemod related, but chances are it is as I''ve had no issues without sourcemod.

When there is one person on the server for the first time, the waiting for players is there briefly, but disappears and the game starts without waiting, I'll explain with a little walkthrough of what I've found, it involves only me playing around with the server.

1. restart server
2. join server, choose class, waiting in spawn - waiting for players counts for roughly 5 seconds (this is also the few seconds the round first commences so you can't move) after I can move, the waiting for players disappears, and the game starts.
3. retry in console, choose class, and it works perfectly - the waiting for players works properly.

So it seems the problem lies with the initial first connection, the one and only player leaves, so it resets itself, connect again and it works.

I can only speculate it has something to do with mp_waitingforplayers_restart not working properly, but I've tried all the combinations and nothing is working. Any help please?
Bury is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 09-01-2010 , 15:59   Re: TF2 Waiting for players issue
Reply With Quote #2

What is mp_restartround set to?

If it's "5", then change it to "0".

I think that should do it.
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
Bury
Junior Member
Join Date: May 2008
Old 09-01-2010 , 16:03   Re: TF2 Waiting for players issue
Reply With Quote #3

Thanks for the reply, it is set at 0, so it must be something else :s

21:01:24 "mp_restartround" = "0"
game
- If non-zero, the current round will restart in the specified number of seconds

not quite sure what that description is supposed to mean however for the cvar : )
Bury is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 09-01-2010 , 16:11   Re: TF2 Waiting for players issue
Reply With Quote #4

Are you setting this? I've not had to use the _restart_ one you mention

sm_cvar mp_waitingforplayers_time "num"
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
Bury
Junior Member
Join Date: May 2008
Old 09-01-2010 , 16:19   Re: TF2 Waiting for players issue
Reply With Quote #5

Yes these are all in the server.cfg
Have that command set also, to 50
21:14:24 [SM] Value of cvar "mp_waitingforplayers_time": "50"
Thanks for the help, this has been puzzling me for a good while and don't understand why it is not working.

I will post my full server.cfg

Code:
// this is your server name as shown in the server list
hostname "[deleted]"

// your server password. a pair of double quotes means it is not set and anyone can join
sv_password ""


// start rcon settings
rcon_password "[deleted]"
// your rcon password to log into the dev rcon console or HLSW rcon console
sv_rcon_banpenalty 5
// Number of minutes to ban users who fail rcon authentication
sv_rcon_maxfailures 10
// Max number of times a user can fail rcon authentication before being banned


// start cvars for balancing un-even teams
mp_autoteambalance 1
// 0 is off and 1 is on. if 1 then should be used in conjunction with the following 3 commands
mp_autoteambalance_delay 15
// Time (in seconds) after the teams become unbalanced to attempt to switch players
mp_autoteambalance_warning_delay 10
// Time (in seconds) after the teams become unbalanced to print a balance warning
mp_teams_unbalance_limit 2
// Teams are unbalanced when one team has this many more players than the other (0 disables)



// start cvars for round and game times
mp_enableroundwaittime 1
// Enable or disable timers to wait between rounds. 0 is off 1 is on
mp_bonusroundtime 10
// Time after round win until round restarts (in seconds)
mp_restartround 10
// Time the current round will restart (in seconds)
mp_stalemate_timelimit 120
// Timelimit (in seconds) of the stalemate round
mp_timelimit 30
// game time per map in minutes
mp_stalemate_enable 1





// start client specific cvars
mp_forcecamera 1
// force dead clients to first person mode disabling freelook. 0 is off 1 is on
mp_allowspectators 1
// enable or disable spectators on the server. 0 is off 1 is on
mp_friendlyfire 0
// 0 is off and clients can do harm to team mates. 1 is on and players can kill or injure team mates
mp_footsteps 1
// footsteps on or off. 0 is off and 1 is on
sv_cheats 0
// allow cheats to be used by the client. 0 is off 1 is on
sv_timeout 120
// the amount of time in seconds that a client is booted for no input
sv_maxspeed 320
// the maximun speed a client can move at
sv_consistency 1
// Force clients to pass a consistency check for critical files before joining server. 0 is off 1 is on
decalfrequency 10
// the pause in seconds between a decal being sprayed



// start cvars for communication
sv_voiceenable 1
// allow players to use a microphone. 0 is off 1 is on
sv_alltalk 0
// toggles whether both teams can hear each others voice comms or not. 0 is off 1 is on. recommend it being off
mp_chattime 10
// players can chat for this amount of time (in seconds) after a game is over


// start download cvars
sv_allowupload 1
// allow custom decals to be uploaded. 0 is off 1 is on
sv_allowdownload 1
// allow files to be downloaded from the server. 0 is off 1 is on
net_maxfilesize 15
// Max download file size. Default is 15
sv_downloadurl "http://ymtf2.net/mapdls/"
//redirect download location
// end download cvars

// start bandwidth rates/settings
sv_minrate 20000
sv_maxrate 30000
decalfrequency 10
sv_maxupdaterate 100
sv_minupdaterate 66
sv_mincmdrate 66
sv_maxcmdrate 100


// start server logging
log on
// enable or disable server logging. on is on off is off
sv_logbans 1
// Log server bans in the server logs
sv_logecho 1
// Echo log information to the console. 0 is off 1 is on
sv_logfile 1
// Log server information in the log file. 0 is off 1 is on
sv_log_onefile 0
// log everything in one file



// start cvars for general operation
sv_lan 0
// is this an internet or LAN server. 0 is internet 1 is LAN
sv_region 3
// server location. -1 is the world, 0 is USA east coast, 1 is USA west coast, 2 south america, 3 europe, 4 asia, 5 australia, 6 middle east, 7 africa
sv_contact 
// contact email for sysop
sv_pausable 0
// enables or disables whether the server can be paused. 0 is off 1 is on
sv_pure 0
// forces all clients on the server to use content that matches what is on the server. 0 is off 1 is on
sv_pure_kick_clients 0
// kicks clients that do not have content that matches what is on the server


tf_weapon_criticals 0
tf_overtime_nag 1

// start execute ban files

exec banned_user.cfg
exec banned_ip.cfg

// end execute ban files

//sourcemod
sm_cvar mp_waitingforplayers_time 50
psychstats_mode 2
sm_scramble_delay 10
sm_scramble_minplayers 12
sm_scramble_percent .45
sm_scramble_strategy 2
sm_scramble_timeleft 7
sm_scramble_timepassed 300

//waiting for players
mp_restartround 0
mp_enableroundwaittime 1
mp_waitingforplayers_restart 1
mp_waitingforplayers_cancel 0
If you could share yours I would be most grateful as to compare and try out various things.
Bury is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 09-01-2010 , 16:21   Re: TF2 Waiting for players issue
Reply With Quote #6

Hum....

-------> // Time after round win until round restarts (in seconds)
mp_restartround 10

That is not "0".........
__________________
retsam is offline
MjrNuT
SourceMod Donor
Join Date: Feb 2008
Location: Under the Beaming CA Sun
Old 09-01-2010 , 16:24   Re: TF2 Waiting for players issue
Reply With Quote #7

Quote:
Originally Posted by retsam View Post
Hum....

-------> // Time after round win until round restarts (in seconds)
mp_restartround 10

Thought you said its set to 0..........

Yeah he has it in there 2x. That one is read earlier, but then should have been reset to "0" at the end.

comment out both of the _restart and _cancel cvar. As I said, I don't use those.
__________________
Flames and Ash Gaming
Addon: SM v1.4.0-dev MM 1.8.5-dev
Plugins: Advertisements, Webshortcuts, spray tracer, SBans, RTD, gScramble Balance, misc
MjrNuT is offline
Bury
Junior Member
Join Date: May 2008
Old 09-01-2010 , 16:25   Re: TF2 Waiting for players issue
Reply With Quote #8

Hi, thanks for spotting that, i did check the server console and it was set to 0 at the time, and for good measure set it to 0 anyway at the bottom of the config to overwrite if it existed above, will test it now, thanks for the keen eyes
Bury is offline
Bury
Junior Member
Join Date: May 2008
Old 09-01-2010 , 16:31   Re: TF2 Waiting for players issue
Reply With Quote #9

Thanks a lot guys for all the help, it seems having just the one _restartround works perfectly, which I'm not entirely sure why the bottom one didn't override it, but nevermind it works a charm now, also commenting out _restart and _cancel fixed the next issue that arouse.

Many thanks to both of you !
Bury is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-02-2010 , 13:53   Re: TF2 Waiting for players issue
Reply With Quote #10

mp_waitingforplayers_restart is a command to reset the rounds back to WFP I believe. Either that or it resets the timer on the WFP round (I forget which).
bl4nk is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:00.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode