Monthly Target: $400 Donations: $140
 35% 

[TF2] Automatic Steam Update


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
2621
Plugin Version:
1.9.1
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    910 
    Plugin Description:
    Automatically restarts the server when it is notified that there is a Steam update available
    Old 10-26-2011 , 02:09   [TF2] Automatic Steam Update
    Reply With Quote #1

    [TF2] Automatic Steam Update

    v1.9.1

    Description:
    Once the master server notifies the server that there is an update available, and requests a restart, this plugin begins a five minute (default, customizable via cvar) timer, after which the server is restarted (by means of the _restart command). This only works on Linux SRCDS with the -autoupdate parameter added to the command line, or on Windows running a batch file that automatically runs SteamCMD when the server is restarted. The server must actually check for updates each run, or this plugin is pointless. The timer can be cancelled by an admin command, and the plugin will ignore any additional restart requests for a predefined period of time (defined via cvar). Every minute, a hint box appears and a sound is played (TF2 only). The timer itself is displayed for the duration of the countdown as HUD text in the top-left of the screen.

    Commands:
    sm_postponeupdate - postpone the update for a predefined period of time (default flag is ADMFLAG_RCON)
    sm_updatetimer - force the update timer to begin immediately (default flag is ADMFLAG_RCON)

    Cvars:
    • auto_steam_update_version - plugin version
    • auto_steam_update_timer - (default 5) how long in minutes the timer lasts until the server is restarted
    • auto_steam_update_message_display_time - (default 5) no notifications will be shown to clients until the timer is below this threshold (in minutes)
    • auto_steam_update_delay - (default 5) how long in minutes the plugin will ignore restart requests after an update is postponed
    • auto_steam_update_lock - (default 0) 0 = don't lock the server during the restart timer / 1 = change sv_password during the restart timer / 2 = kick new clients (except admins) during the restart timer
    • auto_steam_update_password - (default "") the string to change sv_password to if auto_steam_update_lock = 1
    • auto_steam_update_kickmessage - (default "The server will shut down soon to acquire Steam updates, so no new connections are allowed") the message to display when kicking clients if auto_steam_update_lock = 2
    • auto_steam_update_shutdown_message - (default "Server shutting down for Steam update") the message shown to clients when they are kicked as the server is shutting down
    • auto_steam_update_hud_text_x_pos - (default 0.01) X-position for HUD timer (only on supported games) -1.0 = center
    • auto_steam_update_hud_text_y_pos - (default 0.01) Y-position for HUD timer (only on supported games) -1.0 = center
    • auto_steam_update_hud_text_red - (default 0) Amount of red for HUD timer (only on supported games)
    • auto_steam_update_hud_text_green - (default 255) Amount of green for HUD timer (only on supported games)
    • auto_steam_update_hud_text_blue - (default 0) Amount of blue for HUD timer (only on supported games)
    • auto_steam_update_auto_update - (default 1) enables automatic plugin updating (has no effect if Updater is not installed)

    Plugin creates and loads /cfg/sourcemod/plugin.autosteamupdate.cfg

    The advantage of using 1 in auto_steam_update_lock is that clients will be denied before attempting to connect. The advantage of using 2 is that admins will be able to bypass it without knowing a password.

    Installation:
    Put auto_steam_update.smx into /addons/sourcemod/plugins and reboot your server or type "sm plugins load auto_steam_update" into your console or rcon.

    Overrides:
    BypassAutoSteamUpdateDisallow - admins with this override will be allowed on the server during the timer if auto_steam_update_lock = 2 (defaults to ADMFLAG_GENERIC)

    Requirements:
    This plugin requires SteamTools.

    Auto Update:
    Install Updater. The plugin will be autoupdated according to your Updater settings. It'll work without Updater.

    Changelog:
    • v1.9.0 (9/28/12)
      • Added auto_steam_update_hud_text_x_pos cvar
      • Added auto_steam_update_hud_text_y_pos cvar
      • Added auto_steam_update_hud_text_red cvar
      • Added auto_steam_update_hud_text_green cvar
      • Added auto_steam_update_hud_text_blue cvar
    • v1.8.0 (8/15/12)
      • Removed HUD text errors on mods that don't support HUD text
      • Various code improvements and optimizations
    • v1.7.0 (7/12/12)
      • Added ability to disable automatic plugin updating
    • v1.6.0 (6/20/12)
      • Added auto_steam_update_message_display_time cvar
    • v1.5.0 (5/20/12)
      • Fixed harmless error messages
      • Added sound effects in TF2
      • Added a constant countdown timer as HUD text in the top-left corner of the screen
    • v1.4.0 (12/17/11)
      • Added auto_steam_update_shutdown_message convar
      • Added sm_updatetimer to force an update timer to start
      • If auto_steam_update_lock is set to 1 and the timer is postponed, the password will be changed back to the original
      • Other miscellaneous fixes and improvements
    • v1.3.0 (11/18/11)
      • Timer callback now returns Plugin_Continue instead of Plugin_Handled
    • v1.2.0 (11/2/11)
      • The plugin now properly checks if the server is populated with actual human players or just bots when a restart is requested
    • v1.1.0 (11/2/11)
      • Added auto_steam_update_lock and related functionality
    • v1.0.0 (10/25/11)
      • Initial Release

    Download Plugin (auto_steam_update.smx)
    View Source (auto_steam_update.sp)
    __________________

    Last edited by Dr. McKay; 12-26-2014 at 02:56.
    Dr. McKay is offline
    klausenbusk
    SourceMod Donor
    Join Date: Jan 2011
    Old 10-26-2011 , 06:16   Re: [ANY] Automatic Steam Update
    Reply With Quote #2

    why do we still had one of those plugins that are already 4 this type of plugins!
    klausenbusk is offline
    Zydu
    Member
    Join Date: Aug 2008
    Location: Poland
    Old 10-26-2011 , 15:44   Re: [ANY] Automatic Steam Update
    Reply With Quote #3

    It's the first time I see plugin like this, can you link those other 4?

    Nice job btw. with this sever update plugin ;)
    Zydu is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 10-26-2011 , 18:28   Re: [ANY] Automatic Steam Update
    Reply With Quote #4

    Ive only seen one other that does this, I cant find the link but its not that old.
    __________________
    Happy Happy Joy Joy


    Last edited by sinblaster; 10-26-2011 at 18:33.
    sinblaster is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-26-2011 , 19:20   Re: [ANY] Automatic Steam Update
    Reply With Quote #5

    In the future I'm planning on adding support for users themselves vetoing the update (users type !postponeupdate, and as long as a good enough percentage, set via cvar, types it, it'll get postponed just as an admin typed it).
    __________________
    Dr. McKay is offline
    klausenbusk
    SourceMod Donor
    Join Date: Jan 2011
    Old 10-27-2011 , 06:17   Re: [ANY] Automatic Steam Update
    Reply With Quote #6

    There have been 4 plugins there do nearly 100% the same as this plugin. (current 3 plugins)
    Who do wee made more plugins, instant of require extra feature in the existing plugins??
    [ANY] Outdated do?
    SRCDSAdmin - auto-update Windows servers
    Update Notifier
    klausenbusk is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 10-27-2011 , 07:58   Re: [ANY] Automatic Steam Update
    Reply With Quote #7

    Quote:
    Originally Posted by klausenbusk View Post
    There have been 4 plugins there do nearly 100% the same as this plugin. (current 3 plugins)
    Who do wee made more plugins, instant of require extra feature in the existing plugins??
    [ANY] Outdated do?
    SRCDSAdmin - auto-update Windows servers
    Update Notifier
    You already said that. Where are the other links, apart from the one in your sig. The more the merrier.
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-27-2011 , 08:10   Re: [ANY] Automatic Steam Update
    Reply With Quote #8

    There may be other plugins with similar functionality, but I run a trade server that stays on the same map 24/7. Those plugins you linked either update immediately, or after a map change. This one begins a customizable, abortable timer.
    __________________
    Dr. McKay is offline
    imoda
    Member
    Join Date: Apr 2010
    Old 10-29-2011 , 21:50   Re: [ANY] Automatic Steam Update
    Reply With Quote #9

    Wish there was windows support
    imoda is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 10-29-2011 , 22:53   Re: [ANY] Automatic Steam Update
    Reply With Quote #10

    Quote:
    Originally Posted by imoda View Post
    Wish there was windows support
    Not my fault, Linux is the only OS that supports -autoupdate.
    __________________
    Dr. McKay 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 19:22.


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