Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3366
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Dr. McKay got a reaction from k1ne in Can this manager auto accept incoming trades?   
    You could certainly use it to do that, yes.
  2. Like
    Dr. McKay got a reaction from Gues_t in localAddress   
    That's not presently a supported feature, but 1.4.0 was just published which adds the ability for you to pass in a custom https.Agent, which would allow you to bind to a particular local address.
  3. Like
    Dr. McKay got a reaction from luisisito in Logging into an account twice from the same VPS throws eResult error 26 Revoked   
    I've never seen Revoked come through the error event, it should be LogonSessionReplaced for this issue. That said, logonID might not be working for you because it's supposed to be an integer, but Math.random() * 100000000 will instead return a float. You should round it with Math.floor().
  4. Like
    Dr. McKay got a reaction from Patrick in How can I skip the Steam Guard Code: step when logging in using the machineAuthToken.txt file after I have already logged in with an email verification code?   
    https://github.com/DoctorMcKay/node-steam-user#machine-auth-tokens
    steam-user will automatically handle saving and using your machine auth token, but if you're running in an environment where persistent storage isn't possible, you can use the machineAuthToken event to save a token somewhere yourself, and then use it again by passing machineAuthToken to logOn().
  5. Like
    Dr. McKay got a reaction from Hamaad in Error: There was an error sending your trade offer. Please try again later. (26)   
    offer.addTheirItem(loserPlayer?.invertoryItem[0].asset); This looks an awful lot like you're trying to create an offer to move items between two different users, neither of which is your bot. That's not possible.
    If your bot has indeed collected the loserPlayer's item, then this should probably be offer.addMyItem, since it's presently in your bot's inventory.
  6. Like
    Dr. McKay got a reaction from Risse in how I can get the assetid of the skin that was transferred to the account. I only have an ID trade.   
    If you have the 64-bit trade ID, you can use the GetTradeStatus WebAPI method.
  7. Like
    Dr. McKay reacted to DaRK AnGeL in Steamguard 2fa + mobile Steamguard 2fa in one avalible?   
    used https://github.com/DoctorMcKay/node-steamcommunity/blob/master/examples/enable_twofactor.js
  8. Like
    Dr. McKay got a reaction from Akaz in Is bypassconfirmation broken for addPhoneNumber?   
    The docs are actually really terrible on this and don't properly explain what this does. It doesn't bypass the need to confirm adding the phone number.
    When you add a number on the Steam UI, sometimes it throws up a warning message but allows you to proceed. I can't think of a case where this happens off-hand, but you used to be able to use VOIP numbers, though you would be warned that using a VOIP number is less secure than a true cell number, but you could click OK and continue. bypassConfirmation is what controls whether these errors come through to your Node app (false = fail with those errors, true = ignore them).
  9. Like
    Dr. McKay got a reaction from nickmura aka bobby in Using these libraries in server-less environments/functions   
    logOff() is not async, no. But you're calling it before you're actually logged on, because you're calling it synchronously along with logOn().
    A couple reasons why running steam-user serverless is a bad idea:
    You can only log on once every 30 seconds because that's how frequently TOTP codes change Steam will start throttling your logon attempts, even if you don't have any failed logons Your request responses will take quite a long time with all the overhead of logging on each time
  10. Thanks
    Dr. McKay got a reaction from b0lt in CSGO Inspect Item Inconsistent   
    It's definitely possible that Valve has blacklisted your proxy provider's IPs from receiving inspect responses.
  11. Like
    Dr. McKay got a reaction from 3035129850591873351975 in HELP!!! node-steam-user#myfriends   
    Your examples are only sending the invite if someone sends you an invite. That's what the friendRelationship event is for, running code when your friend relationship with someone changes.
  12. Thanks
    Dr. McKay got a reaction from timgfx in Steam rate-limit changes.   
    Not that I've seen.
  13. Like
    Dr. McKay reacted to jbl in Failing to get node-globaloffensive to omit event: "connectedToGC"   
    You were right! No it works. Thank you so much!
  14. Like
    Dr. McKay got a reaction from interbots in CEconItem not the same as EconItem?   
    It's on the wiki. You need to specify a language.
  15. Haha
  16. Haha
    Dr. McKay got a reaction from interbots in newOffer not triggering   
    You need to log in TradeOfferManager using setCookies.
  17. Thanks
    Dr. McKay got a reaction from Caffxine in Login to steam by confirming on the app   
    Yes and yes. Choosing your platform type is done in the LoginSession constructor, which is provided by steam-session.
    Correct. It pretends to be a real Steam client, connects to a CM the same way a Steam client does, and sends and receives the same messages a real Steam client does.
  18. Thanks
    Dr. McKay got a reaction from Caffxine in Login to steam by confirming on the app   
    Only steamLoginSecure. sessionid is merely a CSRF token and can be any value.
    Yes. A valid refresh token can be used to authenticate as long as it hasn't expired. It's worth noting that refresh tokens are specific to the platform for which they were generated; only a token generated for EAuthTokenPlatformType.SteamClient can be used to authenticate as a Steam client, and only a token generated for EAuthTokenPlatformType.MobileApp can be used for mobile-app-only requests, such as enabling or disabling 2FA. At present, refresh tokens for all platform types can be used to get web cookies, even though the Steam client doesn't get cookies the same way as the mobile app and web browsers.
    It makes the same requests that the official Steam client, mobile app, and web apps use to authenticate users. There's a WebAPI interface for this, although it's not really meant for public consumption the way I'm using it. The Steam client makes the same requests, but they go through a CM (connection manager, the same server all other Steam client communication goes through).
    If you're curious, you could hit F12 to open your browser console, switch to the network tab, then sign into steamcommunity.com. You won't see a tremendous amount of useful info though, since the requests are protobuf-encoded.
  19. Thanks
    Dr. McKay got a reaction from Caffxine in Login to steam by confirming on the app   
    It's true that access tokens and refresh tokens are commonly used in OAuth, but this isn't OAuth. It just uses some of the same terminology. And yes, refresh tokens can be used for ~200 days until they expire. Refresh tokens are the tokens used by the Steam client when you select "remember my password", and by the mobile app to keep you logged in. A refresh token also gets set in your browser cookies to renew your web session when necessary.
    There is a mechanism for renewing refresh tokens, which is seemingly used by the Steam client and by the mobile app. I'm working on adding support for refresh token renewal to steam-session.
  20. Confused
    Dr. McKay got a reaction from Caffxine in Login to steam by confirming on the app   
    Yes, you can use steam-session to get a refresh token; it supports using device confirmations to approve a login.
    Your SteamUser client will stay logged on as long as it can stay connected to Steam. If it gets disconnected, it'll use the same refresh token that it used initially to log back in.
  21. Thanks
    Dr. McKay got a reaction from haveaniceday in Get a full skin name from item object   
    I've never bothered trying to fully re-create item descriptions using GC data, mostly since there are so many edge cases that it becomes a massive headache. That said, items_game.txt in the game files contains all the data you need to do it (well, that and the localization files to get human-readable strings out of i18n tokens).
  22. Thanks
    Dr. McKay got a reaction from Caffxine in Steam's Inventory Cache   
    Why is my Steam inventory out-of-date?
     
    Before we delve into Steam's inventory cache, first it helps to know how the economy server works.
     
    When you request a user's Steam inventory, your request goes to the Steam economy server. If the economy server has that inventory in its cache, it returns the cached version. If not, it requests the inventory from the game's item server, caches the result that's returned, and then sends it back to you.
     
    This cache does not automatically expire (in most circumstances). However, there are a few actions that can cause an inventory cache for a particular game to expire:
    Launching the game via Steam Quitting the game via Steam Accepting a trade offer (or having a sent trade offer accepted) which includes items from the game Accepting a real-time trade request, or having a real-time trade request which you sent be accepted* Publishers can do it at their discretion * if a real-time trading session is opened for your account, then all games' inventory caches will be invalidated for your account.
     
    I believe it's also supposed to be possible for Steamworks developers to tell the cache to expire at a certain date and time, but I don't believe it works currently.
     
    The Steam inventory cache is what causes your inventory to not appear up-to-date, especially if you craft/receive a new item while the game is running. The easiest way to invalidate the cache in order to get fresh data is to open a real-time trading session.
  23. Thanks
    Dr. McKay got a reaction from Robert Lutece in SteamUser. Can the client log off himself after a while?   
    From time to time yes, Steam will disconnect you. When the disconnected event is emitted, SteamUser will automatically reconnect and loggedOn will fire again.
  24. Like
    Dr. McKay got a reaction from rikray_ in SteamUser. Can the client log off himself after a while?   
    From time to time yes, Steam will disconnect you. When the disconnected event is emitted, SteamUser will automatically reconnect and loggedOn will fire again.
  25. Thanks
    Dr. McKay got a reaction from ViniciusM in Create exchange between two users   
    Not possible. API keys cannot create, send, accept, or cancel trade offers.
×
×
  • Create New...