Raised This Month: $32 Target: $400
 8% 

[ANY] SteamWorks.ext Update Check


Post New Thread Reply   
 
Thread Tools Display Modes
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 11-02-2015 , 21:36   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #21

Already exists:

https://forums.alliedmods.net/showthread.php?p=2238058
__________________
Sarabveer is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-03-2015 , 00:46   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #22

Quote:
Originally Posted by Sarabveer View Post
This plugin exists to make your plugin work if needed.
__________________
Dr. McKay is offline
Advokat
Member
Join Date: Mar 2014
Location: Australia
Old 11-12-2015 , 20:01   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #23

Quote:
Originally Posted by KyleS View Post
I've updated the plugin, feel free to give it a go.
Working perfectly with Veer's plugin. Much appreciated!
Advokat is offline
couldbepurplecouldbepink
Member
Join Date: Aug 2011
Old 01-20-2016 , 10:55   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #24

L 01/20/2016 - 10:43:19: [SM] Unable to load plugin "UpdateCheck.smx": Required extension "SteamWorks" file("SteamWorks.ext") not running

The file does infact exist. All files are where they should be.

Edit: Nvm map change did the trick even though I had just did it.
__________________
I'm feeling skinny Tony!

Last edited by couldbepurplecouldbepink; 01-20-2016 at 11:07.
couldbepurplecouldbepink is offline
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 02-09-2017 , 17:11   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #25

Is this compatible with a normal start up batch script?
Nolongerinthegame is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 02-09-2017 , 18:11   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #26

Quote:
Originally Posted by nelioneil View Post
Is this compatible with a normal start up batch script?
Sure.
KyleS is offline
dustinandband
Senior Member
Join Date: May 2015
Old 03-28-2019 , 16:58   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #27

I'm not real clear on how the update check works if the server's been empty for a while:

PHP Code:
public OnMapStart()
{
    
CreateTimer(120.0OnCheckForUpdate_TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT);

I recall testing that timer callbacks don't get called on an empty server unless you have AFK cvars in place (timer callbacks don't get executed when the server is in hybernation mode).

So if the server was empty when a game update got published - this timer callback never gets called in the first place - then how does it check for an update?

Can test with this and see the callback never gets executed on the server unless you have AFK cvars to prevent the server from going in hybernation mode:
PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

public void OnMapStart()
{
    
CreateTimer(30.0OnCheckForUpdate_TIMER_FLAG_NO_MAPCHANGE|TIMER_REPEAT);
}

public 
Action OnCheckForUpdate(Handle timerHandle hndl
{
    
PrintToServer("Timer callback executed");
    
    return 
Plugin_Handled;

Personally I just manually check the screen session's log file for the word "MasterRequestRestart" every so often for updates (then clear the log file so it doesn't keep detecting that same word). I'm mainly posting out of curiosity / potential bug report.
dustinandband is offline
Cats869
Junior Member
Join Date: Apr 2020
Old 05-07-2020 , 17:33   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #28

Not sure if this plugin is still maintained but I tried running it on my CSGO server that was recently out of date and seeing if it would cause my server to restart. So far, it has not restarted yet after waiting 10 minutees and I made sure to add the latest SteamWorks (build 132) to the server. Plugin appears to be loaded when I checked with sm plugins list and I did not see any obvious errors.
Cats869 is offline
foxhound27
AlliedModders Donor
Join Date: Sep 2019
Location: Argentina
Old 02-24-2024 , 21:23   Re: [ANY] SteamWorks.ext Update Check
Reply With Quote #29

Thank you
foxhound27 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 06:19.


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