MKWii Network Protocol/Server/

From Custom Mario Kart
< MKWii Network Protocol‎ | Server(Redirected from RACE)
Jump to: navigation, search

RACE is one of Nintendo's unique servers just for one game (Mario Kart Wii) - its used in place of GAMESTATS, the typical NWFC leaderboards server, to both manage scores for tracks as well as competitions.

Just like SAKE, this server uses SOAP, an XML based messaging protocol, to communicate with the server.

(NOTE: All server/client communication is shown as pretty-printed XML for readability - if you create your own service make sure you **do not** pretty print, and just return raw XML)


Competitions (also known as Tournaments) are sent via RACE - it handles both the WC24 Mail and actual competition file downloads (via WC24 DL Tasks), as well as submitting times.

RKC Download

Mail Download

Time Submission

Top 10 Download

RACE handles the leaderboards in Mario Kart Channel (both in-game and the standalone app).


The client will send the following request to the server:

<?xml version="1.0" encoding="UTF-8"?>

Here, 'ns1:gameid' refers to the GameSpy ID for the game - Mario Kart Wii uses 1687. regionId refers to the region it wants results from; 0 is for all results (aka worldwide), with a different integer for each region of the game. courseId refers to the MKW course (this ID can also be re-used for competitions it seems? check this) - here, the records for Daisy Circuit are requested.


The response here is intentionally not all top 10 times - the client can handle 1-10 (It should be able to handle 0 with no data element, as leaderboards could be empty).

<?xml version="1.0" encoding="utf-8"?>

ownerid is the user's NWFC Profile ID; here, random ones are used, but these should be the user's actual PID if known, as Mario Kart Wii will recognise a player's friends.

rank can be 1-10, and will denote their order on the list.

time is the record time in minutes, then seconds, then miliseconds - for example, 115573 would be the time 1:55.573

userdata is the user's Mii, plus 6 bytes; this data is also present in an RKG - without these, the Wii will throw error 10318.

The six bytes are: 0x02 CRC16-CCITT of Mii, 0x01 Controller ID, an unknown byte (set to NULL), 0x01 State Code, 0x01 Country Code.