jbl
Member-
Posts
2 -
Joined
-
Last visited
jbl's Achievements
-
Dr. McKay reacted to a post in a topic: Failing to get node-globaloffensive to omit event: "connectedToGC"
-
Failing to get node-globaloffensive to omit event: "connectedToGC"
jbl replied to jbl's topic in node-steam-user
You were right! No it works. Thank you so much! -
jbl started following Failing to get node-globaloffensive to omit event: "connectedToGC"
-
Hi, First of all thanks for creating node-globaloffensive! I've been trying to get connected, but I'm currently failing. I have the following setup code. const SteamUser = require('steam-user'); const SteamTotp = require('steam-totp'); const GlobalOffensive = require('globaloffensive'); const steamCredentials = { accountName: "omitted", password: "omitted", twoFactorCode: SteamTotp.generateAuthCode("omitted"), }; const steamUser = new SteamUser(); const csgo = new GlobalOffensive(steamUser); steamUser.logOn(steamCredentials); steamUser.on("loggedOn", () => { console.log("Logged into Steam as", steamUser.steamID.getSteam3RenderedID()); steamUser.setPersona(SteamUser.EPersonaState.Online); steamUser.gamesPlayed([730]); // Start CSGO }); steamUser.on("error", console.error); csgo.on("debug", console.log); csgo.on("connectedToGC", () => { console.log("Connected to GC"); }); The issue is that "connectedToGC" is never fired. The output I get when running the above code is. It's stuck in the sendHello function https://github.com/DoctorMcKay/node-globaloffensive/blob/master/index.js#L108-L124... Logged into Steam as [U:1:OMITTED] Sending GC message ClientHello Sending hello, setting timer for next attempt to 2000 ms Sending GC message ClientHello Sending hello, setting timer for next attempt to 4000 ms Sending GC message ClientHello Sending hello, setting timer for next attempt to 8000 ms Sending GC message ClientHello Sending hello, setting timer for next attempt to 16000 ms Sending GC message ClientHello Sending hello, setting timer for next attempt to 32000 ms ... I've read through this thread 👇 and tried to use the code linked in that thread that is claimed to fire "connectedToGC" https://gist.github.com/henrykvdb/401a6c3f543afdd89c4886ca9ead0d47 Must be something that I'm missing 🤔 Thank you in advance.