Navigation

Console
Generate Code: All packets
Packets

Sizes & Types


ItemMax. Length (bytes)Additional Notes
Username15Appended 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 received 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 name15
Channel names31Any channel name who's length exceeds this value is truncated.
CD key owner15 Any key owner who's length exceeds this value is truncated.
Statstring128
Chat text224This is the maximum for game clients. Chat clients can receive 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
  • QWORD - 64 bit (8 byte) unsigned integer
  • DWORD - 32 bit (4 byte) unsigned integer
  • WORD - 16 bit (2 byte) unsigned integer
  • BYTE - 8 bit (1 byte) unsigned integer
  • BOOL - A byte that equals 1 or 0. Can also be a DWORD, depending on the packet.
  • FILETIME - A Windows struct, can be read as a QWORD or two DWORDs
Some data which may at first appear to be strings are in fact DWORDs; game & platform codes, for example.

User Comments


For detailed questions and discussion, visit the Battle.net Research Forum

No comments were made. Be the first to contribute!

BNLS Server Status
vps.clan-warp.net:
phix.no-ip.org:
bnls.mattkv.net:
knight.mattkv.net:
bnls.anubisdev.net:
pyro.no-ip.biz:
bnls.net:
jbls.clanbnu.net:

= Online       = Offline

Battle.net Server Status
uswest.battle.net:
useast.battle.net:
asia.battle.net:
europe.battle.net:

= Online       = Offline

Advertisements
Sponsor Us; Advertise here!



Copyrights

Site scripts and design copyrights reserved to Don Cullen.
Contents copyrighted to Blizzard and their parent corporation, Vivendi.
Main credits for contents goes to Arta. View the rest of credits.
Demented Minds copyrights reserved to Don Cullen 2003-present.
Copyright infringements will be prosecuted to the fullest extent allowable by law.
Please view our legal disclaimer and terms of service.