Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. No, that's not currently possible.
  2. You've cut out the actual error message.
  3. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getpartnerinventorycontentsappid-contextid-callback
  4. You need to retrieve both parties' inventories, find the items you want to trade, and add them to the offer using addMyItem and addTheirItem.
  5. Thanks, I'm not sure how that slipped through the cracks.
  6. That sounds suspiciously like you're trying to JSON.stringify the error object. > let err = new Error('test') undefined > err Error: test at repl:1:11 at Script.runInThisContext (vm.js:123:20) at REPLServer.defaultEval (repl.js:384:29) at bound (domain.js:415:14) at REPLServer.runBound [as eval] (domain.js:428:12) at REPLServer.onLine (repl.js:700:10) at REPLServer.emit (events.js:208:15) at REPLServer.EventEmitter.emit (domain.js:471:20) at REPLServer.Interface._onLine (readline.js:314:10) at REPLServer.Interface._line (readline.js:691:8) > JSON.stringify(err) '{}'
  7. By default, each account gets its own sentry file, so having multiple instances running should make no difference. Although if something in your environment is preventing the sentry files from being written, that could potentially cause some issues.
  8. I don't really know a whole lot about the inner workings of CS:GO, but I'd think that if it's not exposed in the existing profile methods, then it's probably incredibly tricky to retrieve otherwise. I've not seen anything in the protobufs that refer to trust levels.
  9. That's pretty strange. I've never heard of anyone being prompted for a Steam Guard code when they use a loginKey; only loginKeys expiring and getting InvalidPassword back. That said, the way Steam handles loginKeys is kind of weird and they're prone to being rejected. I personally recommend that you just use passwords wherever possible.
  10. What do you mean by an empty object? The err property will always be either null or an Error object. That said, your problem is likely that your Steam account is limited, i.e. you haven't spent $5 yet.
  11. Please read the docs again more closely, specifically the deprecation notice.
  12. That does seem like it's a Steam bug. Did you try restarting your own Steam client, by chance? I wonder if that might have resynced things.
  13. You need to keep track of the asset IDs of items you already have offers out for, and filter them out of your inventory when you're sending additional offers.
  14. getExchangeDetails is 100% the most useful and reliable option. I should probably deprecate getReceivedItems.
  15. No problem, that's the recommended way to see if you can trade with someone.
  16. If loadUserInventory works more reliably for you and you're okay with the possibility of things breaking as a result of using a deprecated endpoint, then go for it.
  17. You should ask on the SourceMod forums.
  18. createOffer doesn't actually do anything on the network, so calling createOffer will never fail. You can check if the user's trade token is valid either by creating an offer and then calling getUserDetails, which will fail if the trade token is invalid (or the user cannot trade). You can also use GetTradeHoldDurations to check if a trade token is valid.
  19. 55 = RemoteCallFailed That error means that the Steam Community backend wasn't able to get the inventory from the GC (item server), likely because the GC is overloaded (status is probably "critical" at steamstat.us).
  20. You should be calling gamesPlayed inside of your loggedOn event. It really shouldn't be necessary to call it from an interval.
  21. That code as written should work, but: It looks like you'll be adding a new loggedOn listener every time you call login. That's not a problem if login is only called once, but I kind of doubt that's the case from this snippet. That return statement isn't doing anything. It's not necessary to pass your desired persona name every time. If you don't pass any name, Steam won't change your name. It's recommended to reference the enums rather than using the literal value. So in this case, client.setPersona(SteamUser.EPersonaState.Online) Where do you call gamesPlayed()?
  22. Check out the sentOfferChanged event.
  23. If Steam forgot you were in-game, you wouldn't go offline; you'd go online but not in-game. You probably want to try calling setPersona in your interval instead. That said, I've never experienced this. Can you show the code in your loggedOn event?
  24. Thanks so much for the help @vrtgn. It may be worth noting that if you're using async, you don't need to use .catch((err) => . . .). You can use try/catch: try { const inventory = await getInventory(); // do whatever } catch (err) { console.error(err); }
×
×
  • Create New...