ThePlata
-
Posts
8 -
Joined
-
Last visited
Posts posted by ThePlata
-
-
I would assume that you're only supposed to call
res.send
once.Yes you're right. So what you're suggesting it I store the values in an array and res.send it once? Wouldn't it be the same since you're still looping it?
-
How do I get the names of all available games on steam displaying on the website? Here's my code. It just displays a blank page for like 5 seconds and displays an "Already logged on, cannot log on again" error. How do I properly display it?
client.on("appOwnershipCached", () => { let gameArr = client.getOwnedApps(); client.getProductInfo( gameArr, [], (err, apps, packages, unknownApps, unknownPackages) => { for (var appid in apps) { res.send(apps[appid].appinfo.common.name); } } ); });
-
Okay, so there's your problem. As of v4, the first argument in all callbacks is
err
. Check out the full release notes for all the breaking changes.Ahhhhh, this is why it's happening. I'll try it again once I get back home. Thanks
-
Are you on v3 or v4?
I'm currently using "steam-user": "^4.0.0-beta.5"". I downloaded it using NPM
-
Nothing seems to be working for me. When I try client.picsCache, it returns { changenumber: 0, apps: {}, packages: {} } which means my account doesn't have any games at all. How is this possible?
-
Works fine for me.
This is really weird. When I console log apps, it'll return null but when I console log packages, it returns the exact same output as what you have shown above. Is this some kind of a bug?
-
Need help getting names of all available games on steam account
in node-steam-user
Posted
I figured a way to do it. Thanks