-
Posts
3591 -
Joined
-
Last visited
Posts posted by Dr. McKay
-
-
Yes, Node is very different from C#.
-
5 hours ago, Modep said:
hi.
It does not respond when CS2 items are sent in the thread.(in dota2 and tf2 haven't error)
how to fix ?
steamTradeManager.on('sentOfferChanged', async function (offer, oldState) {
console.log('New Trade | ID = ' + offer.id + ' | Status = ' + offer.state);});Enable the useAccessToken option.
-
This was an intentional change by Valve.
-
-
Garbage is only collected periodically. If you want to fetch that much data in Node, you're going to need more than 200 MB of RAM.
-
Not possible without calling additional methods, no.
-
https://github.com/DoctorMcKay/node-steam-user#getownedappsfilter
Don't call getOwnedApps until after the ownershipCached event is emitted. Also, it doesn't take a callback argument.
-
You can't. This is a Node.js module only.
-
Gotcha.
-
-
You're treating the symptom, not the cause. There's no scenario where this.partner should be undefined or otherwise invalid unless you're doing something wrong.
-
-
??
What does this have to do with steam-session?
-
Show how you're creating a trade offer (new TradeOffer(...))
-
If you don't have the user's SteamID at all in any form, no.
-
GetTradeHistory does appear to accept an access token to retrieve all trades.
-
You need to report that you're in CS2 by calling user.gamesPlayed(730), then complete the GC handshaking process before sending any other GC messages. For CS, this is sending ClientHello (4006) with the proper version number and waiting for ClientWelcome (4004) in response.
You can check node-globaloffensive for reference.
-
Contact your proxy provider.
-
Sounds like someone with control of your network is trying to modify traffic.
-
I don't believe you can get non-game badges or your account's creation time via steam-user. You'll need to use the WebAPI.
-
2 hours ago, m.tsa said:
I apologize for my dumb question sir, but I haven't found it anywhere else.
What is the specific error that I should listen for when I need to logOn again?
ATM I'm only using community.on("sessionExpired") to call webLogon to refresh the cookies on community and trade manager, with the client.on("webSession") event btw.https://github.com/DoctorMcKay/node-steam-user?tab=readme-ov-file#error
The 'error' event.
-
-
If you're passing an instance of SteamUser in to the constructor, I recommend you don't poll more frequently than every 30 seconds (30000). And you shouldn't be running full updates more frequently than every 2 minutes (120000).
In other words, the defaults are fine.
-
You can't use OpenID with steam-user.
getOffers don't work for 730appid without access token
in node-steam-tradeoffer-manager
Posted
Either use getExchangeDetails or use your access token to access the WebAPI.