Jump to content
McKay Development

Recommended Posts

Posted

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?

Posted

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.

Posted

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?

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