Wii Number: Difference between revisions

From WiiBrew
Jump to navigation Jump to search
Nosh Ware (talk | contribs)
m Added information for Korea and the caps for certain values
Nosh Ware (talk | contribs)
m Added link to the settings.txt file
Line 18: Line 18:
*** Unknown if there are more  
*** Unknown if there are more  
* Area Code:
* Area Code:
* A 3 bit unsigned int, always lower than 4 as there was never more than 4 regions supported:
** A 3 bit unsigned int, always lower than 4 as there was never more than 4 regions supported.
** Japan = 0,{{Ref|https://github.com/GaryOderNichts/vWii-Decaffeinator/blob/master/src/main.h}}
** The values correlate as they do in the [[:/title/00000001/00000002/data/setting.txt#AREA|settings.txt's AREA]] value, with the number begin the same as listed there.  
** USA = 1,{{Ref|https://github.com/GaryOderNichts/vWii-Decaffeinator/blob/master/src/main.h}}
** Europe = 2,{{Ref|https://github.com/GaryOderNichts/vWii-Decaffeinator/blob/master/src/main.h}}
** Korea = 3{{Ref|Guess and check with a friend code decoder and a Korean Wii}}
**
** etc...
* CRC Checksum
* CRC Checksum
** Presumed to be a CRC10 checksum as it is contained within a 10 bit unsigned int{{check}}
** Presumed to be a CRC10 checksum as it is contained within a 10 bit unsigned int{{check}}

Revision as of 21:56, 31 May 2022

The Wii Number is the 16-digit (and 64 bit) friend code of your Wii, which can be registered with other Wiis to exchange mail via WiiConnect24 (and now RiiConnect24).

It's made up of a few variables that identify your Wii:

  • Hollywood ID
    • The unique id of the Hollywood chip in the Wii
    • A 32 bit unsigned int
  • Counter (mod 32)
    • Increments every time you format your Wii, can range from 0-31, and back wraps around to 0 after it surpasses 31
  • Hardware Model
  • A 3 bit unsigned int, however, always lower than 4 as only 3 models where released to begin with
  • Area Code:
    • A 3 bit unsigned int, always lower than 4 as there was never more than 4 regions supported.
    • The values correlate as they do in the settings.txt's AREA value, with the number begin the same as listed there.
  • CRC Checksum
    • Presumed to be a CRC10 checksum as it is contained within a 10 bit unsigned int[check]

These variables are then scrambled using a ton of complicated bitwise operations.

RiiConnect24 has source code to encode and decode a Wii Number. It has been ported to C, Golang, and Python.

Refrences