Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Bug Report
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-19-2010, 04:15 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Default player.communityname value

When new accounts are made, their communityname variable equals to ""/NULL/0 (etc.) which breaks quite a lot of scripts. Example accounts: Graal750231, Graal750233

My request is that all accounts have their player.account as player.communityname UNTIL they chose a community name of their own. This would stop it from showing as ""

Pre-Graal###### accounts (such as xXziroXx) have their player.account match player.communityname, so that's no a problem.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #2  
Old 02-19-2010, 06:31 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Indeed, but until then...

Workaround:

PHP Code:
function getName(obj) {
  return (
obj.communityname obj.communityname obj.account);

__________________
Quote:
Reply With Quote
  #3  
Old 02-19-2010, 11:53 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Agreed, I think it's supposed to be like that anyhow. I tend to use this in player classes:

PHP Code:
public function niceName() {
  return ((
this.communityname == null || this.communityname == "guest") ? this.account this.communityname);

__________________
Reply With Quote
  #4  
Old 02-20-2010, 12:46 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
The idea is that community name is actually suppose to be treated as a semi-permanent nickname. In order, it'd be account (permanent), community name (semi-permanent), nickname (mutable).

So, in my opinion (just thinking about this right now really), things should behave something like this:
  • All data should be stored by account name, because you have the guarantee that it will never change.
  • Important references to the player should be by community name (or the hybrids introduced in the last two posts), because you have the guarantee that it is unique at that specific point in time. e.g., "xyz said: whatever", or "xyz joined the CTF game".
  • Any colloquial references to the player can be by nickname. e.g., "Congrats Big Fat Joe you just earned 30g for smashing the pumpkin head!"


Overall, community name was a bit stupid and probably should have not been introduced.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.