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.