Dontcareaboutname Posted April 9, 2017 Report Posted April 9, 2017 Hi, I'm usingSteamUser.gamesPlayed({"game_id": 440});but when I try start game on steam client, bot get this error: "Error: LoggedInElsewhere" and crashes.How to make bot doesn't crash, And waited until the account is freed and reconnect after that? Quote
Dr. McKay Posted April 10, 2017 Report Posted April 10, 2017 Handle the error event, reconnect, and then only relaunch after your persona data tells you that you aren't in-game anymore. Quote
Dontcareaboutname Posted April 10, 2017 Author Report Posted April 10, 2017 Handle the error event, reconnect, and then only relaunch after your persona data tells you that you aren't in-game anymore.I try do it so:"client.on('loggedOn', function (details) { console.log('logged');client.setPersona(SteamUser.EPersonaState.Online);client.getPersonas([client.steamID],function () {console.log(arguments);//persona_state: null, gameid: null});});client.on('error', function (err) {console.log(err);client.logOn(getLoginfo());//in console: "Steam app code:"});"Probably I don't understand something, but how make what you said? Quote
Dr. McKay Posted April 10, 2017 Report Posted April 10, 2017 You need to wait some time between setting your persona to online and trying to retrieve persona data. In fact, I believe Steam should send you the persona data automatically through the user event. Quote
Dontcareaboutname Posted April 10, 2017 Author Report Posted April 10, 2017 You need to wait some time between setting your persona to online and trying to retrieve persona data. In fact, I believe Steam should send you the persona data automatically through the user event.Thank you very much, I did it. But is it possible to let the game run without reconnecting the bot? Quote
Dr. McKay Posted April 10, 2017 Report Posted April 10, 2017 I don't know. I haven't looked into this. Quote
Recommended Posts
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.