Monthly Target: $400 Donations: $126
 31% 

[ANY] Outdated do?


Post New Thread Reply   
 
Thread Tools Display Modes
Author
klausenbusk
SourceMod Donor
Join Date: Jan 2011
Plugin ID:
2333
Plugin Version:
1.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    Do thing when Steam master servers report that your server is outdated, specific by sm_outdated_do..
    Old 05-14-2011 , 14:00   [ANY] Outdated do?
    Reply With Quote #1

    Description:
    This plugin, simple do one of the following items listed under sm_outdated_do when Steam master servers report that your server is outdated..
    Now also execute cfg/outdated.cfg..

    Should work on all games, where SteamTools are supported, and
    Code:
    forward Action:Steam_RestartRequested();
    work.
    Cvars:
    • sm_outdated_version 1.1 - Outdated do? version..
    • sm_outdated_do 2 - Specific what to do when 'your server is reported outdated'
      • 0 = Disabled
      • 1 = Create need.update
      • 2 = Create need.update if no players or only bots
      • 3 = same as 1 but also shutdown the server
      • 4 = same as 2 but also shutdown the server

    Installation:
    • Install SteamTools if not already installed
    • Move outdated-do.smx into you Sourcemod/plugins folder
    TODO:
    • More options for sm_outdated_do (some ideas?)
    Compil:
    • Require SteamTools include file to compile
    Changelog:
    Code:
    2011-07-16 (v1.1)
    Now execute cfg/outdated.cfg if found, on "sm_outdated_do"..
    2011-05-14 (v1.0)
    Initial release.
    Attached Files
    File Type: sp Get Plugin or Get Source (outdated-do.sp - 556 views - 1.6 KB)
    File Type: smx outdated-do.smx (2.7 KB, 706 views)

    Last edited by klausenbusk; 07-16-2011 at 09:27.
    klausenbusk is offline
    away000
    Veteran Member
    Join Date: Sep 2010
    Old 05-14-2011 , 14:08   Re: [ANY] Outdated do?
    Reply With Quote #2

    Any result with a test?
    away000 is offline
    klausenbusk
    SourceMod Donor
    Join Date: Jan 2011
    Old 05-14-2011 , 14:12   Re: [ANY] Outdated do?
    Reply With Quote #3

    Quote:
    Originally Posted by away000 View Post
    Any result with a test?
    nope. (no update has been released since I was finished )
    But it works fine, if i try it with a command...
    klausenbusk is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 05-14-2011 , 19:14   Re: [ANY] Outdated do?
    Reply With Quote #4

    Really nice idea o.o

    Can't wait to try this out after an update.
    Snaggle is offline
    oneshot23
    Member
    Join Date: Feb 2009
    Old 05-15-2011 , 16:04   Re: [ANY] Outdated do?
    Reply With Quote #5

    So this plugin will simply auto update a server when there is a new update? Or does it create a file saying you need to update?
    __________________
    oneshot23 is offline
    klausenbusk
    SourceMod Donor
    Join Date: Jan 2011
    Old 05-15-2011 , 16:51   Re: [ANY] Outdated do?
    Reply With Quote #6

    Quote:
    Originally Posted by oneshot23 View Post
    So this plugin will simply auto update a server when there is a new update? Or does it create a file saying you need to update?
    It do one, of the following thing, when Steam master servers report that your server is outdated
    sm_outdated_do 2 - Specific what to do when 'your server is reported outdated'
    • 0 = Disabled
    • 1 = Create need.update
    • 2 = Create need.update if no players or only bots
    • 3 = same as 1 but also shutdown the server
    • 4 = same as 2 but also shutdown the server
    So you could make a script there every 30 min, there check if need.update is found, and if yes, then shutdown you server, update it, and start it again

    So it will say, it only create need.update, in your mod dir (ex orangebox/cstrike)
    klausenbusk is offline
    br5dy
    SourceMod Donor
    Join Date: Aug 2008
    Old 07-07-2011 , 22:31   Re: [ANY] Outdated do?
    Reply With Quote #7

    Love it. Can you add the option to notify players that the server is shutting down? Maybe you could add a cfg file so a server admin could change what it says easily.
    __________________
    [BR5DY]
    Asher Software
    http://ashersoftware.com

    seDirector - a management tool for all of your Windows-based Source Engine servers (auto-update, too)
    Newsletter Signup - providing information on beta & stable releases and more
    br5dy is offline
    napalm00
    Veteran Member
    Join Date: Jun 2011
    Location: Italy, sadly
    Old 07-08-2011 , 05:35   Re: [ANY] Outdated do?
    Reply With Quote #8

    this is extremely brilliant, my dear sir
    __________________
    napalm00 is offline
    Datenkralle
    Member
    Join Date: Jan 2011
    Old 07-16-2011 , 01:48   Re: [ANY] Outdated do?
    Reply With Quote #9

    I think you can add a option wich run a user specified command, like a servernamechange.... hostname="-=Outdatet=-Servernameblabla" and after do a mapchange, when servername is changed. So the changed servername is publicied.

    So a admin can see in programs like HLSW: "Oh my server is outdatet."

    A other thing is a other adminnotification like an email to admin.

    Any programer use the notification system in Tellwell (http://www.telwell.de/) (similar like ICQ) with their script. Or you use a email notification, but i thing it's a littlebit heavier to realise.
    __________________
    Datenkralle is offline
    klausenbusk
    SourceMod Donor
    Join Date: Jan 2011
    Old 07-16-2011 , 09:24   Re: [ANY] Outdated do?
    Reply With Quote #10

    Check out last update
    klausenbusk 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 04:32.


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