Packet Commands

From Staredit Network Wiki
Revision as of 23:32, 20 March 2015 by DevliN (Talk | contribs) (1 revision imported: Restoring SC1 backup)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Packet Header

  • unsigned long udptype (0x00)
  • unsigned short checksum
  • unsigned short packet length
  • unsigned short Sent packets to player (seq1)
  • unsigned short Recieved packets from player (seq2)
  • unsigned char Command Class
  • unsigned char Command ID
  • unsigned char Player ID
  • unsigned char Resend
  • ...Command Variables...

Command Class

Connection and Battle.net relations.

  • 0x0F - Unknown
    • unsigned long (00 00 00 00)
    • Sent only once.
  • 0x0E -
  • 0x0C -
  • 0x0B -
  • 0x09 - Unknown
    • 32 bytes
  • 0x08 - Game Information
    • unsigned long (unknown)
    • unsigned long(unknown)
    • unsigned long(unknown)
    • unsigned long(unknown)
    • unsigned long(unknown)
    • string (game name)
  • 0x07 - Player Stats
    • string (user name)
    • string (ASCII stats)
    • string (unknown)
  • 0x06 -
  • 0x05 -
  • 0x04 -
  • 0x03 - Unknown
    • unsigned long (01 00 00 00)
  • 0x02 - Unknown
    • unsigned long (01 00 00 00)
  • 0x01 - Unknown
    • unsigned long (01 00 00 00)
  • 0x00

Command Class 1

Command Class 1 is used for subjects such as in-game chat, and file transfer.

A list of Command Class 1 and 2 commands can be found here. Command Class 1 and 2 commands are not stored in the Command ID portion of the packet, but rather the data. The Command ID for these classes is unused.

Command Class 2

Command Class 2 is used for all game-related commands, such as Selecting a Unit, or Pausing the Game.

A list of Command Class 1 and 2 commands can be found here. Command Class 1 and 2 commands are not stored in the Command ID portion of the packet, but rather the data. The Command ID for these classes is unused.