Difference between revisions of "MK8 Network Protocol/USERINFO"
Jump to navigation
Jump to 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...") |
|||
Line 1: | Line 1: | ||
= MK8 Record "USERINFO" = | = MK8 Record "USERINFO" = | ||
− | This record is sent when joining a friend room or connecting to a global race. Every player sends this | + | This record is sent when joining a friend room or connecting to a global race. Every player sends this record to the new client. |
<pre> | <pre> | ||
Line 11: | Line 11: | ||
/*64*/ u32 mii_name_l; // little endian, length of mii name | /*64*/ u32 mii_name_l; // little endian, length of mii name | ||
/*6c*/ u32 sequence_id; // upcounting number, maybe sequence id? | /*6c*/ u32 sequence_id; // upcounting number, maybe sequence id? | ||
− | |||
} | } | ||
__attribute__ ((packed)) udp_user_t; | __attribute__ ((packed)) udp_user_t; |
Revision as of 23:25, 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 record 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? } __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).