Line 27:
Line 27:
=== Mii format ===
=== Mii format ===
Strings are apparently stored in Unicode format (UTF-16), big-endian. Each Mii is 0x4a bytes:
Strings are apparently stored in Unicode format (UTF-16), big-endian. Each Mii is 0x4a bytes:
+
+
Data Validation on the Wii:
+
+
Setting invalid facial features, or colors over the limit (with the exception of Favorite color) in any fields appears to invalidate that Mii, and it does not show up when the Wiimote slots are viewed on the Wii (though all other Miis on the Wiimote do show up).
+
+
Weight and height seem to be clamped to 0x7F. Setting these bytes of 0xFF does not result in a super tall or fat Mii, but one exactly the same as if 0x7F were set. When the Mii is edited on the Wii then saved back to the controller, these bytes are back to 0x7F.
Mii data structure (work in progress):
Mii data structure (work in progress):