[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Re: Implementing save feature



No, it's not super important. I just don't want to make too darn easy
to cheat. Your way should suffice.

Now what about storing the data in an xml-file. Do you have any
examples of how this is done?

On May 23, 12:04 am, James Paige <B...@xxxxxxxxxxxxxxxxxxx> wrote:
> Well, I assume this is an open source game, so protecting the save state
> from editing is not of highly critical importance, right?
>
> But you do want to inconvenience casual cheaters.
>
> I suggest saving your state to an XML file, and then compressing that
> xml file with python's built-in zip module. Then rename the save zip
> some non .zip filename like .save so that double-clicking on a save file
> won't open it in your unzipping tool.
>
> If you want to try harder to prevent cheating you can run your xml
> through some kind of scrambling, or obfuscation, but personally I don't
> think it is worth the trouble. But it's up to you of course.
>
> ---
> James
>