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: Changing Char. names  (Read 1680 times)

0 Members and 1 Guest are viewing this topic.

Offline nullerman

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Changing Char. names
« on: February 27, 2008, 01:43:27 am »
aparently a new trend have started within my org, change of charrakter names, now that gives the bot a hard time. and i have been forced to manualy edit in the sql database. can we please get an addition to the bot that enables it to cope with the name changes.

/nuller

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Changing Char. names
« Reply #1 on: February 27, 2008, 08:35:34 am »
This is caused by a design flaw in many many modules.

It is basically caused by the fact that the database tables store character names and not character IDs.

Therefore when a player changes his name the bot doesn't recognize it.

The fix for this is to alter the database scheme for most (all?) modules to store character id instead of storing player names.

However this isn't as straight forward as it might sound as aochat->get_uname() doesn't appear to work very well all the time. That appears to be a limitation caused by FC servers.

An alternative would be to store a charid->name table that would effectively be a aochat->get_uname/id cache. This is fesable but it would still require modifying all the modules.

I'm adding this to taskmanager as something that ought to be fixed in 0.5.x as 0.5 will most likely force a re-write of modules in any case.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Changing Char. names
« Reply #2 on: February 27, 2008, 11:03:31 am »
However this isn't as straight forward as it might sound as aochat->get_uname() doesn't appear to work very well all the time. That appears to be a limitation caused by FC servers.
I think the current AOChat implementation of FC's handling of get_uname() have a serious problem: the bot will only get the pair of user ID and character name once, at the first time its needed. Afterwards it will always use and return this value. I'm not sure if just adding a timeout to the id/name cache in AOChat would solve the problem, or if it is a design flaw in the FC chat protocol.

Anyways, the only really useful longterm identifier for characters is the user ID, as the nickname can change in some cases. For shorttime use it's not that important, here the character name should work ok. I only see a few modules which should use ID as keys instead of name in the released modules: roster table, raid module. Whois cache is debatable.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Changing Char. names
« Reply #3 on: February 27, 2008, 06:18:14 pm »
Storing by character ID isn't always going to work either. If someone deletes their character and then has FunCom restore it, the new character will have a new character ID.

My understanding is that character name change is only available to players under L30, unless a GM decides that someone name is offensive on some level and must be changed...

Basically, there's no 100% guarantee that a character name or character ID won't change. Thankfully it's usually an isolated thing and not really a big deal.

Offline nullerman

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: Changing Char. names
« Reply #4 on: February 28, 2008, 04:33:09 am »
well, the easy solution for me was editing the database manualy, thou for me there is nothing easy about it, and so many places to edit, and since im like a shark out of water when working in the sql server, it is a lengthy process, so i seriusly considered setting up a clean database, when the 2nd member within a month in the org decided that his name was lame, and got that changed.

/nuller

 

* 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: 746
  • 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