Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3651
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Is your clock right?
  2. Add this to your code and see what it prints out: steam.on('debug', console.log);
  3. No, the event won't fire if there isn't any HTTP traffic going on. But if you pass the SteamCommunity instance to the constructor of TradeOfferManager, then the manager will use that community for its HTTP requests and so no-session requests triggered by the manager will fire the event.
  4. That warning is normal. It installed successfully.
  5. https://github.com/DoctorMcKay/node-steamcommunity/wiki/SteamCommunity#sessionexpired And yes, refreshing cookies every hour or so isn't a bad idea.
  6. It'll be an empty array if you received nothing. You need to use the trade ID, not the trade offer ID.
  7. What did you use to start confirmation checking?
  8. Some items can be missing a market_hash_name under normal circumstances (e.g. some H1Z1 items). If name is empty that's a pretty dead giveaway.
  9. If you'd read that page that was linked, you'd know that that's exactly what confirmation polling does.
  10. You need to re-logon every so often to refresh your session. Using steam-user all you need to do is call webLogOn() periodically (or when stuff starts to break).
  11. All you can do is go online using chatLogon. You can't go "in-game".
  12. Yes, steamcommunity.com has a global rate limit, which applies to the inventory endpoint. I don't know what the limit is exactly, but there is one and you'll start getting 429 if you hit it.
  13. The documentation suggests that you don't go lower than 10 seconds.
  14. Timeouts are just timeouts. There isn't anything that can be done about them, unfortunately. I'm considering removing the "Data temporarily unavailable" error. That error is returned when the API call succeeds, but the returned offer has no items on either side. I think there's probably a better way to handle that.
  15. Which polling error is more frequent?
  16. Please tell me what the actual errors are.
  17. The event is emitted once per offer. If you encounter an error while processing it, it's your responsibility to queue it for later processing.
  18. Sorry for the late reply. Does that specific offer always appear to be empty?
  19. You can't track a specific item across a trade. You can get the IDs of the new items you received in a trade from the trade receipt page (steam-tradeoffer-manager has a method for this), but there is no defined order of items in the receipt. You can match inputs to outputs using their market_name and other defining characteristics, but if you have two identical items in a trade, there's no way to know for sure which specific item is which.
×
×
  • Create New...