Raised This Month: $ Target: $400
 0% 

Detecting "Your server is out of date" message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Scuzzy
Senior Member
Join Date: Oct 2007
Old 12-20-2009 , 06:39   Detecting "Your server is out of date" message
Reply With Quote #1

Is there anyway for SourceMod to detect when steam tells a server that it's out of date? It isn't broadcast as part of a UDP message when using log message... looking to automate an update trigger.

Scuzzy
Scuzzy is offline
Scuzzy
Senior Member
Join Date: Oct 2007
Old 12-22-2009 , 10:38   Re: Detecting "Your server is out of date" message
Reply With Quote #2

No ideas? Is this something that metamod may be more suited to do? Are these messages that either of them can intercept?
Scuzzy is offline
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 12-22-2009 , 11:29   Re: Detecting "Your server is out of date" message
Reply With Quote #3

I believe you can just add -autoupdate to your servers command line.
Wazz is offline
SilentLikeSilence
Senior Member
Join Date: Jul 2009
Old 12-22-2009 , 11:35   Re: Detecting "Your server is out of date" message
Reply With Quote #4

Set these in the addons/sourcemod/configs/core.cfg

PHP Code:
"DisableAutoUpdate" "no"
"ForceRestartAfterUpdate" "yes"
"AutoUpdateURL" "http://update.sourcemod.net/update/" 
SilentLikeSilence is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 12-22-2009 , 15:05   Re: Detecting "Your server is out of date" message
Reply With Quote #5

That's sourcemod, not steam master server heartbeat.
FaTony is offline
Darkimmortal
Senior Member
Join Date: Aug 2008
Old 12-23-2009 , 00:37   Re: Detecting "Your server is out of date" message
Reply With Quote #6

Quote:
Originally Posted by Wazz View Post
I believe you can just add -autoupdate to your servers command line.
Linux only

One option would be a daemon which polls the text in all srcds console windows every so often.
__________________
Darkimmortal is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 12-23-2009 , 02:45   Re: Detecting "Your server is out of date" message
Reply With Quote #7

Quote:
Originally Posted by Darkimmortal View Post
One option would be a daemon which polls the text in all srcds console windows every so often.
Greyscale: Your server is out of date

*Server shuts down and tries to update*



With some stricter checks you can prevent this, but this would be one heck of an exploit.
__________________
Greyscale is offline
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 12-23-2009 , 08:06   Re: Detecting "Your server is out of date" message
Reply With Quote #8

Find the function in the binaries and detour it then.
Wazz is offline
Scuzzy
Senior Member
Join Date: Oct 2007
Old 12-26-2009 , 07:30   Re: Detecting "Your server is out of date" message
Reply With Quote #9

Quote:
Originally Posted by Wazz View Post
Find the function in the binaries and detour it then.
No idea how to do that... that's why I was looking for a SourceMod catch. If I can catch it in a plugin, I can make a "specific" message that our external system can watch for and for an update/restart.
Scuzzy is offline
Wazz
SourceMod Donor
Join Date: Mar 2009
Old 12-26-2009 , 16:29   Re: Detecting "Your server is out of date" message
Reply With Quote #10

Could your 'external system' watch the rcon output instead of using a sourcemod plugin?
Wazz is offline
Reply



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 08:15.


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