Jump to content
McKay Development

After I successfully call the method this.client.gamesPlayed([730]), haveGCSession is false


Recommended Posts

Posted (edited)

image.png.c4f953524165feccac4eef9cd5c300d7.png

I'm running into a weird issue with the GC session in CS:GO. As you can see in the screenshot, I'm logged in, but haveGCSession is showing as false. The strange part is that it doesn't happen every time—sometimes it's true. Any idea what's going on?

async loginGame(appId = 730){
    logger.info('loginGC', this.config.steamId, ';', this.getClientGC().haveGCSession);
    if(!this.getClientGC().haveGCSession){
      this.client.gamesPlayed([appId]);
      await sleep(1000)
    }
    return {
      code:200,
      success: true,
      data: null
    }
  }
  checkStatus(){
    return {
      code:200,
      success: true,
      data: {
        isSteamConnected: !!this.client.steamID?.toString(),
        isGCClientConnected: this.getClientGC().haveGCSession
      }
    }
  }

image.png.b3547678861298d5ff61418ccb77f7ca.png

Quote

steam-user: 5.2.3
globaloffensive: 3.2.0


 

Edited by jerrey
Posted

This is normal if your steam-user client shut down without properly logging off recently. I believe what happens is the GC never receives a notification of the client disconnecting, so it keeps your session active even though you're no longer there. You can typically solve this by calling logOff() if you don't get a session in a reasonable time, then logging on again.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...