Difference between revisions of "MK8 Network Protocol/USERINFO"

From MK8
Jump to: navigation, search
(Created page with "= MK8 Record "USERINFO" = This record is sent when joining a friend room or connecting to a global race. Every player sends this packet to the new client. <pre> typedef str...")
(No difference)

Revision as of 22:54, 26 December 2014

MK8 Record "USERINFO"

This record is sent when joining a friend room or connecting to a global race. Every player sends this packet to the new client.

typedef struct udp_userinfo_t
{
  /*20*/   u32		unknown_20; 	// unknown
  /*24*/   data[32]	group_id; 	// group-id ("0_12345678_1")
  /*44*/   data[32]	mii_name; 	// mii name
  /*64*/   u32		mii_name_l; 	// little endian, length of mii name
  /*6c*/   u32		sequence_id; 	// upcounting number, maybe sequence id?
  /*70*/   data[16]	checksum;	// some kind of checksum? md5?
}
__attribute__ ((packed)) udp_user_t;

The group-id consists of three parts - the first part is always 0, the second part is the actual group-id, the third part is the number of players at the sender's console (1 or 2).