-
Posts
3631 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Will the CS key be tradeable?
Dr. McKay replied to PonyExpress's topic in node-steam-tradeoffer-manager
appid, contextid, assetid, classid, instanceid, amount, name, market_name, market_hash_name See this guide id Same as assetid pos Not always present; this is the item's position in the user's inventory (starting at 1) background_color Hex code for the background color rendered for this item in the Steam inventory name_color Hex code for the name and border color rendered for this item in the Steam inventory icon_url Append this to https://steamcommunity-a.akamaihd.net/economy/image/ to get the item's image descriptions Array of objects containing human-readable description text lines tradable, marketable Self-explanatory type The text that goes under the game's name to the right of the square game logo in the Steam inventory when this item is viewed commodity Determines whether this item's Market listing uses buy orders exclusively (true), or individual listings with the possibility to submit buy orders (false) market_tradable_restriction Length in days that this item will be untradable after it's bought on the market market_marketable_restriction Length in days that this item will be unmarketable after it's bought on the market tags Array of tag objects; tags are used in the Steam inventory for filtering is_currency Always going to be false except for some Spiral Knights stuff (I think). You really don't want to deal with currencies, trust me. fraudwarnings Array of warnings that will be rendered in red when this item is viewed. If fraudwarnings exist, the item gets a red (!) icon in the Steam inventory -
Will the CS key be tradeable?
Dr. McKay replied to PonyExpress's topic in node-steam-tradeoffer-manager
I can't guarantee it's going to work for you forever, but I would guess that checking the marketable property is a reliable way to see if a key is temporarily or permanently untradable. -
tf2 v3 only supports steam-user v4.2.0 or later
Dr. McKay replied to ◄ Trader Dave ►'s topic in node-steam-user
What did your problem end up being? -
The "D" value seems to be just some key used by the GC to make sure that people can't just guess at values to get item data. I've yet to find any way to extract any meaning out of it, only that it's required to retrieve the item's data. The index property is just the position of the first character in your string where the regex matched. Since you're regexing the entire inspect link, that's 0, or the very first character. Do note that if an item is listed on the market, then the "M" value is the market listing ID and not the owner's SteamID. And I guess you've figured out by now that the SteamID in the link (76561202255233023) is meaningless.
-
There isn't really a way to do that. You'd need to retrieve the user's inventory from Steam and get the name and image that way. Well, you could download the item schema and work out the item's name at least, but getting the image is entirely impractical. You'd need to reimplement the entire algorithm used by the game client to render items, which I promise you, you don't want to do.
-
I'm not sure I believe you.
-
Did you run npm install steam-user?
-
Global delay 1sec before client.chatMessage ?
Dr. McKay replied to PonyExpress's topic in node-steam-user
You'd need to either call setTimeout everywhere you call client.chatMessage, or create your own function that calls client.chatMessage after a delay and replace all calls to client.chatMessage with your new function. -
I do intend to add (well, accept the pull request for) first-class support for item containers, I just haven't gotten around to it at the moment.
-
I have no idea if this will work, but you might try: const Language = require('globaloffensive/language.js'); const Protos = require('globaloffensive/protobufs/generated/_load.js'); If that doesn't work, this should (provided you've installed the module in the current directory): const Language = require('./node_modules/globaloffensive/language.js'); const Protos = require('./node_modules/globaloffensive/protobufs/generated/_load.js');
-
Unable to get polling to work
Dr. McKay replied to troffaholic's topic in node-steam-tradeoffer-manager
Polling uses the WebAPI, so an API key is required. -
Unable to get polling to work
Dr. McKay replied to troffaholic's topic in node-steam-tradeoffer-manager
Try adding a callback to this.manager.setCookies and see if you're getting an error there. If you aren't, add this.manager.on('debug', console.log) and paste whatever output you get. -
That doesn't really make a lot of sense. You're sending an array of asset IDs? There's no way to just figure out which app a given asset ID belongs to. You'd need to also send the appid.
-
Error: Access Denied with sendFriendMessage method
Dr. McKay replied to Siple's topic in node-steam-user
What's the value of your ownerID? -
Yes, that's what the code I posted is for. Yes, yes, yes.
-
You don't need to log into the client to send or receive trade offers, no. You can use a proxy like: const SteamUser = require('steam-user'); let user = new SteamUser({ httpProxy: 'http://user:[email protected]:5678' });
-
About the only difference Steam would notice is a desktop browser user-agent instead of the app's user-agent. But I've been doing this for years and it's been fine for me.
-
Using two different apps for 2FA tends to cause problems, so I don't recommend it. Uninstalling the Steam app from your phone will probably fix your WinAuth issues. There's no reason you couldn't use my libraries to write your own auto-confirm script thing, although I don't recommend it. My personal setup is a Steam Two-Factor Server with the complementary user script. With this setup, whenever I send or accept a trade offer, the browser window just automatically goes to the confirmations page where I can confirm the trade. Though on a phone, I think you'd have to use Firefox and install Tampermonkey to get it to work.
-
Get steamid from partnerid in tradeofferurl
Dr. McKay replied to What Comes Around's topic in node-steam-tradeoffer-manager
https://www.npmjs.com/package/steamid -
node-tf2 backpackLoaded Doesn't Get Triggered After Killing 440
Dr. McKay replied to sergun's topic in node-steam-user
I suppose before you overwrite the variable, you could try deleting the backpack property. -
node-tf2 backpackLoaded Doesn't Get Triggered After Killing 440
Dr. McKay replied to sergun's topic in node-steam-user
I'm sorry, I don't think I can really help you much more with this. I haven't seriously touched any GC-related code in a good while, and the most I could do is experiment, which it seems is what you're doing anyway. -
node-tf2 backpackLoaded Doesn't Get Triggered After Killing 440
Dr. McKay replied to sergun's topic in node-steam-user
I don't see any reason why you couldn't try to craft without having received your backpack contents, assuming you are connected to the GC. -
Get steamid from partnerid in tradeofferurl
Dr. McKay replied to What Comes Around's topic in node-steam-tradeoffer-manager
const SteamID = require('steamid'); const URL = require('url'); let link = 'https://steamcommunity.com/tradeoffer/new/?partner=46143802&token=aaaaaaaa'; let steamid = SteamID.fromIndividualAccountID(URL.parse(link, true).query.partner);