Thread: player.attr[]
View Single Post
  #4  
Old 12-01-2009, 01:17 AM
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 DustyPorViva View Post
The problem is, as far as I know, is all attr's need to be sent to all players at all times, clientside and serverside. That's apparently a lot of data.
Well, for players in the same level, yes, but only when they change. It's really not a lot of data; a player enters a level, say they have 30 attributes with "1234567890", which is probably about average length.

That ends up looking like this (pardon the max word length of the forums):

Quote:
12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567890
..which is approximately 300 bytes (0.29296875 kilobytes). Obviously it'd be slightly more, but it's not a whole lot of data at all, especially since it doesn't have to update all the time.
__________________
Reply With Quote