Difference between revisions of "MK8 Network Protocol/USERINFO"

From MK8
Jump to navigation Jump to search
Line 12: Line 12:
 
   /*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_userinfo_t;
 
</pre>
 
</pre>
  
 
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).
 
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).

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_userinfo_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).