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

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

Author Topic: Buddy Queue on Startup  (Read 5972 times)

0 Members and 2 Guests are viewing this topic.

Offline SudL

  • BeBot Rookie
  • *
  • Posts: 4
  • Karma: +0/-0
Re: Buddy Queue on Startup
« Reply #15 on: January 10, 2011, 11:37:01 pm »
test this:

"!buddylist clear"

wait 5 minutes than:

"!rosterupdate"

should be help.....

Offline GBH

  • BeBot Hero
  • ******
  • Posts: 69
  • Karma: +0/-0
Re: Buddy Queue on Startup
« Reply #16 on: January 12, 2011, 10:02:40 am »
"[BUDDY QUEUE]   [BUDDY-ADD]     -1"

This was first thing this morning.

It made absolutely no difference at all :)

G

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Buddy Queue on Startup
« Reply #17 on: January 13, 2011, 03:33:26 am »
The dumb/obvious question would be:
Do you have any entries in you bot's _users table with nickname '-1'?

With that out of the way...
Which version are you running?

My guess is that this problem is tied to the workaround in AOChat.php
Line 388-402 (approx).
Code: [Select]
case AOCP_CLIENT_LOOKUP :
list($id, $name) = $packet->args;
$id   = "" . $id;
$name = ucfirst(strtolower($name));

// *** FIXME ***
// This is an ugly workaround for now to deal with overflowing 32bit int in Age of Conan
if ($id == 4294967295)
{
$id = -1;
}

$this->id[$id]   = $name;
$this->id[$name] = $id;
break;
So.. the bot fails to find a valid id for a character and the workaround gives the character an id of -1.
So next time the bot looks for a character name, it returns id -1 and tries to add that during the rosterupdate.

But i'm kinda dumbfounded about that workaround actually.. why doesn't it modify the packet value as well, because 4294967295 will be passed back to the the function requesting the packet.

I modified my AOChat.php line 1205 (approx) to:
Code: [Select]
if($uid == -1 || $uid == 0 || $uid == 4294967295)Without the above modification, I got a lot of these lines:
Code: [Select]
[BUDDY] [BUDDY-ADD]     Received add request for (4294967295) This user is likely in the userlist and might need to be manually removed if this error persists.

Offline GBH

  • BeBot Hero
  • ******
  • Posts: 69
  • Karma: +0/-0
Re: Buddy Queue on Startup
« Reply #18 on: January 29, 2011, 08:04:10 pm »
The dumb/obvious question would be:
Do you have any entries in you bot's _users table with nickname '-1'?

With that out of the way...
Which version are you running?

My guess is that this problem is tied to the workaround in AOChat.php
Line 388-402 (approx).
Code: [Select]
case AOCP_CLIENT_LOOKUP :
list($id, $name) = $packet->args;
$id   = "" . $id;
$name = ucfirst(strtolower($name));

// *** FIXME ***
// This is an ugly workaround for now to deal with overflowing 32bit int in Age of Conan
if ($id == 4294967295)
{
$id = -1;
}

$this->id[$id]   = $name;
$this->id[$name] = $id;
break;
So.. the bot fails to find a valid id for a character and the workaround gives the character an id of -1.
So next time the bot looks for a character name, it returns id -1 and tries to add that during the rosterupdate.

But i'm kinda dumbfounded about that workaround actually.. why doesn't it modify the packet value as well, because 4294967295 will be passed back to the the function requesting the packet.

I modified my AOChat.php line 1205 (approx) to:
Code: [Select]
if($uid == -1 || $uid == 0 || $uid == 4294967295)Without the above modification, I got a lot of these lines:
Code: [Select]
[BUDDY] [BUDDY-ADD]     Received add request for (4294967295) This user is likely in the userlist and might need to be manually removed if this error persists.

I get random "-1"'s in the user, whois and online tables and I manually remove them using a database editor. The whois is the one that gets the -1 most often. I think it then propagates to the other tables.

It's 0.6.7 but has happened all the way back to 0.6.4 I think. Quite a while anyway. I don't think it's particularly relevant but I can happily update if theres a chance it will sort the problem.

Cheers for looking at it.

G

Offline Kentarii

  • BeBot Apprentice
  • ***
  • Posts: 153
  • Karma: +0/-0
    • AoC>TV
Re: Buddy Queue on Startup
« Reply #19 on: January 30, 2011, 12:46:15 am »
Just posted my UserAdmin module, perhaps it will help you clean up your bot's member base.
http://bebot.link/aoc-0-6-x-customunofficial-modules/useradmin-module-for-bebot/

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 228
  • 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