Network Protocol/Server

From Custom Mario Kart
Jump to navigation Jump to search

Details about the communication with the N-servers:

List of Records
Name Record ID Length n-server Description
LOGIN > \lc\ 170 242 Login at N-servers (while connecting to WFC). N-server returns sessionID, userID and profileID. userID is the Friend code w/o the checksum.
O_LIST > \otherslist\ 111 + friendlist 241 Sending current friend list to N-servers
RACESTATUS > localip0 ? 242 Status packet, send each minute during connection to WFC and during online races. Contains information about number of players, own IPs and own Ports
> FRIEND \bm\100\ 39 + status 242 N-Server returns information about friends. One to ten friends per packet. Is also sent if friend comes online and contains his IP and (later) his Port.
ADDBUDDY > \addbuddy\ x * 65 242 ?
? > \ka\ 11 242 Status packet send each 2 minutes
? > mariokartwii 159 247 Unknown Record containing PID (profile id) and a few keywords.
? < \bm\1\ ? 242 Friend-Record with crypted message.
STATUS > \status\ ? 242 ?