mvonweis / wiifit

Automatically exported from code.google.com/p/wiifit
0 stars 0 forks source link

PAL-Savegames do not work #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I use a savegame from the NTSC version, it works quite nicely.. Actually I 
also tried the version from 
http://www.huanix.com/2010/04/03/export-wii-fit-data-to-a-csv-for-import-into-ex
cel-or-database/comment-page-1/#comment-3153

and also extended it a bit to also include the weight in kg (see attachment)

But if I use a savegame from the PAL version (which unfortunatly for me is the 
one I have the biggest dataset in) I get the following error messages:

Traceback (most recent call last):
  File "./wiifitparser_edit.py", line 429, in <module>
    printer.print_player(p)
  File "./wiifitparser_edit.py", line 387, in print_player
    node.appendChild(self.body_tests(player))
  File "./wiifitparser_edit.py", line 283, in body_tests
    bodytests = player.bodytests()
  File "./wiifitparser_edit.py", line 199, in bodytests
    if ord(bodytest[0]) == 0:
IndexError: string index out of range

The error is not caused by any modifications, its consistent in all 3 versions 
that I have.

Original issue reported on code.google.com by kaef...@gmail.com on 16 Feb 2012 at 11:02

Attachments:

GoogleCodeExporter commented 8 years ago
okey, so I added a few print debugging messages to my edited version, and I 
think the problem is not the PAL version, but that my second player hast too 
many bodytests, the error that I postet above happens while processing the 
second player after the counter test_nr hits 1096.

Original comment by kaef...@gmail.com on 16 Feb 2012 at 11:37

Attachments:

GoogleCodeExporter commented 8 years ago
so after adding this -->
if test_nr > 1096:
break
<-- (after the test_nr += 1 statement)

to the player.bodytests while true loop, the script works like a charm. I get 
my xml, and I can see that the last bodytest of this player with more than 1097 
bodytest is from 2011-11-28 and the first one is from 2011-11-29. test_nr 76 is 
from today, and test_nr 77 is from 2009-02-12

So it seems that he starts to overwrite the first tests after reaching a number 
of 1097 bodytests for one player. however, he must have stored the older tests 
somewhere else, since if I open wii fit plus on my wii and view my history, I 
can look at it all the way back till 2008-11-27. However, I just found out it 
shows those days before 2009-02-12 instead of green and red (for gaining lots 
of weight) in a grayish color and seems to have lost the reasons for gaining 
weight.

Original comment by kaef...@gmail.com on 16 Feb 2012 at 12:00

GoogleCodeExporter commented 8 years ago
This issue was fixed in revision 12
see http://code.google.com/p/wiifit/source/detail?r=12

Original comment by kaef...@gmail.com on 22 Jul 2012 at 7:37