Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Without knowing exactly what depot you're trying to download, all I can tell you is to check each file entry in the manifest to see if flags & EDepotFileFlag.Directory.
  2. There aren't any plans for this, primary due to spam concerns.
  3. This is unlikely to ever be added to steam-user.
  4. "Cannot download a directory" means that you tried to download a directory as if it were a file. You can't do that.
  5. Don't believe so.
  6. Yeah, that's still the only way.
  7. Are you up to date?
  8. Not with any publicly-available libraries I'm aware of.
  9. GetOwnedGames returns playtime.
  10. No, that's not going to be possible.
  11. Oh, you meant in the node module. Open a GitHub issue and someone will get to it at some point, presumably.
  12. It should already work with an API key.
  13. They updated webchat with the new system. It doesn't go through the API anymore. Now the browser connects to the same servers as the Steam client does, which is what steam-user is designed to do. So if you want to do chat, you need to do it through there now.
  14. Like when you're logging in? Check the error event.
  15. You're not running code in the Node.js context.
  16. It's not possible to get the SteamIDs of players on a game server, no. You might be able to see what server a particular Steam user is on by getting their profile data from the WebAPI.
  17. Looks like you're executing the JavaScript in the browser context and not in the Node.js context.
  18. For the love of God, fix your indentation. loadPartnerInventory doesn't have a tradableOnly param, so don't pass one.
  19. The object ID should be your trade offer ID, not the confirmation ID. You shouldn't use the newConfirmation event at all anymore.
  20. Yes, try/catch + isValid is the way you're supposed to validate a SteamID (also check the universe and type if you care about those).
  21. This is incredibly nooby but hey, we all start somewhere, right? Props for wanting to learn and not wanting everything just handed to you. You'd want to create an object and store it in a variable (e.g. let richPresence = {};), then loop over the array and set properties in that object (using bracket notation). So, this: let richPresence = {}; // create a new, empty object (sClient.users[sID].rich_presence || []).forEach((element) => { // Loop over the rich_presence array. If it happens to be missing, substitute it using || for // an empty array so we don't end up crashing by trying to reference forEach on undefined/null. richPresence[element.key] = element.value; }); console.log(richPresence.status); // Playing CS:GO
×
×
  • Create New...