-
Posts
98 -
Joined
-
Last visited
Community Answers
-
Revadike's post in Get packageid's that contain a certain appid? was marked as the answer
Well, one way I found, is to add all steam apps to some account's wishlist and scrape that page.
g_rgAppInfo contains subs property per appid. Unfortunately, it only limits to subs available in the steam store.
So, this is no ideal and also not really what I was looking for. But it's nice to share this info.
-
Revadike's post in Identical http request returns success: 2 (generic fail) instead of success: 1 was marked as the answer
I adjusted my code to use sessionid provided by the webSession event instead, and now my code is fully working. Somehow community.getSessionID() was the blame for providing me the wrong sessionid.
-
Revadike's post in Getting current game? was marked as the answer
You can do it with steam-user:
const steamid = 123456; client.getPersonas([steamid], personas => { console.log(personas[steamid].game_name); // Non-steam game name }); -
Revadike's post in Checking if a steam64 id is your friend? was marked as the answer
Assuming you are logged in (user = steam-user instance, steamid = steamid64):
function isSteamFriends(steamid) { return Object.entries(user.myFriends).filter(e => e[1] === SteamUser.Steam.EFriendRelationship.Friend).map(e => e[0]).includes(steamid); } -
Revadike's post in Converting Items into Gems? was marked as the answer
https://github.com/DoctorMcKay/node-steamcommunity/wiki/CSteamUser#getinventoryappid-contextid-tradableonly-callback
https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#turnitemintogemsappid-assetid-expectedgemsvalue-callback