Raised This Month: $12 Target: $400
 3% 

[ANY] Anti server empty after restart


Post New Thread Reply   
 
Thread Tools Display Modes
ilga80
Senior Member
Join Date: Nov 2012
Old 05-12-2013 , 06:33   Re: [ANY] Anti server empty after restart
Reply With Quote #21

ddhoward
I'm tested all versions(in the first post and your version)
with type: quit and _restart.
Client don't connecting to server after restart.
ilga80 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 06:35   Re: [ANY] Anti server empty after restart
Reply With Quote #22

Try using my version, and instead of using quit or _restart, use sm_retryandrestart.

Last edited by ddhoward; 05-12-2013 at 06:40.
ddhoward is offline
ilga80
Senior Member
Join Date: Nov 2012
Old 05-12-2013 , 06:37   Re: [ANY] Anti server empty after restart
Reply With Quote #23

Quote:
Originally Posted by ddhoward View Post
Try using my version, and instead of using quit or _restart, use sm_retryonrestart.
WHAT ?!
maybe sm_retryandrestart

Code:
Disconnect: Server shutting down.
ilga80 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 05-12-2013 , 06:41   Re: [ANY] Anti server empty after restart
Reply With Quote #24

Quote:
Originally Posted by ddhoward View Post
Alright, I made a few changes which seems to have fixed this problem. Hoping to see them merged into the plugin on the first post~ Tested only on TF2, should work on other mods that support ClientCommand sending "retry".

Running the command sm_retryandrestart will force all clients to retry, then after a 0.1 second pause, will run the _restart command. The action will be logged to the standard sourcemod log file with the admin's information.

Running the command sm_retryandrestart 0 will cause a restart WITHOUT attempting to auto-reconnect clients. This action will be logged to the standard sourcemod log file with the admin's information.

If the cvar sm_retryonrestart_enabled = 1, the plugin will still listen for the commands _restart or quit, and make an attempt to reconnect clients before shutting down. Setting the cvar to 0 will disable this functionality.

Please note that it is IMPOSSIBLE to trigger a forced retry on clients upon server CRASH. The plugin only works if a restart was triggered intentionally through the server commands quit, _restart, or sm_retryonrestart.
Hey thanks for do my work xD if your version works well I will add it to the first post and I will give you credits
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 06:48   Re: [ANY] Anti server empty after restart
Reply With Quote #25

Quote:
Originally Posted by Franc1sco View Post
Hey thanks for do my work xD if your version works well I will add it to the first post and I will give you credits
lol thanks~ I wasn't sure how active you were in developing/maintaining stuff. Apparently very much so, considering the speed of your reply. lol

Quote:
Originally Posted by ilga80 View Post
Code:
Disconnect: Server shutting down.
Hmm, maybe CS:S doesn't support sending RETRY over ClientCommand? Try installing the attached plugin, and run the command sm_retrytest
Attached Files
File Type: sp Get Plugin or Get Source (retrytest.sp - 489 views - 222 Bytes)

Last edited by ddhoward; 05-12-2013 at 06:52.
ddhoward is offline
ilga80
Senior Member
Join Date: Nov 2012
Old 05-12-2013 , 06:50   Re: [ANY] Anti server empty after restart
Reply With Quote #26

Quote:
Originally Posted by ddhoward View Post
lol thanks~ I wasn't sure how active you were in developing/maintaining stuff.


Hmm, maybe CS:S doesn't support sending RETRY over ClientCommand? Try installing the attached plugin, and run the command sm_retrytest
retry work on CS:S
Yes, sm_retrytest work.
ilga80 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 07:12   Re: [ANY] Anti server empty after restart
Reply With Quote #27

Alright, try this one.

This one includes a new cvar, sm_retryonrestart_delay, which determines how long to wait until restarting after making clients reconnect (assuming that you are using sm_retryandrestart). Try tweaking with that setting to see what works. Anywhere from 0.0 to 1.0 would be good values to try.
Attached Files
File Type: sp Get Plugin or Get Source (retryonrestart.sp - 544 views - 2.8 KB)

Last edited by ddhoward; 05-12-2013 at 07:13.
ddhoward is offline
ilga80
Senior Member
Join Date: Nov 2012
Old 05-12-2013 , 07:15   Re: [ANY] Anti server empty after restart
Reply With Quote #28

sm_retryonrestart_delay 0.5 works fine!
ilga80 is offline
ilga80
Senior Member
Join Date: Nov 2012
Old 05-12-2013 , 07:19   Re: [ANY] Anti server empty after restart
Reply With Quote #29

Quote:
Originally Posted by ddhoward View Post
Alright, try this one.

This one includes a new cvar, sm_retryonrestart_delay, which determines how long to wait until restarting after making clients reconnect (assuming that you are using sm_retryandrestart). Try tweaking with that setting to see what works. Anywhere from 0.0 to 1.0 would be good values to try.
Could you provide a simple version without cvars
ilga80 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 07:21   Re: [ANY] Anti server empty after restart
Reply With Quote #30

I'm hoping that that the sweet spot values are mod-specific and not depending on the client. 0.5 doesn't seem to be working on my TF2 test server; I start to retry, but then see "Server shutting down"

Quote:
Originally Posted by ilga80 View Post
Could you provide a simple version without cvars
The cvars are necessary, as a delay of 0.5 seconds isn't working on my end. I seem to need 0.2 or lower on my TF2 server.

Last edited by ddhoward; 05-12-2013 at 07:25.
ddhoward 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 14:47.


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