TGB - How to store scores into a data file.
by Peterjohn Griffiths · in Technical Issues · 05/23/2011 (3:05 pm) · 6 replies
I have been looking around the forums for the best way to store data into files like scores etc.
XML is one options but easy to amend.
Does anything already exist to encrypt data into saved files. Read/Write to and from the file?.
XML is one options but easy to amend.
Does anything already exist to encrypt data into saved files. Read/Write to and from the file?.
#2
I did skim that document, but it doesn't encrypt.
It needs to be encrypted to stop people using Notepad to amend their score.
I don't mind creating something myself, but couldn't see the point if its already been done.
Thanks again.
05/24/2011 (5:58 am)
Thanks B.Spencer.I did skim that document, but it doesn't encrypt.
It needs to be encrypted to stop people using Notepad to amend their score.
I don't mind creating something myself, but couldn't see the point if its already been done.
Thanks again.
#3
05/25/2011 (12:09 pm)
This is just a thought but you could set up something to make it difficult for someone to change the score if you write a bunch of random numbers into the file and place the individual numbers of the score in specific locations in this block of numbers. Then simply read in those specific locations to get the score. As long as they couldn't figure out the locations you're getting these numbers from, they wouldn't know how to change it. Throw them off by calling the file something completely unrelated to scores or saving. I guess they could just type in a bunch of 9's if they wanted to but you could do a check for implausible scores in your game to counter this. Eh, it's kind of ghetto but it's probably easier.
#4
Been thinking about different encryption ideas and methods that will totaly hide whats going on.
I will post a resource or something so others don't have to do it themselves. :D
Would be good to have some standard way of hiding/encrypting data like scores. I hate it when someone publishes, just change the score in the file etc.
05/26/2011 (10:12 am)
If i'm going down the route of doing it myself, overkill will be the result. :DBeen thinking about different encryption ideas and methods that will totaly hide whats going on.
I will post a resource or something so others don't have to do it themselves. :D
Would be good to have some standard way of hiding/encrypting data like scores. I hate it when someone publishes, just change the score in the file etc.
#5
05/26/2011 (10:33 am)
Finally waiting for your resource!!
#6
Torque 2D/Asset Encryption
05/27/2011 (1:08 pm)
Looks like most the hard work as been done in this.Torque 2D/Asset Encryption
Torque Owner B. Spencer
Just to give you tip, you want to store your score into a global variable.
For Example:
$Score = 500;
This can be called up anywhere in script, and also be incorporated into the File IO system.