Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3398
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Yes, it's printing "Error: Logon failed, Invalid Password or playing in the account." because you're printing that unconditionally when an error occurs.
  2. offer.getExchangeDetails(function(err, status, tradeInitTime, receivedItems, sentItems) { console.log("Trade status is " + status + ", init time " + tradeInitTime + ", and we received " + receivedItems.length + " items and sent " + sentItems.length + " items."); });
  3. You need to wait for this event: https://github.com/DoctorMcKay/node-steam-user#friendslist Also, the problems I see with your code are that err doesn't exist, and that you're only sending back the friends list if it's falsy (which would never result in sending back the friends list).
  4. Doesn't look like TradeOfferManager is defined. In the future, please include any error messages and stack traces.
  5. Experiment and find out. 2-3 seconds should probably be enough but I'm not positive off the top of my head.
  6. It will recheck it automatically to see if its status changed. There's no way to specify that something should happen if its status doesn't change after a certain time; you'll need to handle that yourself.
  7. Try again later, and listen for receivedOfferChanged to see if it goes accepted later.
  8. This code should work if you aren't using two devices, yes. You need to never try to load confirmations on your phone or elsewhere or else there will be problems. Specifically, there's a device ID that's sent to Steam when loading the confirmation list and if Steam sees different device IDs, then it has problems.
  9. You can use this; it tells you how many items you have for each inventory.
  10. Yes, that's a problem. Confirming trades on two separate devices makes them randomly not appear.
  11. Are you saying that you have the secret on your mobile device as well, in addition to on the server?
  12. It doesn't look like you're renewing your web session. You need to call client.webLogOn() when it expires (listen for sessionExpired on your SteamCommunity). It also doesn't hurt to call it periodically, say every hour.
  13. It's intentional. If you want names and such, you need to set a language. If you don't need them, don't set it. Not setting a language saves resources and memory as information for the given language needs to be downloaded from Steam separately and cached in memory.
  14. If you need to execute the script from php, you can use exec or shell_exec If you need to call into a running script from php, you could set up an HTTP server in node and call it with curl in php.
  15. https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback
  16. I don't believe there's any way to extract it from a phone at this time, no.
  17. Please elaborate? It's in the response to enableTwoFactor, but I doubt that's what you're asking.
×
×
  • Create New...