generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: What determines what color chat you have in a game?

Previous Thread :: Next Thread 
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 09:56 PM
I know if you're in a Team, it's the TeamColor, but what about when you aren't?

My chat color is always orange (unless in a Team) and always has been, so is it a Property in the Player or something?

I've always wondered this, thanks.
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
05 Feb 2012 09:57 PM
I think it's a number from the characters in your username looked up in a table of colors. Nobody knows, really.
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 09:58 PM
Oh, so it's based on your name?
My friend's name ends in 2865, and my name ends in 11561, and we both have orange chat...
hmm.
Report Abuse
ArceusInator is not online. ArceusInator
Joined: 10 Oct 2009
Total Posts: 30553
05 Feb 2012 10:00 PM
What's your friend's name?
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
05 Feb 2012 10:00 PM
No, a numeric hash of the characters looked up in a table, if you know what I mean. Not name:match("%d+")...
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:01 PM
I sorta think I know what you're saying.

and my friends name is p51mustang2865 if that means anything in regards to chat color.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Feb 2012 10:03 PM
I think it's random.

­<'+1 Post. Ujelly?'>
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:06 PM
Somebody should find out if there's any pattern to it :P
Report Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6906
05 Feb 2012 10:08 PM
@nate

Oh, it's static. It's loaded by Roblox the same every time, even if you're offline, so it isn't random.
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
05 Feb 2012 10:10 PM
It isn't random. It is based on your name. The proof is that, when using RBXPri, if we take the name of a player, the color we get in the chat is the same as the one that person gets. Yet, RBXPri doesn't have access to ROBLOX's website, so the color was necessarily calculated on the name.

Also, the userId doesn't matter, only the name does.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Feb 2012 10:11 PM
I think that as soon as you join a random colour is chosen and the data is saved, so when you join a game it'll be the colour that was saved when you first created your account

­<'+1 Post. Ujelly?'>
Report Abuse
Samacado is not online. Samacado
Joined: 16 Feb 2008
Total Posts: 25119
05 Feb 2012 10:11 PM
someone figured it out at some point.
it's weird and elaborate.
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:11 PM
What does ROBLOX do with your name to get what color you would have?

And what part of a game handles the color of your chat?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Feb 2012 10:12 PM
I've tried to figure it out, no one except for the person who came up with the colour idea knows. (And possibly some other administrators)

­<'+1 Post. Ujelly?'>
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:14 PM
Time to bribe the admins to find it out then :P

I guess you could make a script in your game that records (with data persistance i guess) what the name of a person is, and what their chat color is,
but how would you get the chat color using a script?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Feb 2012 10:15 PM
"someone figured it out at some point."

Fluke, hax, or complete guesses?

­<'+1 Post. Ujelly?'>
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:17 PM
maybe they just looked at a lot of peoples usernames, what their chat color was, and then somehow ascertained the relationship between the two.
Report Abuse
Samacado is not online. Samacado
Joined: 16 Feb 2008
Total Posts: 25119
05 Feb 2012 10:18 PM
deduced it by generating a bunch of hashes as names.
I think it was anaminus, cos' he posted on twitter about it a while back?
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Feb 2012 10:19 PM
Hm, actually, I've changed my name in game using CE awhile ago to test this out, changed it to 'ROBLOX' (Orange if I could remember), so don't know why I'd say it was random.

­<'+1 Post. Ujelly?'>
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:19 PM
he best be telling us those results :o
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
05 Feb 2012 10:21 PM
:D Mine is based off of what I denoted as my favourite colour when I joined :D
I win.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
05 Feb 2012 10:23 PM
":D Mine is based off of what I denoted as my favourite colour when I joined :D "
When I joined on my first account, my name colour was blue (My favourite colour), when my brother joined, his was green (his favourite colour).
hehehe

­<'+1 Post. Ujelly?'>
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
05 Feb 2012 10:24 PM
when i joined my favorite color was orange...


now it's blue, but orange is my 2nd favorite.

lol.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
05 Feb 2012 10:30 PM
It's probably something really simple. Like super simple. :D
Report Abuse
stravant is not online. stravant
Forum Moderator
Joined: 22 Oct 2007
Total Posts: 2893
05 Feb 2012 10:31 PM
It's probably something simple like:

colors[ sum(each_character:byte()) % num_colors ];
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image