This topic is READ ONLY
wqin (2) [Avatar] Offline
#1
I tried adding a item to the list in the virtual pet program,lines 51 through 56,but it gave me the following error:

Traceback (most recent call last):
File "Csmilieython25libsite-packageswx-2.8-msw-unicodewx\_core.py", line 14099, in <lambda>
lambda event: event.callable(*event.args, **event.kw) )
File "C:UsersqinzdDesktopWQin_PythonVirtualPetVirtualPet.py", line 59, in on_initialize
self.time_cycle = save_list[5]
IndexError: list index out of range

I figured out there was a problem in savedata_vp.pkl,but I don't know where.
does anyone know where the problem is?
carter.sande (32) [Avatar] Offline
#2
Re: virtual pet problem
Try deleting your savedata_vp.pkl. VirtualPet will generate a new save file, and we can see if the problem persists.

Also, we've moved our forum to http://helloworldbookblog.com/forum
You can do things like post code there, and there are several members there that can help you out.

Carter