Jump to content
McKay Development
neverhood

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");
											client.gamesPlayed([730]);
										}

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

Share this post


Link to post
Share on other sites

hello, can you take a look into it, because I'm still facing this issue sometimes, how can I force reconnect to GC when haveGCsession is set to false, but GC works fine after I restart script (issue not related to GC servers)

Share this post


Link to post
Share on other sites

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.

Share this post


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.

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