Raised This Month: $105 Target: $400
 26% 

[ANY] SteamWorks.ext Update Check


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Plugin ID:
4772
Plugin Version:
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Queries the Steamweb API if your server is out of date, and fires SteamWorks_RestartRequested if so.
    Old 08-10-2015 , 23:26   [ANY] SteamWorks.ext Update Check
    Reply With Quote #1

    This requires SteamWorks.ext.

    The plugin is pretty simple, takes the values from steam.inf and queries the Valve SteamWorks WebAPI. Towards the point for when your server is out of date, it fires the forward SteamWorks_RestartRequested.

    The plugin is to overcome a significant shortcoming in the Valve SteamWorks API, due to a lack of callback. To be fair though, we are doing things a little off label...

    The plugin will check for updates every 2 minutes.

    208 downloads.
    Attached Files
    File Type: smx UpdateCheck.smx (5.0 KB, 4387 views)
    File Type: sp Get Plugin or Get Source (UpdateCheck.sp - 2920 views - 2.9 KB)

    Last edited by KyleS; 10-30-2015 at 15:33.
    KyleS is offline
    Maxximou5
    AlliedModders Donor
    Join Date: Feb 2013
    Old 08-11-2015 , 02:57   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #2

    Excellent, this makes automation that much easier for us lazies. Have some bacon!

    Last edited by Maxximou5; 08-11-2015 at 02:57.
    Maxximou5 is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 08-12-2015 , 12:44   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #3

    You could use format=vdf and parse the response as KeyValues. I would think that it would also benefit from using version_is_listable (or up_to_date) instead of checking if versions match.
    __________________
    Dr. McKay is offline
    wazer
    Senior Member
    Join Date: Oct 2011
    Old 09-16-2015 , 01:08   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #4

    Quote:
    Originally Posted by KyleS View Post
    This requires SteamWorks.ext.

    The plugin is pretty simple, takes the values from steam.inf and queries the Valve SteamWorks WebAPI. Towards the point for when your server is out of date, it fires the forward SteamWorks_RestartRequested.

    The plugin is to overcome a significant shortcoming in the Valve SteamWorks API, due to a lack of callback. To be fair though, we are doing things a little off label...

    The plugin will check for updates every 2 minutes.

    Your plugin failed to compile! Read the errors below:
    SourcePawn Compiler 1.7.1 Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2014 AlliedModders LLC /home/groups/sourcemod/upload_tmp/php2URQJh.sp(3) : fatal error 182: cannot read from file: "SteamWorks" Compilation aborted. 1 Error.

    Can you look into t his?
    wazer is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 09-16-2015 , 01:12   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #5

    Quote:
    Originally Posted by wazer View Post
    Your plugin failed to compile! Read the errors below:
    SourcePawn Compiler 1.7.1 Copyright (c) 1997-2006 ITB CompuPhase Copyright (c) 2004-2014 AlliedModders LLC /home/groups/sourcemod/upload_tmp/php2URQJh.sp(3) : fatal error 182: cannot read from file: "SteamWorks" Compilation aborted. 1 Error.

    Can you look into t his?
    You need the SteamWorks.ext include file to compile this plugin.
    KyleS is offline
    wazer
    Senior Member
    Join Date: Oct 2011
    Old 09-16-2015 , 14:11   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #6

    Quote:
    Originally Posted by KyleS View Post
    You need the SteamWorks.ext include file to compile this plugin.

    This was when i pressed the "Get Plugin" button.



    On a side note, this addon breaks my server, it says there's an update every 2 minutes, after a player has joined up.

    Even tho everything is pure and dandy updated.

    Can you look into this?

    I just reinstalled everything and made sure everything was latest versions, yet it still said it was out of date.

    Im using the latest version found here

    http://users.alliedmods.net/~kyles/b...01-windows.zip


    Last edited by wazer; 09-16-2015 at 14:13.
    wazer is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 09-16-2015 , 15:07   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #7

    Quote:
    Originally Posted by wazer View Post
    This was when i pressed the "Get Plugin" button.



    On a side note, this addon breaks my server, it says there's an update every 2 minutes, after a player has joined up.

    Even tho everything is pure and dandy updated.

    Can you look into this?

    I just reinstalled everything and made sure everything was latest versions, yet it still said it was out of date.

    Im using the latest version found here

    http://users.alliedmods.net/~kyles/b...01-windows.zip

    Don't use the "Get Plugin" link, download the smx file instead.
    __________________
    Dr. McKay is offline
    misterG
    Senior Member
    Join Date: May 2015
    Location: Romania
    Old 09-16-2015 , 16:17   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #8

    Will this auto update your server without an update script ?
    __________________
    misterG is offline
    wazer
    Senior Member
    Join Date: Oct 2011
    Old 09-16-2015 , 23:31   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #9

    Quote:
    Originally Posted by KyleS View Post
    You need the SteamWorks.ext include file to compile this plugin.
    Hello KyleS

    Could you check my post, if you missed it.

    It says my server needs an update but there's no update to get, within 2 minutes of restart by the updatecheck.smx it goes into loop again saying update needed.

    https://forums.alliedmods.net/showpo...85&postcount=6
    wazer is offline
    wazer
    Senior Member
    Join Date: Oct 2011
    Old 09-17-2015 , 01:45   Re: [ANY] SteamWorks.ext Update Check
    Reply With Quote #10

    If you check up on version, show in picture you will notice that this is indeed latest version, but it still wants to update?


    Last edited by wazer; 09-17-2015 at 01:45.
    wazer 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 00:16.


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