-
Posts
3591 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Question Auto-Download games functionality, posible?
Dr. McKay replied to Manzanitox's topic in node-steam-user
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. -
There aren't any plans for this, primary due to spam concerns.
-
This is unlikely to ever be added to steam-user.
-
Not presently.
-
Question Auto-Download games functionality, posible?
Dr. McKay replied to Manzanitox's topic in node-steam-user
"Cannot download a directory" means that you tried to download a directory as if it were a file. You can't do that. -
Don't believe so.
-
Yeah, that's still the only way.
-
Not with any publicly-available libraries I'm aware of.
-
Oh, you meant in the node module. Open a GitHub issue and someone will get to it at some point, presumably.
-
It should already work with an API key.
-
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.
-
Like when you're logging in? Check the error event.
-
Question TypeError:setInteral()unref is not a function
Dr. McKay replied to johnnyJ's topic in node-steam-user
You're not running code in the Node.js context. -
Not with this module.
-
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.
-
Question Getting error when try to use any methods for steam-user
Dr. McKay replied to johnnyJ's topic in node-steam-user
Looks like you're executing the JavaScript in the browser context and not in the Node.js context. -
Identifying Type of the TF2 Item
Dr. McKay replied to Cool Guy's topic in node-steam-tradeoffer-manager
It's in the tags. -
It is.
-
For the love of God, fix your indentation. loadPartnerInventory doesn't have a tradableOnly param, so don't pass one.
-
The object ID should be your trade offer ID, not the confirmation ID. You shouldn't use the newConfirmation event at all anymore.
-
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).
-
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