Open udisun opened 2 years ago
For anybody coming here I've solved the issue by logging out of the game first and after a short timeout logging back in:
client.on('loggedOn', () => {
util.log(prefix + "Logged into Steam");
// We have to log out in order to get new data from tf2
util.log(prefix + "Logging out of games")
client.gamesPlayed([])
setTimeout(() => {
util.log(prefix + "Logging into games")
client.gamesPlayed([440, 730])
}, 10000);
});
Is this happening when you restart your bot? If you don't wait long enough or properly shut down the game then the GC can seemingly never realize you disconnected at all, so you won't get all the messages that you're supposed to get when you reconnect.
not getting events
accountLoaded
andbackpackLoaded
to emit. after several restarts it works once and then stops working again.node: v12.13.0 tf2: v3.0.2
My bot has both tf2 and csgo connecting to GC , they connect successfully but seems to stop at the
UpdateItemSchema
event.here is the code that I use to connect and subscribe to messages:
here are the messages I get from listening to the
debug
event:not sure how to continue with debugging this