Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlayingGameName/gameextrainfo not being returned? #54

Closed
JayVDZ opened this issue Dec 29, 2017 · 5 comments
Closed

PlayingGameName/gameextrainfo not being returned? #54

JayVDZ opened this issue Dec 29, 2017 · 5 comments

Comments

@JayVDZ
Copy link
Contributor

JayVDZ commented Dec 29, 2017

This doesn't appear to be an issue with the library, but the API from what I can see, but all the same I thought I'd raise the issue here to see if anyone else is getting this?

When calling GetPlayerSummariesAsync(), the PlayingGameName property is not set for a summary, even though there is a PlayingGameId set.

Making the call to the Steam API itself shows nothing returned for the gameextrainfo attribute, i.e:
http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=xxxxx&steamids=76561197960392732

Is anyone else experiencing this?

@JayVDZ
Copy link
Contributor Author

JayVDZ commented Jan 4, 2018

Wrongly linked API docs above. Should be:
https://partner.steamgames.com/doc/webapi/ISteamUser#GetPlayerSummaries
Though this doesn't define the return data.

As a workaround, using the ISteamUserStats/GetSchemaForGame method with the previously obtained gameid, I get a game name, but in the case of the game I just tried (Cities: Skylines) it returned the wrong name (Colossal Order Game). Not sure what to do at this point. Continuing to rummage around he API for better game info.

@babelshift
Copy link
Owner

babelshift commented Jan 5, 2018 via email

@JayVDZ
Copy link
Contributor Author

JayVDZ commented Jan 5, 2018

Thanks. It looks like the API no longer supports this attribute, so the PlayerSummaryModel.PlayingGameName attribute should probably be removed.

I got round this by using SteamApps.GetAppListAsync() to lookup the name using PlayerSummaryModel.PlayingGameId

@babelshift
Copy link
Owner

As you've suggested, it looks like this API has dropped the gameextrainfo property from the resulting JSON. As an example, here is what is returned for my account when playing Prison Architect. I think that your solution of making an extra call to find the game details is the only solution.

As for your wrong game name, I think it's actually correct, but the developer named their game oddly. The developer of Cities: Skylines is actually "Colossal Order", and it appears that they created the Steam package with a generic name while it was under development. You can confirm this by looking at the achievements in that GetSchema call and seeing that they align with Cities: Skylines.

{
  "steamid": "76561197960361544",
  "communityvisibilitystate": 3,
  "profilestate": 1,
  "personaname": "aro",
  "lastlogoff": 1515297892,
  "profileurl": "http://steamcommunity.com/id/aro/",
  "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a9/a9e5bf672bb4c7837b9fbec8a76bc1184fb3b99f.jpg",
  "avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a9/a9e5bf672bb4c7837b9fbec8a76bc1184fb3b99f_medium.jpg",
  "avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/a9/a9e5bf672bb4c7837b9fbec8a76bc1184fb3b99f_full.jpg",
  "personastate": 1,
  "primaryclanid": "103582791435784710",
  "timecreated": 1063378043,
  "personastateflags": 0,
  "gameid": "233450"
}

@babelshift
Copy link
Owner

Let me know if you need more help. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants