The Daily Click ::. Forums ::. Klik Coding Help ::. Load/Save INIs .. or maybe not?
 

Post Reply  Post Oekaki 
 

Posted By Message

weka



Registered
  28/04/2009
Points
  211
29th April, 2009 at 03:18:00 -

Hi there!

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.

Thanks for looking,
weka

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
29th April, 2009 at 03:28:38 -

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.

EDIT: I'm a self grammar nazi.

Edited by OMC

 

  		
  		

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
29th April, 2009 at 03:46:43 -

The INI++ has built in encryption and compression

 
n/a

JetpackLover



Registered
  01/03/2007
Points
  212
29th April, 2009 at 06:15:07 -

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.

 
http://www.invincibletime.com/

Devlog for HD MMF Game Omulus. Check it out because it's gonna be awesome. http://omulus.tumblr.com/

Follow me on the twitters https://twitter.com/JetpackLover


0ko



Registered
  11/01/2009
Points
  318
29th April, 2009 at 17:14:54 -

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

360 OwnerVIP MemberLOL SignSnow
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.

 
Image
   

Post Reply



 



Advertisement

Worth A Click