Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3631
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. Your promise is getting resolved synchronously before anything actually happens.
  2. Where are you logging accessToken? After the promise is resolved? If that's the case, you need to move your resolve(this) line after when the access token is set. I need to see all relevant code, along with debugging output (add console.log statements in places) to provide any further help.
  3. What output are you getting, if any?
  4. It looks like you're passing the same code to the steamGuard event as you used in the logOn method. If it didn't work the first time, it's not going to work a second time. You likely need to wait 30 seconds for the next code to come round, or add 30 seconds to your time offset.
  5. Sounds like it's crashing. Not much that can be done to help you without a stack trace.
  6. It certainly won't hurt anything to keep forcing the protocol to WebSocket, and it might improve compatibility with your proxy.
  7. "Encrypted message authentication failed" should honestly never happen. If it does, either something is very broken in your setup, or else someone (e.g. your proxy) is modifying your network traffic in transit. Could you please provide the versions of everything involved? steam-user, @doctormckay/steam-crypto, node.js, operating system, etc. I'll try to make recovery from that error a little more gracious, but in the meantime you might be able to work around it by forcing the protocol to WebSocket: let user = new SteamUser({ protocol: SteamUser.EConnectionProtocol.WebSocket });
  8. I could be wrong, but as far as I remember there's no concrete way to know that an offer is a counter offer. You could possibly check the offer created time and see if it closely matches the updated time of a previous offer sent to that user which has status Countered.
  9. Fixed in 4.24.5. I'm going to need you to be more specific on the shortcomings you're describing.
  10. I can see it right there.
  11. Are you calling gamesPlayed? You can only have a single playing session or else you'll get kicked with that error.
  12. Dr. McKay

    Steam Market WS

    I actually wasn't aware of this until now. Market.PopularByCurrency(1) looks an awful lot like a unified message name, and it's probably using some of the same tech under the hood. But I doubt it'll just work with any call without having been set up by Valve beforehand. I'm not aware of any other feeds.
  13. Pretty much anything is possible when Steam is involved. You should be prepared to handle an eventuality where an offer send fails but it ends up going through and being accepted. You can use the unknownOfferSent event to detect when an offer goes through that isn't expected to (i.e. you called offer.send and it succeeded).
  14. You need to call setCookies on the TradeOfferManager instance. Passing a SteamCommunity to the TradeOfferManager constructor makes TradeOfferManager call setCookies on the SteamCommunity instance when you call setCookies on the manager instance, but not the other way around.
  15. Sorry, I don't have time to help with stuff like this.
  16. You're logging in to an anonymous user account (that's what the a means in [a:1:x]), which implies that your accountName is undefined.
  17. https://github.com/DoctorMcKay/node-steam-user/blob/master/components/cdn.js#L268
  18. https://github.com/DoctorMcKay/node-globaloffensive/blob/master/index.js#L277-L290 This code will probably work.
  19. You could just keep the offer object in memory somewhere and call getExchangeDetails on it again later. Or look it up by trade offer ID. TradeOfferManager doesn't have any way to request the trade status API without having a TradeOffer object first.
  20. I bet that for some reason, immediately after the trade finishes it's not returning the items but after some time they show up. I'd recommend that you set up retries for getExchangeDetails if it comes back empty.
  21. Check the same trade ID using the other bot's API key and see if it properly reports assets_received.
  22. Looks like it's returning assets_given, but not assets_received, so that would be why receivedItems is empty in TradeOfferManager. That's the data that Steam is reporting.
×
×
  • Create New...