Jump to content
McKay Development

Dontcareaboutname

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by Dontcareaboutname

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

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

×
×
  • Create New...