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

[ANY] Anti server empty after restart


Post New Thread Reply   
 
Thread Tools Display Modes
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-02-2013 , 12:35   Re: [ANY] Anti server empty after restart
Reply With Quote #11

Quote:
Originally Posted by C0nw0nk View Post
Be useful if something like this could be implemented for crashes too.
yes but I think there is no way to get that event
__________________
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.


Last edited by Franc1sco; 01-02-2013 at 12:35.
Franc1sco is offline
Send a message via MSN to Franc1sco
C0nw0nk
Senior Member
Join Date: May 2011
Location: United Kingdom
Old 01-02-2013 , 12:51   Re: [ANY] Anti server empty after restart
Reply With Quote #12

Yea love the idea though good plugin although i downloaded and it does not have any details of who the author is perhaps you should add them in to credit yourself. (Who knows if it works in TF2 ?)
__________________

Last edited by C0nw0nk; 01-02-2013 at 12:52.
C0nw0nk is offline
Send a message via MSN to C0nw0nk
maxolahird
Veteran Member
Join Date: Dec 2012
Old 02-24-2013 , 15:41   Re: [ANY] Anti server empty after restart
Reply With Quote #13

not exactly working... my server takes like 30 secs to load so it gives me failed to connect after 4 retrys
maxolahird is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 02-24-2013 , 17:42   Re: [ANY] Anti server empty after restart
Reply With Quote #14

Quote:
Originally Posted by C0nw0nk View Post
Yea love the idea though good plugin although i downloaded and it does not have any details of who the author is perhaps you should add them in to credit yourself.
This plugin is not approvable until a Plugin:myinfo struct is added.
__________________

Last edited by Dr. McKay; 02-24-2013 at 17:52.
Dr. McKay is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-24-2013 , 18:07   Re: [ANY] Anti server empty after restart
Reply With Quote #15

Quote:
Originally Posted by Dr. McKay View Post
This plugin is not approvable until a Plugin:myinfo struct is added.
Seriously is required? ok no problem xD added
__________________
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
maxolahird
Veteran Member
Join Date: Dec 2012
Old 03-08-2013 , 02:37   Re: [ANY] Anti server empty after restart
Reply With Quote #16

Could you help me please? :s

not exactly working... my server takes like 30 secs to load so it gives me failed to connect after 4 retrys


Also, if server freezes it won't retry... it just retry if you type "quit" in console... which is not how a server crashes.
maxolahird is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 04:10   Re: [ANY] Anti server empty after restart
Reply With Quote #17

This plugin only seems to function correctly for me about 10% of the time. Upon running _restart or quit, only a few clients are given the RETRY command, if any. It seems that the clients are being disconnected just before the plugin can pass the command to them.

Last edited by ddhoward; 05-12-2013 at 05:56.
ddhoward is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 05:56   Re: [ANY] Anti server empty after restart
Reply With Quote #18

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.
Attached Files
File Type: sp Get Plugin or Get Source (retryonrestart.sp - 472 views - 2.1 KB)

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

Doesn't work on CS:S.
ilga80 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 05-12-2013 , 06:29   Re: [ANY] Anti server empty after restart
Reply With Quote #20

Quote:
Originally Posted by ilga80 View Post
Doesn't work on CS:S.
What do you mean "doesn't work?" Are you getting any error messages? Are you using the version in the first post, or the version I just now posted? If you are using my version, are you using sm_retryandrestart, or using _restart?
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 17:01.


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