My problem:
I've heard the best way to save and load games is using the INI. But with that in mind, people can just easily edit the INI and such. Is there a way to encrypt it? Or better yet, lock it but still have it writeable. Or, simply, a better way to load and save.
What do I want to accomplish?
In the title screen, a load game bitmap icon would appear. When press it would launch to the frame in which the user last saved during gameplay. Saving (pressing S) during gameplay would activate the load option.
Easiest and yet most hard way is to just label everything randomly. That, however, is not smart from a programming perspective. There are several (or at least there were for TGF) extensions that allow you to encrypt and decrypt files (blowfish, I think was one of them) and you could theoretically decrypt and encrypt files before and after reading them. That's not the best idea either because it's extra disk usage and if the app crashed before it re-encrypted the file, everything would go wonky.
On the other hand, I believe some of the array extensions have built-in encryption options and I've heard they are easier to use. I don't have a hard time believing that because I believe INI's are the scourge of the earth.
Unless it is an online game I don't see the point of worrying about save game editing. If people want to spoil the game for themselves or hell even just see stuff they normally wouldn't I don't see the problem.
arrays can't be edited like text files,and their as easy-if not easier to use.
n/a
Poobical Has some jaffa cakes in his coat pocket 3
Registered 27/11/2008
Points 54
2nd May, 2009 at 15:02:41 -
Originally Posted by DudeHuge Unless it is an online game I don't see the point of worrying about save game editing. If people want to spoil the game for themselves or hell even just see stuff they normally wouldn't I don't see the problem.
^That^
I use INI's in Poob, tis the only way really you can save in TGF. If they want to mess around with it, and make the game function completely and utterly wrong, then they can do that. It's their choice.