cheslohopr
-
Posts
2 -
Joined
-
Last visited
Posts posted by cheslohopr
-
-
Hey,
I have been trying to fiddle around with the GC for CSGO a bit but noticed that the callback in "sendToGC" never runs. The event works fine but the callback never happens.
const SteamUser = require("steam-user"); const user = new SteamUser(); user.logOn({ accountName: "Account", password: "Password" }); user.on("loggedOn", () => { console.log("Logged in"); user.gamesPlayed(730); }); user.on("appLaunched", (appID) => { setInterval(() => { console.log("Attempting hello for " + appID); user.sendToGC(appID, 4006, {}, Buffer.alloc(0), (appID, msgType, payload) => { console.log("Got " + msgType + " from callback"); }); }, 3000); }); user.on("receivedFromGC", (appID, msgType, payload) => { console.log("Got " + msgType + " from event"); });
Above is example code which I am trying to run, everything I get is "Got 4004 from event" but never from the callback. I noticed that the "++this._currentGCJobID" in "components/gamecoordinator.js" always returns NaN, maybe that helps somehow.
I am unsure but I might also just be doing something wrong.
sendToGC callback never gets called
in node-steam-user
Posted
When I set a breakpoint at line 22 in the "components/gamecoordinator.js" and look at the value of "this._currentGCJobID" I get "undefined" back, if I step one over and check "sourceJobId" I get "NaN". As seen here: https://i.imgur.com/Py5Ccd7.gif