L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 11:17:09 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: Changing Char. names
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Changing Char. names  (Read 231 times)
0 Members and 1 Guest are viewing this topic.
nullerman
Rookie
**
Offline Offline

Posts: 21


Changing Char. names
« on: February 26, 2008, 07:43:27 PM »

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
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: Changing Char. names
« Reply #1 on: February 27, 2008, 02: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.
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Changing Char. names
« Reply #2 on: February 27, 2008, 05:03:31 AM »

Quote from: Blueeagle on February 27, 2008, 02:35:34 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.
Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 414



Re: Changing Char. names
« Reply #3 on: February 27, 2008, 12: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.
Logged
nullerman
Rookie
**
Offline Offline

Posts: 21


Re: Changing Char. names
« Reply #4 on: February 27, 2008, 10:33:09 PM »

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
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: Changing Char. names
« previous next »
 
Jump to:  

Recent
!items database
by Zeephonz
[Today at 08:05:21 PM]

Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11146
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 15
Total: 17
Elesar1
Vain

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.589 seconds with 28 queries. (Pretty URLs adds 0.029s, 4q)
Loading...