Raised This Month: $12 Target: $400
 3% 

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 12-10-2019 , 21:50   Re: [ANY] SteamWorks
Reply With Quote #721

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?
joao7yt is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 12-10-2019 , 22:54   Re: [ANY] SteamWorks
Reply With Quote #722

Try this forward
https://sm.alliedmods.net/new-api/so...lPluginsLoaded
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 12-15-2019 , 23:13   Re: [ANY] SteamWorks
Reply With Quote #723

Quote:
Originally Posted by joao7yt View Post
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().
KyleS is offline
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 12-16-2019 , 08:03   Re: [ANY] SteamWorks
Reply With Quote #724

Quote:
Originally Posted by KyleS View Post
SteamWorks_IsLoaded()? Alternatively SteamWorks_SteamServersConnected().
SteamWorks_SteamServersConnected() did the trick, thanks.
joao7yt is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 12-17-2019 , 15:35   Re: [ANY] SteamWorks
Reply With Quote #725

Quote:
Originally Posted by joao7yt View Post
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.
KyleS is offline
joao7yt
Senior Member
Join Date: Nov 2014
Location: Brazil
Old 12-17-2019 , 16:03   Re: [ANY] SteamWorks
Reply With Quote #726

Quote:
Originally Posted by KyleS View Post
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?
joao7yt is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 12-19-2019 , 20:02   Re: [ANY] SteamWorks
Reply With Quote #727

Quote:
Originally Posted by joao7yt View Post
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.
KyleS is offline
Hiro.
AlliedModders Donor
Join Date: Jul 2017
Old 02-01-2020 , 10:51   Re: [ANY] SteamWorks
Reply With Quote #728

L 02/01/2020 - 1647: SourceMod error session started
L 02/01/2020 - 1647: 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 - 1647: [SM] Exception reported: This plugin requires one of the cURL, Socket, SteamTools, or SteamWorks extensions to function.
L 02/01/2020 - 1647: [SM] Blaming: updater.smx
L 02/01/2020 - 1647: [SM] Call stack trace:
L 02/01/2020 - 1647: [SM] [0] SetFailState
L 02/01/2020 - 1647: [SM] [1] Line 102, D:\Downloads\Unsorted\sourcemod-1.6.3-windows\addons\sourcemod\scripting\updater.sp ::OnPluginStart
L 02/01/2020 - 1647: [SM] Unable to load plugin "updater.smx": Error detected in plugin startup (see error logs)
L 02/01/2020 - 1647: [SM] Unable to load plugin "CowAntiCheat.smx": Required extension "SteamWorks" file("SteamWorks.ext") not running
L 02/01/2020 - 164:41: Error log file session closed.


any help?
Hiro. is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 02-01-2020 , 11:19   Re: [ANY] SteamWorks
Reply With Quote #729

Quote:
Originally Posted by Hiro. View Post
L 02/01/2020 - 1647: SourceMod error session started
L 02/01/2020 - 1647: 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 - 1647: [SM] Exception reported: This plugin requires one of the cURL, Socket, SteamTools, or SteamWorks extensions to function.
L 02/01/2020 - 1647: [SM] Blaming: updater.smx
L 02/01/2020 - 1647: [SM] Call stack trace:
L 02/01/2020 - 1647: [SM] [0] SetFailState
L 02/01/2020 - 1647: [SM] [1] Line 102, D:\Downloads\Unsorted\sourcemod-1.6.3-windows\addons\sourcemod\scripting\updater.sp ::OnPluginStart
L 02/01/2020 - 1647: [SM] Unable to load plugin "updater.smx": Error detected in plugin startup (see error logs)
L 02/01/2020 - 1647: [SM] Unable to load plugin "CowAntiCheat.smx": Required extension "SteamWorks" file("SteamWorks.ext") not running
L 02/01/2020 - 164:41: Error log file session closed.


any help?
Install the SteamWorks extension: http://users.alliedmods.net/~kyles/builds/SteamWorks/
paulo_crash is offline
Hiro.
AlliedModders Donor
Join Date: Jul 2017
Old 02-01-2020 , 11:32   Re: [ANY] SteamWorks
Reply With Quote #730

Quote:
Originally Posted by paulo_crash View Post
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..

Last edited by Hiro.; 02-01-2020 at 22:02.
Hiro. 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 06:06.


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