How to detect save file modification?

Akuri78

Warper
Member
Joined
Nov 28, 2018
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMMV
I've downloaded this Enigma Virtual Box software, to make all of my game data that I exported from RPG MAKER MV into one giant "game.exe" file.

So now the players can't mess around with the games ressources like the js or json files.

The problem now is, if the user want's to save they're game. I had to create an folder called "save". So now the user can access the RPG MAKER MV save files upload them to an site, decrypt it and change all the value of gold, mana etc. They then download the new edited file and replace it with the old save file. Now they have unlimited gold or mana etc...

How do I solve this problem? Is there any better encryption to save files? Or is there any plugin to save this kinda problem?
 

Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,213
Reaction score
1,266
First Language
English
Primarily Uses
RMXP
Is it truly a problem that needs solving?

That said, create some hash values and store them along the save. Upon read check if the hash values are as expected, otherwise discard the save. Remember to sprinkle the hash values with some salt ^^
 

Akuri78

Warper
Member
Joined
Nov 28, 2018
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMMV
Is it truly a problem that needs solving?

That said, create some hash values and store them along the save. Upon read check if the hash values are as expected, otherwise discard the save. Remember to sprinkle the hash values with some salt ^^
That's a good idea, but how do I access the save file? How do I write into an save file?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,037
Reaction score
7,031
First Language
German
Primarily Uses
RMMV
you need to rewrite the save and load functions inside your game, and that requires programming knowledge.

Basically this is almost never done for a lot of reasons - you basically have to rewrite the save function in a way that stores a checksum of the save with it, and then rewrite the load function so that it loads the checksum in addition to the savedata and compares it.

And the result is that the people who really want to edit savegames still can do that, because there are cheat engines out there that take even such security into account - it just means that the first person to try to edit the savegame needs to invest another hour of work to find the checksum.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,063
Reaction score
10,364
First Language
Czech
Primarily Uses
RMMV
I've downloaded this Enigma Virtual Box software, to make all of my game data that I exported from RPG MAKER MV into one giant "game.exe" file.

So now the players can't mess around with the games ressources like the js or json files.
I would say, challenge accepted, because it took me about 10 seconds to find an enigma virtual box unpacker.

Anyway, if you're worried about the saves, just editing the makeSaveContents will take out most savefile editors on the web. However, I can still mess with the game in the memory, there are countless tutorials on using cheat engine to alter rpg maker games' values for gold etc.
 

Akuri78

Warper
Member
Joined
Nov 28, 2018
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMMV
Yeah you are right guys.. if they wanna change the data, they should do it. Thank you for your help and advices.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I'm back to the bugs.
100 bugs in my coding,
take one down,
fix it up,
132 bugs in my coding.
On the plus side, if all this rioting sparks another Covid outbreak... I will have a whole lot of time to work on my game. Not exactly how I wanted to get that time, but hey I'm a glass is half full... of RM kind of guy. :LZSwink:
A video once in a while won't hurt.
Have a craving for a Nesquik milkshake. No idea why. Haven't had one since I was a kid. lol. I remember them kinda tasting nice, but also leaving a lot of nasty powder at the bottom of the cup.

Forum statistics

Threads
98,071
Messages
949,018
Members
129,342
Latest member
Cylria
Top