-
Posts
3591 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
Can you show the code you're using to try to join the group chat?
-
There's no reason you shouldn't be able to use the number with getClanChatGroupInfo. That is your group's 64-bit SteamID. The ID in your group edit page is the accountid portion of your group's SteamID. You can turn it into a full SteamID by putting it in this string: "[g:1:x]" For example, the Valve group's accountid is 4, so we get https://steamcommunity.com/gid/[g:1:4]
-
Why would there be? You sent the offer, you should know that it was sent.
-
Of course that isn't going to work. No incoming trades that you can see will ever be in state 9 (CreatedNeedsConfirmation), so newOffer and receivedOfferChanged aren't going to emit with that state. Trades that you send that require confirmation are created in state 9, so sentOfferChanged isn't going to emit with that state because a trade can't change into state 9.
-
Question Using loginKey gives Error: InvalidPassword
Dr. McKay replied to Lenny McLennington's topic in node-steam-user
You probably want to use require("./login.json") and not just require("login.json"). -
I've just added it in v3.40.0.
-
If you're using a loginkey, don't send the password.
-
If it's a trade you sent but haven't confirmed yet, that's CreatedNeedsConfirmation. The other party can't see it. If it's a trade you received that you accepted but haven't confirmed yet, it's still Active. The confirmationMethod property is how you can tell if an incoming trade has an outstanding confirmation.
-
How to delete all crates in the inventory.
Dr. McKay replied to vrtgn's topic in node-steam-tradeoffer-manager
No, you can't pass an array to deleteItem. You'll need to call it for each item individually. -
Question Setting costum String as current playing
Dr. McKay replied to Karbust's topic in node-steam-user
Setting snooze worked fine for me. If you're not in-game, you will appear as "Away" in the newest Steam client, with a "ZZZ" icon. If you're in-game, just the "ZZZ" icon will appear. If you want a custom in-game string, make the string the first entry in your array that you pass to gamesPlayed. -
You probably want to use steam.uploadAvatar and not community.uploadAvatar. Also, attach a callback. Also also, don't use the auto-confirmation checker.
-
Read the docs, please.
-
Question Php Exec Executing Node Steam Trade Offer Manager
Dr. McKay replied to xawa's topic in node-steam-tradeoffer-manager
There is no one correct way. I have traditionally started an HTTP server in the Node process and called that from external processes, when needed. -
You exceeded a rate-limit.
-
Question httpRequestGet to store.steampowered.com
Dr. McKay replied to MrRobot's topic in node-steamcommunity
You should be able to use it on store.steampowered.com. When you use setCookies in SteamCommunity, it'll set them for steamcommunity.com, store.steampowered.com, and help.steampowered.com. -
Question Auto Confirm Outgoing Trade Offer
Dr. McKay replied to xawa's topic in node-steam-tradeoffer-manager
https://dev.doctormckay.com/topic/2102-acceptconfirmationforobject-must-be-logged-in-before-trying-to-do-anything-with-confirmations/ -
You should use the WebAPI to get games owned by a user.
-
Question Cannot read property 'createOffer' of undefined
Dr. McKay replied to xawa's topic in node-steam-tradeoffer-manager
You're not using this properly. In JavaScript, this references the parent object of the method at call-time. So for example: function exampleMethod() { console.log(this.name); } let obj1 = {"name": "obj1"}; let obj2 = {"name": "obj2"}; obj1.example = exampleMethod; obj2.example = exampleMethod; obj1.example(); // "obj1" because the "parent" to this call is obj1 obj2.example(); // "obj2" because the "parent" to this call is obj2 let example = obj1.example; example(); // undefined because there is no "parent" to example() in this call So when you do getInventoryContents(foo, bar, this.createOffer), when the module receives the callback, it sees this: TradeOfferManager.prototype.getInventoryContents(blah, callback) { // do stuff callback(); // no parent! so "this" will not be what you expect }; What you should do instead is: getInventoryContents(foo, bar, this.createOffer.bind(this)). Using the bind method "binds" the value of this before call-time. -
Question Auto Confirm Outgoing Trade Offer
Dr. McKay replied to xawa's topic in node-steam-tradeoffer-manager
https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#acceptconfirmationforobjectidentitysecret-objectid-callback -
Check the x-eresult header.
-
receivedOfferChanged or sentOfferChanged will be emitted with the offer's new state being Accepted when the trade comes out of escrow.