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

As shown in the figure, I have successfully logged into the CSGO game, but the value of haveGCSession is false. However, this isn't the case every time - sometimes the value of haveGCSession is true. It's very strange.

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

Edited by jerrey

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...