tags:

views:

1674

answers:

10

So the boss just came buy to tell me he's buying a Wii + Wii Fit for the office. At first I'm thinking this is awesome, we're getting a Wii. But, we're a pretty fit group, why do we need the Wii Fit too? Of course, I opened my stupid mouth to ask that very question when I should have been basking in the glory of the moment. sigh...the work never ends...

Apparently the Wii Fit saves some sort of data to an SD card and he wants to know if we can access that data. A quick search yielded nearly nothing, except a note that the data is stored as a text file, but in Japanese. The boss is still out shopping so I can't yet see for myself.

Has anyone tried to get at the Wii Fit data? Any luck?

A: 

a reference for you: http://www.wiili.org/index.php/Mii_Data

Murvinlai
This is only for Mii appearance data and is completely unrelated. Why it has been voted up; I have no idea.
Ben S
A: 

If you think the intent is to find out who's just playing games and not working... then you might either let someone else get the ax, or just tell him it looks like opaque data and it would be really hard.

Then again, maybe your boss is cool?

+4  A: 

Here's what's known about Wii save-files. This may be more difficult than you think. Everything the Wii does is usually encrypted using that specific console's private key.

A lot of reverse-engineering is in your future if you intend to get this working. Please share any discoveries you have.

Ben S
sounds like maybe someone did it already...http://wiibrew.org/wiki/Segher%27s_Wii.git
dotjoe
The unpacking of the binaries yes, as for how the Wii Fit save data is actually saved. What stats are associated to which Miis, who did what when, and all of that jazz remains a public mystery.
Ben S
I'm hoping once I get an unpacked file I'll find some way to decode the Wii Fit data. Maybe I'll get lucky and it'll be a text file :)
Brandon Fosdick
I doubt it. If it is I'd be disappointed. That's the kind of info that should be binary and compressed since the Wii has pretty small internal memory.
Ben S
+1  A: 

Also check out this reference to help unpack and decrypt the game files.

http://wiibrew.org/wiki/Segher%27s_Wii.git

Chris Conway
This looks like it might be what I'm looking for, but I need to figure out how to get the sd-key for decrypting the file. One step down, many to go...
Brandon Fosdick
I managed to find the keys at http://hackmii.com/2008/04/keys-keys-keys/, but now I'm getting and MD5 mismatch error.
Brandon Fosdick
+4  A: 
Alan
A: 

Alan,

Can you give any more details? I used 'wiiparse.pl' from wii brew site to get the 3 data files. However, when I searched for int's in the range 7D 87 to 7D 95 (i.e. should be date/time for when I bought the Wii till now) There were very few entries. So I'm doing something wrong. Any help appreciated.

Seagull.

+1  A: 

Seagul,

The date format used is described here: http://stackoverflow.com/questions/719129/datetime-hex-format

If you convert some of your known dates to the Wii Fit date format you should easily be able to find them in the plaintext files.

./Al

Alan
A: 

Alan,

is it possible to get the source to how you actually extract the data you found in the files? I've spent some time looking at it, but cannot really grasp how to read the data.

Any help would be appreciated.

/Tobias

A: 

I was able to use this info to create a table of where the data is stored in the Wii Fit savegame files.

There is more detail in the following blog post: http://jansenprice.com/blog?id=9-Extracting-Data-from-Wii-Fit-Plus-Savegame-Files

File FitPlus0.dat
-----------------
Byte Offset | Length | Description
-----------------------------------
0x0         | 8      | RPHE0000 (header)
0x8         | 22     | Name of Mii
0x1E        | 1      | Unknown
0x1F        | 1      | Height (in cm)
0x20        | 4      | Date of birth (stored in BCD: e.g. 1980 0228)
0x24        |        | Unknown
0x95        |        | Dates with data (rowlen=10)
0x35CF      |        | Start of some other section (unknown)
0x38A1      |        | Body Test measurement data section (rowlen=21)
  +0        | 4      | Date (in bitfield format)
  +4        | 2      | Weight (in kg * 10)
  +6        | 2      | BMI (* 100)
  +8        | 2      | Balance percent (* 10)
  +10       | 2      | simple value 4 ??
  +12       | 1      | extended 1 ??
  +13       | 1      | extended 2 ??
  +14       | 1      | extended 3 ??
  +15       | 1      | extended 4 ??
  +16       | 2      | extended 5 ??
  +18       | 1      | extended 6 ??
  +19       | 1      | extended 7 ??
0x9288      | 1      | Last byte of profile
Jansen Price
A: 

Building off of Jansen's work, a group of people started a project on Google Code that will parse the file for you.

http://code.google.com/p/wiifit/

It parses not only the body tests, but also the info from the games.