BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Poonjab on May 29, 2009, 06:36:29 pm

Title: !help sometimes causes logoff message
Post by: Poonjab on May 29, 2009, 06:36:29 pm
Sometimes (not all the time) when I type !help to get the list of command from the bot I'll get help page 1 of 3, then the bot thinks I disconnected and will announce in guild chat that I logged off, it will miss sending me page 2 of 3, the bot announced I logged back on in guild chat, and will send me page 3 of 3.

This all happens in the span of 2 or 3 seconds, so I'm guessing some kind of overflow situation is happening that causes the bot to think I logged out when it sends me page 2 of 3.  This is Bebot AoC, running the latest version. 0.6.2.3, from just a few days ago.

Any help would be appreciated.
Title: Re: !help sometimes causes logoff message
Post by: Sudoka on May 29, 2009, 07:50:33 pm
I have the same problem. I did a quick-fix by editing the ChatQueue file

main/15_ChatQueue.php
Code: [Select]
144 if ($this -> msgs_left > 1)
145 $this -> msgs_left = 1;

that solved it for me, but the output from the bot gets realy slow if it gets many commands at once.
Title: Re: !help sometimes causes logoff message
Post by: Khalem on May 29, 2009, 09:10:20 pm
It seems Funcom might have changed some of the chatserver limits.

In your bot.conf find
Code: [Select]
  if(is_numeric($dimension))
$max_blobsize = 12000;            // Maximum size of text blobs in byte. For AO
  else
$max_blobsize = 8000;            // Maximum size of text blobs in byte. For AoC

Change 8000 to a lower value like 7900 and keep reducing it by 100 until it stops occuring.

The bot thinks you disconnect because your connection to the chatserver is disconnected due to receiving a too large text blob.

Please let us know what value you end up having to use to make the problem go away and we can adjust it properly for future releases.
I do not recommend messing about with the chat queue as that might have unforeseen consequences.
Title: Re: !help sometimes causes logoff message
Post by: Poonjab on May 29, 2009, 10:23:58 pm
Thanks I'll give that a shot and let you know what I figure out.  Like I said, it doesn't happen all the time, so it's a little strange, but I figured it had something to do with some kind of flood protection.
Title: Re: !help sometimes causes logoff message
Post by: Khalem on May 29, 2009, 11:12:34 pm
From the sound of it and when thinking about it, it might actually sound like they have made the blob size dynamic, or rather, added some sort of max bytes per x seconds protection.

Anyone happen to have contact with any of the devs over in AoC?
SimplePortal 2.3.7 © 2008-2024, SimplePortal