Jump to content
McKay Development

node-globaloffensive - haveGCSession

Recommended Posts

Hello, I'm using this library to check player's profiles, but sometimes (after a few hours of constant work) my variable 'haveGCSession' is set to false, and it doesnt want to auto-reconnect, script is running but when I'm trying to call 'requestPlayersProfile' (ofc before if (haveGCSession)) it says I dont have haveGCSession


How can I reconnect to game-coordinator?

sometimes script works good whole week without this error, sometimes I get it after 20 hours of run (randomly)


I tired to use: 'client.gamesPlayed([730]);' but it doesn;'t reconnect GC session

										if (csgo.haveGCSession) {
                                                                                   // MY CODE
                                                                                } else {
											console.log("haveGCSession is set to false");

I had this problem before: https://dev.doctormckay.com/topic/2130-node-globaloffensive-after-v2-disconnect/


should I use client.relog();?

or maybe csgo._connect?

Edited by neverhood
Link to post
Share on other sites
  • 10 months later...

GC sessions are weird and sometimes they go away without wanting to reconnect. That said, some changes have been made somewhat recently, so make sure you're up to date.

If you are, then I suggest detecting when that happens, and using gamesPlayed([]) then waiting a minute or two and launching CS:GO again.

Link to post
Share on other sites

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.

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.

  • Create New...