Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3545
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. You can't. Restarting a process necessarily drops your TCP connections, which means that you get disconnected and thus logged out.
  2. The first argument to the webSession callback is sessionID, not cookies. My guess would be that you have a handler for SteamCommunity's sessionExpired event that calls client.webLogOn(), which it's continually doing because it never receives valid cookies.
  3. You'd have to use node-globaloffensive for that.
  4. You probably need to set the Referer header.
  5. Interesting. Are you trying to download a manifest that isn't the latest? The beta Steam client has indications that Valve might start restricting that.
  6. Please double-check the version in node_modules/steam-user/package.json. cdn.js line 155 is blank in the latest version.
  7. A SteamID object is an object, not a string containing the 64-bit SteamID. See info here from the SteamCommunity docs. The SteamID returned when you retrieve the user's profile from their vanity URL is indeed correct: > const SteamID = require('steamid') > let sid = new SteamID() > sid.universe = 1 > sid.type = 1 > sid.instance = 1 > sid.accountid = 117631762 > sid.getSteamID64() '76561198077897490' If you have the SteamID e.g. from passport-steam, then this is how you'd call getSteamUser: const SteamCommunity = require('steamcommunity'); let community = new SteamCommunity(); community.getSteamUser(new SteamCommunity.SteamID('76561198077897490'), (err, user) => { // . . . }); That said, if all you're doing with node-steamcommunity is retrieving users' profile details, you're far better off using the WebAPI for that.
  8. Sorry, I misled you. You need to pass a request instance with the proxy set on it to SteamCommunity, like so: const Request = require('request'); const SteamCommunity = require('steamcommunity'); let community = new SteamCommunity({ request: Request.defaults({proxy: 'http://1.2.3.4'}) });
  9. If you pass a SteamCommunity instance to TradeOfferManager, then it inherits it.
  10. The fromitemid asset id should disappear, and the amount of the toitemid should increment by however much the amount of the fromitemid was.
  11. I've never used it myself. I'm sure you can figure it out. I'm going to assume that you pass the asset ID of the stack you want to put onto another one as fromitemid, the asset ID of the stack you want to put items onto as toassetid, and the amount of items you want to move as quantity.
  12. You need to set httpProxy on the SteamCommunity instance too.
  13. There's no bug here. State 9 is CreatedNeedsConfirmation. A received offer won't go into state 9, and receivedOfferChanged only gets emitted when an offer changes state.
  14. You would call it whenever you want to combine some item stacks in your inventory. When you want to do it is up to you. That method doesn't belong in steam-tradeoffer-manager since it has nothing to do with trade offers.
  15. https://steamapi.xpaw.me/#IInventoryService/CombineItemStacks
  16. SteamDB is pretty much scraping a bunch of different stuff to get status information. It used to be possible to get the number of people connected to Steam using GetNumberOfCurrentPlayers with appid 0, but that appears not to work anymore so they're likely scraping it from the stats page. For the Steam Store/Community/WebAPI statuses, they're probably just requesting the homepage every so often and checking if it returns a successful response. CS:GO has an API endpoint you can use to get server status. For GC status, they just have bots that connect to GCs and report when they get disconnected.
  17. Use getConfirmations to get your account's pending confirmations, and either use respondToConfirmation or call respond on the confirmation object itself.
  18. What kind of string do you want? It's a binary value.
  19. You can't retrieve multiple users' inventories at once, if that's what you're asking.
  20. Yes, once you're logged on you can check the publicIP property of the SteamUser object.
  21. Your proxy refused your connection.
  22. Rust uses Steam Inventory Service. It's possible that you might be able to use the SplitItemStack API method. I've never tried using it.
×
×
  • Create New...