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,268
Reaction score
1,423
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
31,370
Reaction score
7,678
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,125
Reaction score
10,639
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 should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,881
Messages
1,017,227
Members
137,607
Latest member
Maddo
Top