Do you know any ways to encrypt save files?
Save file I mean when you have been made save/load system for your game and then when you play the game and save, it creates a save file in the game folder. Is there any software or some tricks in GDevelop that can be done?
Now you can open the save file using notepad, and edit the values as you wish.
Or is the only way to “encrypt” save file, name every values you want to save using some secret language that no one else can understand than you?
Encryption is basically using a language only you understand
//I simply made a function to store numeric data, its something like “5x-10” or so, nobody’s gonna solve that extremely difficult encoding
If the game itself is not encrypted, it shouldn’t be too hard to decrypt.
But why bother as long as other cheating tools. People who don’t bother to cheat won’t edit the file anyway.
I don’t know what do you mean about that. what help is it to decrypt stored data I already should know? I mean when I am making save/load system, I have to make the “secret language” and it might get too confusing.
I’m talking about native game save files.
But yeah, it’s not a big deal if there is no solution about that, just wondering is it possible
In theory you can write a piece of javascript code or c++ code to be used as an event. Call the event to encrypt the save string before save it as a file. You also need to write your own decrypt code to decode the string (should be easy with javascript because yon can just parse the string as json or even javascript code).
I haven’t tried c++ code though, maybe a dev knows better.
But maybe RazorSh4rk was right, if you just want to stop those over curious player, you can just scramble the values.
Yep that what I was thinking it might work using some code. If that is possible devs might add it to the GDevelop automatically “Encrypt the file yes/no?” like a thing.
For native games there is an extension named “AES encryption algorithm” to encript files with a specific password, just encrypt the save file after finish the save process, and decrypt it before reading
Btw, you need two save files and you need to encrypt and decrypt both of them back to back so you don’t have one file that shows everything and one that shows encrypted version
If you could force GD to make the file “User0.sav.tmp” (the decrypted one) exist in the process memory only, so a decrypted file never exists in the user file-system, the process would be perfect