|
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
|
04-18-2018
, 23:37
Re: [ANY] SteamWorks
|
#665
|
Quote:
Originally Posted by LionCrest
Howdy,
I've been tinkering with this extension lately and it works great! However, it does not seem to work for me with GameServerStats. Here's a snippet I use:
PHP Code:
public OnClientConnected(client)
{
if(!IsFakeClient(client))
{
new bool:bStatsReceived = SteamWorks_RequestStats(client, 550); // will ALWAYS return 1 (even if appid is nonsensical)
PrintToServer("SteamWorks_RequestStats() result: %d", bStatsReceived);
decl iStatVal;
SteamWorks_GetStatCell(client, "Stat.WasRevived.Total", iStatVal); // will ALWAYS return 0 (0.0 for GetStatFloat)
PrintToServer("SteamWorks_GetStatCell() result: %d", iStatVal);
}
}
Here's some additional info:
Game: Left 4 Dead 2
Sourcemod: 1.7.3-dev+5320
Extension: SteamWorks-git126-linux
Here's what I tried: replacing game binaries (from the first post and from SteamCMD), older extension versions, changing steamworks_* engine cvars and querying various stats. Nothing has worked so far, I always get just zero
I know for a fact that some people use this extension to pull various stats in L4D2, so it is likely a problem on my side.
I would greatly appreciate any help or advice on how I could locate the issue!
|
The interface is deprecated as per the documentation on the SteamWorks partner page.
|
|
|
|