Difference between revisions of "Network Protocol/Server"

From Custom Mario Kart
Jump to navigation Jump to search
m
Line 53: Line 53:
 
| Sent each 4 minutes. ?
 
| Sent each 4 minutes. ?
 
|}
 
|}
 +
 +
This protocol is also used by the other Wii games and DS/DSi Games, only the gamename in some records changes.

Revision as of 15:37, 20 December 2013

Details about the communication with the N-servers:

List of Records
Name Record ID Length n-server Description
ERROR < \error\ ? ? Error record sent if there was any error.
CONNECT > 0x0900 18 248 Requesting a login challenge (while connecting to WFC).
> LOGIN_CHALLENGE \lc\1\ 38 242 N-server answers with challenge.
LOGIN > \login\ 365 242 Wii solves the challenge and logs in at the WFC.
> LOGGED_IN \lc\2\ ? 242 Server accepted solved Challenge and returns Sessionkey and User-IDs.
LOGOUT > \logout\ 32 242 Logout from WFC.
OTHERSLIST \otherslist\ ? 241 Sending current friend list to N-servers and receiving an list with nicknames.
> PROFILEID \pi\ 229 242 Sent by Nintendo if this is the first time connecting to WFC. Returns PID, UID and an signature.
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 ?
> ? \lt\ 35 242 Sent each 4 minutes. ?

This protocol is also used by the other Wii games and DS/DSi Games, only the gamename in some records changes.