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

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

Author Topic: [BUDDY-ADD -1]  (Read 5031 times)

0 Members and 1 Guest are viewing this topic.

Offline Runemy

  • BeBot Apprentice
  • ***
  • Posts: 97
  • Karma: +0/-0
    • Exalted [Age of Conan guild - Aquilonia EU]
[BUDDY-ADD -1]
« on: September 20, 2010, 01:56:07 pm »
I've had this one for ages and it's been a constant annoying thing. This as almost daily current online guildies are being treated as the "-1" and they can't use the bot. I have started off with a fresh database a few months ago, which made the problem go away for the time being, but now it's getting more and more frequent again. Upon a startup or rosterupdate I reccon I have approximately 30-40 -1 buddy-adds now and I can't for the love of Crom figure out why these things occur.

So, am I the only one struggling with this issue, in that case I'll just have to live with it, but if not and there are many with the same issue, can we try to find a fix? :)

Wood of Exalted
Age of Conan
Aquilonia - EU

Offline Runemy

  • BeBot Apprentice
  • ***
  • Posts: 97
  • Karma: +0/-0
    • Exalted [Age of Conan guild - Aquilonia EU]
Re: [BUDDY-ADD -1]
« Reply #1 on: September 21, 2010, 01:23:01 am »
I'm the only one having these problems?

Bollox! ^^
Wood of Exalted
Age of Conan
Aquilonia - EU

Offline Yite

  • BeBot Apprentice
  • ***
  • Posts: 152
  • Karma: +0/-0
    • Niflheim - Crom
Re: [BUDDY-ADD -1]
« Reply #2 on: September 21, 2010, 09:12:51 am »
I do see the -1's but it isnot affecting any of my bot users.
-Yite [Crom]

Offline PBbot

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #3 on: September 27, 2010, 09:53:17 pm »
I have the same problem. I ussally solve it with restarting the bot after rooster update. It will get back after a while and then Ill have to restart it again.

Offline Miron

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #4 on: September 28, 2010, 06:26:49 pm »
Probably the users that have problem are the users that deleted their char and used the same name again, same name different id. If !deluser <username> and add !member add <username> doesn't solve your problem then shutdown bot, delete the specific records from the db, log in the actualy bot char and make sure that the problematic users are not in friends list. Run bot again and try to register them by typing in guild chat or member add command.

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #5 on: October 08, 2010, 05:29:06 am »
I am testing out a fix for this that deletes all users with the nickname -1 every time a rosterupdate is run.  I will let you know and post the code once I have had it running for a bit.

~Kyr

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #6 on: October 26, 2010, 11:41:53 pm »
Quote from: kyr
I am testing out a fix for this that deletes all users with the nickname -1 every time a rosterupdate is run.  I will let you know and post the code once I have had it running for a bit.

This will replace the existing main/10_Roster.php.

You can see the difference on lines 270-276.

You can force this clean up to happen by running !rosterupdate otherwise it runs every so often on its own.

~Kyr
« Last Edit: October 27, 2010, 02:02:14 am by Kyr »

Offline Runemy

  • BeBot Apprentice
  • ***
  • Posts: 97
  • Karma: +0/-0
    • Exalted [Age of Conan guild - Aquilonia EU]
Re: [BUDDY-ADD -1]
« Reply #7 on: October 27, 2010, 12:17:34 am »
Yay! I really look forward to testing this one!

Thanks for the effort!
Wood of Exalted
Age of Conan
Aquilonia - EU

Offline Runemy

  • BeBot Apprentice
  • ***
  • Posts: 97
  • Karma: +0/-0
    • Exalted [Age of Conan guild - Aquilonia EU]
Re: [BUDDY-ADD -1]
« Reply #8 on: October 27, 2010, 12:26:08 am »
One short thing though, it seems like online also is "infected" with the -1's when it occurs. Will it make any harm if I add

$this -> bot -> db -> query("DELETE FROM #___online where nickname = '-1'");

at line 276? It shouldn't mess up anything, but better safe than sorry and all..
Wood of Exalted
Age of Conan
Aquilonia - EU

Offline Kyr

  • BeBot Apprentice
  • ***
  • Posts: 177
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #9 on: October 27, 2010, 02:01:10 am »
Thats a good idea.  I will add to mine also.  Thanks.

updated file in post above.
« Last Edit: October 27, 2010, 02:02:55 am by Kyr »

Offline RaZeR

  • BeBot User
  • **
  • Posts: 28
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #10 on: November 03, 2010, 03:55:47 am »
my bot went crazy when I added this. Everyone was showing up as -1.

Offline Runemy

  • BeBot Apprentice
  • ***
  • Posts: 97
  • Karma: +0/-0
    • Exalted [Age of Conan guild - Aquilonia EU]
Re: [BUDDY-ADD -1]
« Reply #11 on: November 03, 2010, 09:21:04 am »
That's really, really odd. The newly added code just checks if there's characters named -1 in the tables online, users and whois and deletes them if so, shouldn't cause any problems like that really.

It has saved me the work of deleting these users manually, but for some reason it still is a problem now and then. I've got no idea what triggers the bot into doing this, but I've found out that "Total radio silence" (No talk in guild chat or query's to the bot) when doing a restart of the bot helps a lot.
Wood of Exalted
Age of Conan
Aquilonia - EU

Offline GBH

  • BeBot Hero
  • ******
  • Posts: 69
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #12 on: November 03, 2010, 05:40:34 pm »
I posted asking about this problem about 12 months ago. The best reason we could come up with at the time was that it happens when FC's servers don't provide and answer to a bot name lookup. It seems to come in waves on my bot where I'll not get any problems for a few weeks and then I'll get 3 or 4 days of constantly doing manual data base edits.

I too have meant to automate the deleting of -1 but just never got round to it.

Be great to know exactly what was causing this so some error trapping could be built in. It's very annoying when it happens.

G

Offline MysterF

  • BeBot User
  • **
  • Posts: 25
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #13 on: November 04, 2010, 12:55:03 pm »
For me it happened each time one of the guild members deleted  a character and created   a new one using EXACT name.

My guestimate the bot gives and ID to each new added member,  ID that is linked to the  FUNCOM user ID, when  a player deletes a character and  creates a new one   FUNCOM generates a new ID, ID that  now is not linked to the one generated by the BOT, hence the error.

Anywho I suspect something among those lines, I might    be  dead wrong. :)
« Last Edit: November 04, 2010, 12:59:31 pm by MysterF »

Offline GBH

  • BeBot Hero
  • ******
  • Posts: 69
  • Karma: +0/-0
Re: [BUDDY-ADD -1]
« Reply #14 on: November 05, 2010, 12:12:29 pm »
That might cause the error, but it's not the only cause. I've had it on my "main" which has had the same name since pre-release in 2008. It's nothing to do with re-naming (or rather renaming is a red herring which might cause the problem but isn't the only cause)

G

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 775
  • 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