|
|
Size of various Battle.net entities:
Item |
Max. Length (bytes) |
Additional Notes |
Username |
15 |
Appended characters to enforce unique usernames (ie, #2) can increase the length of a username by 3 characters.
In addition, Diablo II can have very long usernames, due to characters names/realms. The format is: "Character@Realm*Username@Realm"
The lengths for these are: [15]@[6]*[18]@[6]. This results in a maximum possible username length, as recieved from Battle.net, of 48 characters.
Official Blizzard clients assign a 64-character variable for usernames, so the use of a variable of at least that length is advisable for future
compatibility. When creating an account, any username longer than 15 characters is truncated.
|
Character name |
15 |
|
Channel names |
31 |
Any channel name who's length exceeds this value is truncated. |
CD key owner |
15 |
Any key owner who's length exceeds this value is truncated. |
Statstring |
128 |
|
Chat text |
224 |
This is the maximum for game clients. Chat clients can recieve up to 255 bytes of chat text. This includes the null terminator. Longer text is truncated. |
Data types:
All numeric Battle.net types are little-endian. Battle.net uses the following types:
- String - Null terminated character array
- DWORD - 32 bit unsigned integer
- Word - 16 bit unsigned integer
- Byte - 8 bit unsigned integer
- FILETIME - A Windows struct
Some data which may at first appear to be strings are in fact DWORDS - game & platform codes, for example. #4 User Comments:
Posted by Tech-InsaneJoey on 16/01/05 07:44 |
Sending a CrLf (Ascii Character 13) in a chat message will get you disconnected.
|
#255 |
Posted by Vague on 16/11/03 10:07 |
Ah..yes..I am Fleet-, turtle discovered that from me, and of course saying he discovered it..as usual.
|
#135 |
Posted by Turtle on 07/04/03 07:31 |
(ALT + 0160)
Can only input 196 of these characters. Anymore will cause bnet to kick me for flooding.
|
#44 |
|
|
|
|
|
Battle.Net©® 1996 - 2002 Blizzard Entertainment. All rights reserved.
Battle.net and Blizzard Entertainment are trademarks or registered trademarks
of Blizzard Entertainment in the U.S. and/or other countries.
Blizzard Entertainment©® is a trademark or registered trademark of
Blizzard Entertainment in the U.S. and/or other countries. All rights reserved.
StarCraft©® 1998 Blizzard Entertainment. All rights reserved. StarCraft
and Blizzard Entertainment are trademarks or registered trademarks of Blizzard
Entertainment in the U.S. and/or other countries.
StarCraft©®: Brood War©® 1998 Blizzard Entertainment.
All rights reserved. StarCraft, Brood War and Blizzard Entertainment are
trademarks or registered trademarks of Blizzard Entertainment in the U.S. and/or
other countries.
The following applies to material & trademarks not owned by Blizzard Entertainment:
All material on this website is protected by copyright, and may not be reproduced without
the explicit permission of the copyright owner. The copyright owner reserves all rights
with respect to the acts protected by copyright. Any dispute pertaining to copyright shall
be resolved according to the laws of the United Kingdom. For more information,
contact the copyright owner.
|