Network Protocol/Server/PROFILEID

From Custom Mario Kart
Jump to navigation Jump to search

Overview

This article describes the record type PROFILEID of the Network Protocol Server. After logging in, Nintendo answers with this record if this is the first time connecting to the Nintendo Wi-Fi Connection. It contains the user ID, profile ID, an email adress, and a unique nickname. The <id> is equal to

  • 1 for the LOGIN_CHALLENGE record,
  • 2 for the first PROFILEID record,
  • 3 for the second PROFILEID record,
  • 4 for the third and last PROFILEID record.
\pi\
\profileid\<profile-id>
\nick\<unique-nick>
\userid\<user-id>
\email\<unique-nick>@nds
\sig\<signature>
\uniquenick\<unique-nick>
\pid\11
\lon\0.000000
\lat\0.000000
\loc\
\id\2
\final\

After that, there follows a second PROFILEID record:

\pi\
\profileid\<profile-id>
\nick\<unique-nick>
\userid\<user-id>
\email\<unique-nick>@nds
\sig\<signature>
\uniquenick\<unique-nick>
\pid\11
\firstname\Wii:<Wii-FC>@<ID4_of_game>
\lon\0.000000
\lat\0.000000
\loc\
\id\3
\final\

When the console has sent the OTHERSLIST record, another record follows:

\pi\
\profileid\<profile-id>
\nick\<unique-nick>
\userid\<user-id>
\email\<unique-nick>@nds
\sig\<signature>
\uniquenick\<unique-nick>
\pid\11
\firstname\Wii:<Wii-FC>@<ID4_of_game>
\lastname\<unknown>
\lon\0.000000
\lat\0.000000
\loc\
\id\4
\final\

After all the the necassary information has been received, it logs off by sending a LOGOUT record and reconnects.

This record is also sent when a player has registered a new friend.

\pi\
\profileid\<profile-id>
\nick\<uniquenick>
\userid\<user-id>
\sig\<unknown>
\uniquenick\<uniquenick>
\pid\11
\firstname\Wii:<Wii-FC>@<ID4>
\lastname\<uniquenick> with the first 9 chars replaced with "000000000"
\lon\0.000000
\lat\0.000000
\loc\
\id\3
\final\