View Single Post
LionCrest
AlliedModders Donor
Join Date: Apr 2018
Old 04-13-2018 , 14:36   Re: [ANY] SteamWorks
Reply With Quote #664

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(client550); // 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!
LionCrest is offline