Re: Help with saving and restoring program state

2005-01-25 Thread M.E.Farmer
Jacob H wrote: > Hello list... > > I'm developing an adventure game in Python (which of course is lots of > fun). I am glad you are having fun , after all life is so short, isn't that what it is all about ;) > One of the features is the ability to save games and restore the > saves later. I'm usi

Re: Help with saving and restoring program state

2005-01-25 Thread Kent Johnson
Jacob H wrote: Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle module to implement this. Capturing current program state and neatly replacing it later is pro

Re: Help with saving and restoring program state

2005-01-24 Thread Terry Reedy
"Jacob H" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm developing an adventure game in Python Since you are not the first, have you looked at what others have done to save/restore? The Pygame site has code you can look at for adventure (I believe) and other game types (I

Re: Help with saving and restoring program state

2005-01-24 Thread Larry Bates
Take a look at Zope. The ZODB is a highly optimized object database that handles the pickling, loading, saving, etc. of Python objects for restoring program state. A ZODB beginner's tutorial is available here: http://www.h7.dion.ne.jp/~harm/ZODB-Tutorial.py Other info at: http://zope.org/Members/

Help with saving and restoring program state

2005-01-24 Thread Jacob H
Hello list... I'm developing an adventure game in Python (which of course is lots of fun). One of the features is the ability to save games and restore the saves later. I'm using the pickle module to implement this. Capturing current program state and neatly replacing it later is proving to be tri