collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: !help sometimes causes logoff message  (Read 2093 times)

0 Members and 1 Guest are viewing this topic.

Offline Poonjab

  • BeBot User
  • **
  • Posts: 59
  • Karma: +0/-0
!help sometimes causes logoff message
« 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.

Offline Sudoka

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: !help sometimes causes logoff message
« Reply #1 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.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: !help sometimes causes logoff message
« Reply #2 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.
BeBot Founder and Fixer Kingpin

Offline Poonjab

  • BeBot User
  • **
  • Posts: 59
  • Karma: +0/-0
Re: !help sometimes causes logoff message
« Reply #3 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.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: !help sometimes causes logoff message
« Reply #4 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?
BeBot Founder and Fixer Kingpin

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 142
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal