Raised This Month: $52 Target: $400
 13% 

[ANY] SteamWorks


Post New Thread Reply   
 
Thread Tools Display Modes
ImACow
AlliedModders Donor
Join Date: Feb 2015
Old 02-15-2019 , 14:36   Re: [ANY] SteamWorks
Reply With Quote #711

Any guidance how one can get the amount of playtime in a game? (for example csgo)?

SteamWorks_RequestStats
SteamWorks_GetStatCell

Looks like it, but I cannot get it to work

Any tips/example code?
__________________

Last edited by ImACow; 02-15-2019 at 14:37.
ImACow is offline
psychonic

BAFFLED
Join Date: May 2008
Old 02-16-2019 , 11:08   Re: [ANY] SteamWorks
Reply With Quote #712

Quote:
Originally Posted by ImACow View Post
Any guidance how one can get the amount of playtime in a game? (for example csgo)?

SteamWorks_RequestStats
SteamWorks_GetStatCell

Looks like it, but I cannot get it to work

Any tips/example code?
The stat name would be different per game, if the game even has a stat for that. CS:GO does - the name you'd use is "total_time_played". The easiest way to look up stat types defined for a game are on SteamDB. https://steamdb.info/app/730/stats/

And just because a game has a stat defined, does not mean that it's used. That said, CS:GO does seem to use most of its stats, including that one. You can check the values you have for them with Steam Achievement Manager. (You can also manually edit your own stats with it, which may allow defeating of your intended purpose).
psychonic is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Location: average villain lair
Old 04-27-2019 , 03:44   Re: [ANY] SteamWorks
Reply With Quote #713

Anybody here got this to work on Left 4 Dead 1?
__________________
AFK like JFK
Crasher_3637 is offline
Catalysm
Junior Member
Join Date: Oct 2018
Old 05-08-2019 , 20:28   Re: [ANY] SteamWorks
Reply With Quote #714

I'm trying to get the Sourceban discord forwarding plugin working ( https://sbpp.github.io/docs/discord_forward_setup/ ) but I keep running into an error when the plugin tries to do a HTTP request. The author of the plugin said I should ask here.

When doing the request, I see these log lines:

Code:
L 05/08/2019 - 23:18:27: "Catalysm<2><STEAM_1:1:33955106><TERRORIST>" say "!report"
{"username": "SourceBans++", "avatar_url": "https://sbpp.github.io/img/favicons/android-chrome-512x512.png", "embeds": [{"color": 16374082, "author": {"name": "Catalysm", "url": "https://steamcommunity.com/profiles/76561198028175941", "icon_url": "https://sbpp.github.io/img/favicons/android-chrome-512x512.png"}, "footer": {"text": "Catalysm duels #1 (ip-redacted:27315)", "icon_url": "https://sbpp.github.io/img/favicons/android-chrome-512x512.png"}, "fields": [{"name": "Author", "value": "Catalysm (STEAM_1:1:33955106)", "inline": true}, {"name": "Target", "value": "Catalysm (STEAM_1:1:33955106)", "inline": true}, {"name": "Reason", "value": "testing discord alert"}]}]}
SteamWorks_IsLoaded: 1
httpclient.cpp (2600) : Assertion Failed: pHost && *pHost
httpclient.cpp (2600) : Assertion Failed: pHost && *pHost
crash_20190508231833_14.dmp[21359]: Uploading dump (out-of-process)
/tmp/dumps/crash_20190508231833_14.dmp
crash_20190508231833_14.dmp[21359]: Finished uploading minidump (out-of-process): success = no
crash_20190508231833_14.dmp[21359]: error: libcurl.so: cannot open shared object file: No such file or directory
crash_20190508231833_14.dmp[21359]: file ''/tmp/dumps/crash_20190508231833_14.dmp'', upload no: ''libcurl.so: cannot open shared object file: No such file or directory''
L 05/08/2019 - 23:18:33: [sbpp_discord.smx] HTTP request failed for Catalysm against Catalysm

Status Code: 0
Thanks!
Catalysm is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 05-09-2019 , 04:18   Re: [ANY] SteamWorks
Reply With Quote #715

The plugin is trying to make a request to a URL with an empty host name - which probably means the entire URL is empty or otherwise invalid.

There is probably not much you can do with that info other than relay it back to the plugin author - they should really be the one bringing something like this here after doing their own investigation rather than you, as they know how the plugin is using SteamWorks.
__________________
asherkin is offline
Catalysm
Junior Member
Join Date: Oct 2018
Old 05-09-2019 , 16:13   Re: [ANY] SteamWorks
Reply With Quote #716

My config was wrong, I did not put the url in quotes /facepalm. Your comment made me realize that, thanks!
Catalysm is offline
GTAmama16
Member
Join Date: Jun 2019
Old 10-14-2019 , 15:59   Re: [ANY] SteamWorks
Reply With Quote #717

anyone know why is the reason causing this error when i try to load the plugins ?

SteamWorks error (status code 0)
GTAmama16 is offline
lugui
Senior Member
Join Date: Feb 2016
Location: Brasil
Old 11-03-2019 , 08:51   Re: [ANY] SteamWorks
Reply With Quote #718

I'm getting some errors with sourcemod 1.10.
the .inc file didn't compiled and after I fixed the old syntax erros some functions are not working for example Steam_CheckClientSubscription and Steam_CheckClientDLC
__________________
lugui is offline
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 11-05-2019 , 11:33   Re: [ANY] SteamWorks
Reply With Quote #719

Updated include:

steamworks.inc
__________________
JoinedSenses is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 11-09-2019 , 18:19   Re: [ANY] SteamWorks
Reply With Quote #720

Quote:
Originally Posted by lugui View Post
I'm getting some errors with sourcemod 1.10.
the .inc file didn't compiled and after I fixed the old syntax erros some functions are not working for example Steam_CheckClientSubscription and Steam_CheckClientDLC
Huh? Do you have any more information? Are you requesting the client information before calling the natives?
KyleS 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 12:18.


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