AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   [ANY] SteamWorks (https://forums.alliedmods.net/showthread.php?t=229556)

joao7yt 12-10-2019 22:50

Re: [ANY] SteamWorks
 
It seems like HTTP Requests are not working if they are inside OnPluginStart() and the server is still starting... if I reload the plugin after the server has fully loaded, using "sm plugins reload <pluginName>", then the HTTP Request retrieves the wanted data just fine. It has something to do with the server yet loading when an HTTP Request is called.

I didn't want to use a timer to fix it... Do you know if it's fixable or if there's an alternative to OnPluginStart(), some ServerLoaded() callback?

Lux 12-10-2019 23:54

Re: [ANY] SteamWorks
 
Try this forward
https://sm.alliedmods.net/new-api/so...lPluginsLoaded

KyleS 12-16-2019 00:13

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by joao7yt (Post 2676534)
It seems like HTTP Requests are not working if they are inside OnPluginStart() and the server is still starting... if I reload the plugin after the server has fully loaded, using "sm plugins reload <pluginName>", then the HTTP Request retrieves the wanted data just fine. It has something to do with the server yet loading when an HTTP Request is called.

I didn't want to use a timer to fix it... Do you know if it's fixable or if there's an alternative to OnPluginStart(), some ServerLoaded() callback?

SteamWorks_IsLoaded()? Alternatively SteamWorks_SteamServersConnected().

joao7yt 12-16-2019 09:03

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by KyleS (Post 2677078)
SteamWorks_IsLoaded()? Alternatively SteamWorks_SteamServersConnected().

SteamWorks_SteamServersConnected() did the trick, thanks.

KyleS 12-17-2019 16:35

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by joao7yt (Post 2677108)
SteamWorks_SteamServersConnected() did the trick, thanks.

Remember it's called every time Steam reconnects - use a static or something within the gfwd to only initialize once.

joao7yt 12-17-2019 17:03

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by KyleS (Post 2677249)
Remember it's called every time Steam reconnects - use a static or something within the gfwd to only initialize once.

Thanks. Is there somewhere I can get a full list of SteamWorks callbacks and their descriptions?

KyleS 12-19-2019 21:02

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by joao7yt (Post 2677253)
Thanks. Is there somewhere I can get a full list of SteamWorks callbacks and their descriptions?

The include file and I guess the official Valve documentation. There's a couple internal things but they're mostly documented.

Hiro. 02-01-2020 11:51

Re: [ANY] SteamWorks
 
L 02/01/2020 - 16:34:37: SourceMod error session started
L 02/01/2020 - 16:34:37: Info (map "workshop/1485209481/de_dust2_fo") (file "/data/service8783/data/service_item_1178369/csgo/addons/sourcemod/logs/errors_20200201.log")
L 02/01/2020 - 16:34:37: [SM] Exception reported: This plugin requires one of the cURL, Socket, SteamTools, or SteamWorks extensions to function.
L 02/01/2020 - 16:34:37: [SM] Blaming: updater.smx
L 02/01/2020 - 16:34:37: [SM] Call stack trace:
L 02/01/2020 - 16:34:37: [SM] [0] SetFailState
L 02/01/2020 - 16:34:37: [SM] [1] Line 102, D:\Downloads\Unsorted\sourcemod-1.6.3-windows\addons\sourcemod\scripting\updater.sp ::OnPluginStart
L 02/01/2020 - 16:34:37: [SM] Unable to load plugin "updater.smx": Error detected in plugin startup (see error logs)
L 02/01/2020 - 16:34:37: [SM] Unable to load plugin "CowAntiCheat.smx": Required extension "SteamWorks" file("SteamWorks.ext") not running
L 02/01/2020 - 16:34:41: Error log file session closed.


any help?

paulo_crash 02-01-2020 12:19

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by Hiro. (Post 2682388)
L 02/01/2020 - 16:34:37: SourceMod error session started
L 02/01/2020 - 16:34:37: Info (map "workshop/1485209481/de_dust2_fo") (file "/data/service8783/data/service_item_1178369/csgo/addons/sourcemod/logs/errors_20200201.log")
L 02/01/2020 - 16:34:37: [SM] Exception reported: This plugin requires one of the cURL, Socket, SteamTools, or SteamWorks extensions to function.
L 02/01/2020 - 16:34:37: [SM] Blaming: updater.smx
L 02/01/2020 - 16:34:37: [SM] Call stack trace:
L 02/01/2020 - 16:34:37: [SM] [0] SetFailState
L 02/01/2020 - 16:34:37: [SM] [1] Line 102, D:\Downloads\Unsorted\sourcemod-1.6.3-windows\addons\sourcemod\scripting\updater.sp ::OnPluginStart
L 02/01/2020 - 16:34:37: [SM] Unable to load plugin "updater.smx": Error detected in plugin startup (see error logs)
L 02/01/2020 - 16:34:37: [SM] Unable to load plugin "CowAntiCheat.smx": Required extension "SteamWorks" file("SteamWorks.ext") not running
L 02/01/2020 - 16:34:41: Error log file session closed.


any help?

Install the SteamWorks extension: http://users.alliedmods.net/~kyles/builds/SteamWorks/

Hiro. 02-01-2020 12:32

Re: [ANY] SteamWorks
 
Quote:

Originally Posted by paulo_crash (Post 2682390)

i did, honestly i checked 3 times if i put all the files in, and its there :O

Edit:
altho as i look now in sm exts list, steamworks is not there :(

Edit2:

Nevermind, im an idiot pff, i have a hosted server on linux and i kept downloading windows version, then after 5hrs i remember its linux and not windows.

sorry, im braindead..


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

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