seishun / node-steam

Interface directly with Steam servers from Node.js
MIT License
1k stars 181 forks source link

game_name property in friend object is no longer populated on personaState event #422

Closed heralden closed 6 years ago

heralden commented 6 years ago

I noticed that game_name is no longer updated, and is left empty even when gameid is defined. Here's an excerpt from the friend object that is passed with the SteamFriends.personaState event.

{ 
  ...
  game_name: '',
  gameid: '6910',
  game_data_blob: <Buffer > }

Has Steam simply stopped using this property? I tried looking for any commits/issues regarding this on the SteamKit repo but couldn't find anything.

seishun commented 6 years ago

node-steam doesn't do anything special with the CMsgClientPersonaState objects. Have you tried using NetHook2 to see if it's present when communicating with a real Steam client? The EMsg you want to look for is ClientPersonaState.

heralden commented 6 years ago

Thanks for the quick answer! I tried using nethook2 with the analyzer, and it's the same case in the ClientPersonaState dumps. I guess I'll just have to use the Steam Web API or Store API to get the game name.

scholtzm commented 6 years ago

They still send it for some games, but from what I have seen so far, most personaState messages no longer include this information.