Jump to content
McKay Development

samki

Member
  • Posts

    7
  • Joined

  • Last visited

Posts posted by samki

  1.  

    I think you wrong this : 

    if (this._client.steamID !== null) { ...}
    

    i'm not sure but i think you can try with 

    this._community.on("sessionExpired", function(err) { 
      this._client.webLogOn();
    }

    That's what I'm doing in refreshLogin()...

     

    I check if steamUser is still connected and calling webLogOn.. I just don't get a Session after that...

        if (this._client.steamID !== null) {
          console.log('STEAMBOT calling webLogOn - ' + this._steamid + ' - ' + this._user + ' isLoggedIn=' + this._isLoggedIn);
          this._client.webLogOn();
        }
    
  2. I have a problem restoring cookies after a Bot looses its webSession.

    I call SteamUser.webLogOn but don't get an webSession callback at all.
    Currently I have 3 Bots running parallel on the same host. After about 1-2 days (sometimes even 7 days!) one of the three won't get a webSession ever again. The other 2 still run great and webSession fires normally for them.
    I setup a cronJob which refreshes the Login and calls webLogOn every hour and I also call it on sessionExpired.

    I logged the client error output but it won't throw any error.

     

    Code: https://pastebin.com/jYaDE45x

     

    Log

    26-07-2017 21:23:05: STEAMBOT Steam session expired: xx - Error: Not Logged In
    26-07-2017 21:23:05: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 1385.8219997882843s ago
    26-07-2017 21:23:05: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false
    27-07-2017 00:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 9414.178000211716s ago
    27-07-2017 00:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false
    27-07-2017 03:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 10799.992999792099s ago
    27-07-2017 03:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false
    27-07-2017 06:00:00: STEAMBOT Refreshing Bot Login - xxxx - xx last try: 10800.00100016594s ago
    27-07-2017 06:00:00: STEAMBOT calling webLogOn - xxxx - xx isLoggedIn=false
    
  3. Hello,

    I tryed to get the globaloffensive GameCoordinator working for the whole day but it just does not work...

     

    My implementation:

    this._client			= new SteamUser();
    this._community		= new SteamCommunity();
    this._manager			= new TradeOfferManager({
                        "steam": self._client,
                        "community": self._community,
                        "language": "en",
                        "pollInterval": 15000,
                        "cancelTime": 650000
    });
    this._csgo        = new GlobalOffensive(self._client);
    
      self._client.logOn({
      "accountName": self._user,
      "password": self._pw,
      "twoFactorCode": totpCode,
      "rememberPassword": true
    });
    
      self._client.on('loggedOn', function(details) {
      console.log("STEAMBOT Logged into Steam as " + self._client.steamID.getSteam3RenderedID());
      self._client.setPersona(SteamUser.Steam.EPersonaState.Online);
      console.log("STEAMBOT set status to online " + self._client.steamID.getSteam3RenderedID());
      self._client.gamesPlayed([730]);
      console.log("STEAMBOT set games played to 730 (csgo) " + self._client.steamID.getSteam3RenderedID());
    });
    
    self._csgo.on('connectedToGC', function() {
      console.log('STEAMBOT connectedToGC - '+ self._steamid + ' - ' + self._user);
    });
    
    self._csgo.on('disconnectedFromGC', function(reason) {
      console.log('STEAMBOT disconnectedFromGC - '+ self._steamid + ' - ' + self._user + 'reason: ' + reason);
    });
    
    self._csgo.on('debug', (msg) => {
      console.log('CSGO_DEBUG ' + msg);
    });
    

    Console output:

    STEAMBOT Logged into Steam as [U:1:xxxxxxxx]
    STEAMBOT set status to online [U:1:xxxxxxxx]
    CSGO_DEBUG Connecting because we're playing CS:GO
    STEAMBOT set games played to 730 (csgo) [U:1:xxxxxxxx]
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 2000 ms
    STEAMBOT Got web session id: xxxxxxxxxxxx steamID: xxxxxxxxxxxx
    STEAMBOT Got API key (xxxxxxxxxxxx): xxxxxxxxxxxx
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 4000 ms
    STEAMBOT Got web session id: xxxxxxxxxxxx steamID: xxxxxxxxxxxx
    STEAMBOT Got API key (xxxxxxxxxxxx): xxxxxxxxxxxx
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 8000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 16000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 32000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    CSGO_DEBUG Sending GC message ClientHello
    CSGO_DEBUG Sending hello, setting timer for next attempt to 60000 ms
    

    Already disabled the Firewall on my VPS (RamNode) but that did not help.

    All my trade related node-steam and node-steam-tradeoffer-manager stuff works flawlessly on that server.

    What could be the issue?

     

×
×
  • Create New...