Jump to content
McKay Development

Recommended Posts

Posted
Quote

Try to initiate GC Session

root\node_modules\globaloffensive\protobufs\generated\gcsdk_gcmessages.js:6740
                        message.location = $root.CMsgClientWelcome.Location.decode(reader, reader.uint32());
                                                                            ^
TypeError: Cannot read properties of undefined (reading 'decode')
    at Function.decode (root\node_modules\globaloffensive\protobufs\generated\gcsdk_gcmessages.js:6740:77)
    at decodeProto (root\node_modules\globaloffensive\handlers.js:365:22)
    at GlobalOffensive.handlers.<computed> (root\node_modules\globaloffensive\handlers.js:24:14)
    at SteamUser.<anonymous> (root\node_modules\globaloffensive\index.js:52:12)
    at SteamUser.emit (node:events:519:28)
    at SteamUser.emit (node:domain:488:12)
    at SteamUser.<anonymous> (root\node_modules\steam-user\components\gamecoordinator.js:84:8)
    at root\node_modules\steam-user\components\classes\HandlerManager.js:35:12
    at Array.forEach (<anonymous>)
    at HandlerManager.emit (root\node_modules\steam-user\components\classes\HandlerManager.js:34:12)
    at SteamUser._handleMessage (root\node_modules\steam-user\components\03-messages.js:643:25)
    at SteamUser._handleNetMessage (root\node_modules\steam-user\components\03-messages.js:563:8)
    at SteamUser._processMulti (root\node_modules\steam-user\components\03-messages.js:695:9)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

 


Code: 
 

 let csgo = new GlobalOffensive(user);
    let thisUser = "";

    if (user.accountInfo) {
      thisUser = user.accountInfo.name;
    }

    user.on("accountInfo", (username) => {
      console.log("Logged into Steam as " + username);
      thisUser = username;
    });

    // short delay for the acount to be logged in before start playing "730"
    await delay(10);

    console.log("Try to initiate GC Session");

    user.gamesPlayed([]);

    await delay(10);
    user.gamesPlayed([730]);

    await delay(10);

    csgo.on("connectedToGC", async () => {
      console.log("Connected to GC!");
    });
    csgo.on("disconnectedFromGC", (reason) => {
      if (reason == GlobalOffensive.GCConnectionStatus.GC_GOING_DOWN) {
        console.log("GC going down");
      } else {
        console.log(reason);
      }
    });


it just happened quite recently, maybe just during the last 48 hours. wonder if it was a problem on my side.

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