Arty Posted January 14, 2023 Report Posted January 14, 2023 Is there any way to directly request accountData or configure node-globaloffensive so it gets accountData everytime user.gamesPlayed([730]) is executed? Quote
4049_1572836826 Posted January 14, 2023 Report Posted January 14, 2023 steam-user appLaunched event Quote
Arty Posted January 15, 2023 Author Report Posted January 15, 2023 1 hour ago, 4049_1572836826 said: steam-user appLaunched event I hate to ask, but I'm not able to check it out, however what I think is going on is that accountData is only emitted every once in a while to a specific instance (as in steam), which I hope is not the case, is that solution working on every CS:GO startup? (Like even if I were to quit the game and log back in an instant) Quote
4049_1572836826 Posted January 15, 2023 Report Posted January 15, 2023 (edited) sorry, my bad, Quote A big object containing account data and some statistics including players in-game. Undefined until accountData is emitted. csgo.on("accountData", (data) => { console.log(data); console.log("Data", csgo.accountData); }); try: csgo.on("connectedToGC", () => { console.log("Connected to GC"); csgo.requestPlayersProfile(client.steamID); }); csgo.on("playersProfile", (data) => { console.log(data); }); I got on first logon from csgo.on("accountData", data => And second run nothing Edited January 15, 2023 by 4049_1572836826 Quote
4049_1572836826 Posted January 15, 2023 Report Posted January 15, 2023 i got msg 9173 and not found in language.js @Dr. McKay FYP Quote
Arty Posted January 15, 2023 Author Report Posted January 15, 2023 7 hours ago, 4049_1572836826 said: i got msg 9173 and not found in language.js @Dr. McKay FYP I have checked on that message, I don't remember what it was specifically but It's not a necessity Quote
Arty Posted January 16, 2023 Author Report Posted January 16, 2023 (edited) To be honest, it seems weird that GC wouldn't emit the accountData on each launch, it seems more likely that the module ignores it or something.. @Dr. McKay Edited January 16, 2023 by Arty Quote
Dr. McKay Posted January 17, 2023 Report Posted January 17, 2023 This is a known thing and it's on Valve's side, not the module's side. When you kill your Steam session then reconnect quickly after and launch CS:GO, sometimes the CS:GO GC doesn't fully realize that you actually disconnected so it doesn't realize that you reconnected, and it doesn't send you all the at-launch data. The best way I've found to prevent this from happening is to make sure that you gracefully log off of Steam every time your bot shuts down using the logOff() method. Quote
Arty Posted January 17, 2023 Author Report Posted January 17, 2023 8 hours ago, Dr. McKay said: This is a known thing and it's on Valve's side, not the module's side. When you kill your Steam session then reconnect quickly after and launch CS:GO, sometimes the CS:GO GC doesn't fully realize that you actually disconnected so it doesn't realize that you reconnected, and it doesn't send you all the at-launch data. The best way I've found to prevent this from happening is to make sure that you gracefully log off of Steam every time your bot shuts down using the logOff() method. Thanks for the reply. Just in case, I'll ask anyway; isn't there a way to let GC know you closed CS? Eg something like user.gamesPlayed([]) or csgo.close()? Quote
Arty Posted January 17, 2023 Author Report Posted January 17, 2023 Alright, it seems I got it working. user.gamesPlayed( [ ] ); user.logOff( ); While using user.logOff( ) as per @Dr. McKay seemed to work at times, having user.gamesPlayed( [ ] ); & user.logOff( ) seems to work all the time. Quote
4049_1572836826 Posted January 17, 2023 Report Posted January 17, 2023 (edited) client.sendToGC(appId, 4006, {}, Buffer.alloc(0)); // ClientHello client.on("receivedFromGC", (appId, msgType, payload) => { if (msgType === 4004) { // ClientWelcome client.sendToGC(appId, 9109, {}, Buffer.alloc(0)); // MatchmakingClient2GCHello else if (msgType === 9110) { // MatchmakingGC2ClientHello // protoDecode CMsgGCCStrike15_v2_MatchmakingGC2ClientHello // This work correctly } }) Work for me. Edited January 17, 2023 by 4049_1572836826 Quote
Dr. McKay Posted January 18, 2023 Report Posted January 18, 2023 9 hours ago, Arty said: Alright, it seems I got it working. user.gamesPlayed( [ ] ); user.logOff( ); While using user.logOff( ) as per @Dr. McKay seemed to work at times, having user.gamesPlayed( [ ] ); & user.logOff( ) seems to work all the time. Yeah, this is right. gamesPlayed([]) before logOff works best, I'd forgotten about that step. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.