-
Posts
3641 -
Joined
-
Last visited
Everything posted by Dr. McKay
-
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.
-
Sorry, I don't have time to help with stuff like this.
-
Confusion with the login system and the web sessions
Dr. McKay replied to BolverBlitz's topic in node-steam-user
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. -
https://github.com/DoctorMcKay/node-steam-user/blob/master/components/cdn.js#L268
-
https://github.com/DoctorMcKay/node-globaloffensive/blob/master/index.js#L277-L290 This code will probably work.
-
That code looks like it should work. It's possible that Steam has changed something relating to how avatars are uploaded. I'll look into this when I get a chance, but it probably won't be soon.
-
Defining the belonging of an APIkey to the Steam ID
Dr. McKay replied to tranbom202's topic in General
No, and you really shouldn't be asking users for their account credentials. API keys are credentials. -
No, you can only use a 2FA code once. If you've already used a code, then you'll need to wait for the next code to be generated. You shouldn't be logging into SteamCommunity with an account name and password if you're already using SteamUser. In the webSession event, just call community.setCookies(cookies); That's all you need.
-
Either your secret is wrong, your clock is wrong, or you attempted to reuse a 2FA code.
-
If you get an error event indicating you disconnected due to LoggedInElsewhere, just log back in. It won't cause any problems unless you try to launch a game again before you get a playingState notification indicating that you aren't blocked.
-
You should probably move your gamesPlayed call to the playingState event, and only call it if blocked is false.
-
Not really. Logging into an account tends to invalidate the session cookies of other logins.
-
Cannot add items to an already-sent offer, question
Dr. McKay replied to Duodecim's topic in node-steam-tradeoffer-manager
You need to call manager.createOffer each time to get a fresh offer. -
You can only perform one craft at a time; sending that many craft requests will get dropped. You should call craft(), then wait for the craftingComplete event before you craft again.
-
No, steam-user isn't compatible with Steamworks in any way. You could write an app that logs into Steam and fetches leaderboard data (leaderboards aren't presently available in steam-user though so you'd need to implement that yourself), but you wouldn't be able to reuse any of your existing C# code. Have you tried using steamcmd? I have no idea if it works with Steamworks apps the same way as the proper Steam client.
-
No, you have to do it one-by-one with around a 1-second delay between requests. If you're trying to get data for items in your inventory, there's no need to inspect them as all the data is available in the inventory array.
-
Errror 404 while declining offer.
Dr. McKay replied to De-pres's topic in node-steam-tradeoffer-manager
Update the module to the latest version. -
Dunno, maybe your cookies are wrong.
-
Depends on why you're not connected. If you disconnected because Steam went down or you otherwise lost connection, SteamUser will automatically attempt to reconnect. Unless you messed with the autoRelogin option, the only situation where you'd need to call logOn again is if the error event got emitted.