AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Automatic Steam Update (https://forums.alliedmods.net/showthread.php?t=170532)

Dr. McKay 10-26-2011 01:09

[TF2] Automatic Steam Update
 
[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)

klausenbusk 10-26-2011 05:16

Re: [ANY] Automatic Steam Update
 
why do we still had one of those plugins that are already 4 this type of plugins!

Zydu 10-26-2011 14:44

Re: [ANY] Automatic Steam Update
 
It's the first time I see plugin like this, can you link those other 4?

Nice job btw. with this sever update plugin ;)

sinblaster 10-26-2011 17:28

Re: [ANY] Automatic Steam Update
 
Ive only seen one other that does this, I cant find the link but its not that old.

Dr. McKay 10-26-2011 18:20

Re: [ANY] Automatic Steam Update
 
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).

klausenbusk 10-27-2011 05:17

Re: [ANY] Automatic Steam Update
 
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

sinblaster 10-27-2011 06:58

Re: [ANY] Automatic Steam Update
 
Quote:

Originally Posted by klausenbusk (Post 1584069)
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.

Dr. McKay 10-27-2011 07:10

Re: [ANY] Automatic Steam Update
 
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.

imoda 10-29-2011 20:50

Re: [ANY] Automatic Steam Update
 
Wish there was windows support

Dr. McKay 10-29-2011 21:53

Re: [ANY] Automatic Steam Update
 
Quote:

Originally Posted by imoda (Post 1586102)
Wish there was windows support

Not my fault, Linux is the only OS that supports -autoupdate. :)


All times are GMT -4. The time now is 13:17.

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