Graal Forums  

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

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-16-2008, 03:04 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Community name help

I still get complains from people that on some servers it's displaying account names instead of community names (e.g. for trading systems) although that is not really good and often quite easy to fix. If you know of such things please report them here, so we can help fixing them.
Reply With Quote
  #2  
Old 06-16-2008, 03:17 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
For scripter reference, the following things are available for working with community names:
  • player.communityname - gets the community name of the player
  • findPlayerByCommunityName() - works almost identically findPlayer() except it takes a community name as a parameter instead of account name
For instance, to address a player by their community name, you may use the following:
PHP Code:
function onPlayerTouchsMe()
{
  
this.chat "Hello, " player.communityname;

Notes:
  • Players with original account names have community names set to the same as their account. For instance, account "Skyld" has the community name "Skyld".
  • Guest players (those who have not logged in with an account for the 4-hour trial) have a community name of "guest".
Reply With Quote
  #3  
Old 06-16-2008, 04:07 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
Quote:
Originally Posted by Stefan View Post
I still get complains from people that on some servers it's displaying account names instead of community names (e.g. for trading systems) although that is not really good and often quite easy to fix. If you know of such things please report them here, so we can help fixing them.
The problem with this is simply the nature of changing things; people don't want to have to go back and change what is already working.

What if you have multiple guests on the server, would be my question? findPlayerByCommunityName( "guest" ) wouldn't be very effective ...
__________________
Reply With Quote
  #4  
Old 06-16-2008, 04:13 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Stefan View Post
findplayerbycommunityname() is actually first checking for the account (because that is faster), and then trying to find a player with the community name matching the parameter. So it should work in any case - finds players by account name exactly like findplayer(), but also works if you provide a community name. May be findplayer() could be changed to do that as well, might only need to optimize it a little bit.
Thought this could help aswell
(plus, Stefan, could you make findplayer() work with both? Like, make findplayer() work as findplayerbycommunityname()?)
__________________
Reply With Quote
  #5  
Old 06-16-2008, 04:17 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
Quote:
Originally Posted by Chompy View Post
Thought this could help aswell
(plus, Stefan, could you make findplayer() work with both? Like, make findplayer() work as findplayerbycommunityname()?)
Or even findPlayer2(), findPlayerByCommunityName() is much too long.
__________________
Reply With Quote
  #6  
Old 06-16-2008, 05:02 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Normally the communityname for guests is empty, so do

temp.displayname = (player.communityname!=""? player.communityname : player.account)

although it's recommended to display the nick name instead, and use the account name for identification. Only for stuff that needs strong identification (e.g. trading of items) accept community name (the name displayed on playerlist / in the game) as input, with findplayerbycommunityname(). So most of the time you don't need to a lot of changes, just:

- accept community name as input for stuff like trading: replace findplayer() by findplayerbycommunityname()
- when talking to the player or displaying the player name then use the nickname: player.nick
- for stuff like ladders or rankings eventually display nick name + account: player.nick @ " (" @ (player.communityname!=""? player.communityname : player.account) @ ")"
Reply With Quote
  #7  
Old 06-16-2008, 05:07 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
Quote:
Originally Posted by Stefan View Post
post
Surely you can make it easier to do than this:

"temp.displayName = ( player.communityname != "" ? player.communityname : player.account );"

Perhaps guest community name could equal their account of pcid?
__________________
Reply With Quote
  #8  
Old 06-16-2008, 05:08 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Maybe player.communityName is empty for guests, but findPlayerByCommunityName() still finds somebody when you input "guest". So could you please add something in the next version that prevents exactly that and just returns nil when you do findPlayerByCommunityName("guest")?
Thanks.
__________________
Reply With Quote
  #9  
Old 06-16-2008, 05:47 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
We have updated the gserver and npcserver for hosted and under construction playerworlds, it's now displaying the community name for RC actions (login, logout, changing scripts etc.). Strange that no one ever complained. Still waiting for reports on which server stuff is not working, and what.
Reply With Quote
  #10  
Old 06-16-2008, 05:48 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
Quote:
Originally Posted by Stefan View Post
We have updated the gserver and npcserver for hosted and under construction playerworlds, it's now displaying the community name for RC actions (login, logout, changing scripts etc.)
What about putting players in staff under server options?

Apparently you have to put community name AND account name.

At least, that's what I was told.
__________________
Reply With Quote
  #11  
Old 06-16-2008, 07:20 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You put the community name if someone has one, otherwise the account name. Only for editing the rights you need to use the account name right now, although you can also wait until the staff logins (ip-range will automatically be set on first login).
Reply With Quote
  #12  
Old 06-16-2008, 07:25 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
How about all guests have their PCID as their account name?
Or have like player.pcid or player.ip string for someone's PCID or IP which you can then set temp.displayName?
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #13  
Old 06-16-2008, 07:30 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
How about 'warpto community name' instead of 'warpto account name'

Quote:
Originally Posted by Switch View Post
How about all guests have their PCID as their account name?
Or have like player.pcid or player.ip string for someone's PCID or IP which you can then set temp.displayName?
I'd like player.pcid
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #14  
Old 06-16-2008, 07:53 PM
Door Door is offline
Empress Door the Unhinged
Door's Avatar
Join Date: Dec 2006
Location: Florida
Posts: 849
Door is a splendid one to beholdDoor is a splendid one to beholdDoor is a splendid one to beholdDoor is a splendid one to behold
I think it would be easier if we just forced players to put in their telephone numbers while registering (Cell phones work too), and then have it as player.number. That way we can also call them if they are lonely or we need to make sure it's the right person. And imagine, if we know their birthday too we call all be calling all day long to wish them a happy birthday! This would make it much easier I think and much more personal.

IN FACT I HAVE AN EVEN BETTER IDEA!! Make it so the account names are "Graal5555555555" Where the numbers following are a full telephone number! We can all talk to each other it will be so much fun!!
__________________
Reply With Quote
  #15  
Old 06-16-2008, 10:24 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
Quote:
Originally Posted by Switch View Post
How about all guests have their PCID as their account name?
Or have like player.pcid or player.ip string for someone's PCID or IP which you can then set temp.displayName?
Won't happen, at least the IP. Apparently IPs are private.
Quote:
Originally Posted by Door View Post
I think it would be easier if we just forced players to put in their telephone numbers while registering (Cell phones work too), and then have it as player.number. That way we can also call them if they are lonely or we need to make sure it's the right person. And imagine, if we know their birthday too we call all be calling all day long to wish them a happy birthday! This would make it much easier I think and much more personal.

IN FACT I HAVE AN EVEN BETTER IDEA!! Make it so the account names are "Graal5555555555" Where the numbers following are a full telephone number! We can all talk to each other it will be so much fun!!
That'd be awesome.

Quote:
Hello?

Uhh ... who is this?

THIS IS GRAAL424124 LOL

CALLER ID BLOCKED, FOOL

LOLWAT
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 10:32 PM.


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