RMMZ Anti-Save swapping (possible anti-save tamper) idea.

thekenbaum

Villager
Member
Joined
Mar 7, 2015
Messages
23
Reaction score
2
First Language
English
Primarily Uses
RMMV
I had an idea for a plugin that would make swapping saves (Or maybe even loading a previous save if you want that for whatever reason) impossible. And all it would require is a plugin that can write the value of a variable to an external file, such as a TXT file or a JSON file (preferably encrypted) and also be able to re-read from said file. For example...
Upon starting a new game, the game would run an auto event that does two things, creates a variable with a random number (let's say a random 6-digit number, 654321) and after creating the random number it calls the plugin to write what that number to an external file. Upon loading the game, another auto event would go off (either set up in each map or in each save point) which would call the plugin to read the variable from the external file and store it into another variable. The auto event would then check to see if the two variables are the same; if so, the game would know the save file is legit and would continue as normal; if not, well, you can set up the auto event to basically do anything you want it to do. To make it so it prevents loading previous saves, you can set up auto-events to create new value and call the plugin to write it to the external file (or maybe just make it so the plugin has the option to do this whenever a player saves).
This won't prevent piracy of RPG Maker games at all; and it won't stop save editing unless it was made to essentially backup the whole save file instead of just a single variable. But it would stop %100 saves from being shared, or if you're making a hardcore story-heavy game to not allow players to load a previous save and do something differently. I just think a plugin like this would be interesting and I see the potential for it.
I know this isn't really a request, I just didn't know where else to put this... Albeit I would love to use a plugin like this for my game I'm working on.
 

Aerosys

Veteran
Veteran
Joined
Apr 23, 2019
Messages
379
Reaction score
354
First Language
german
Primarily Uses
RMMZ
So I worked in a security department for 6 months as trainee, so I can give some tips. First, your plugin could just be turned off or manipulated, so any encryption itself is skipped and the Game would follow the default flow to save and load save files.

Let's assume this problem wouldn't exist.

Preventing direct Save File manipulation:
Usually you would use Hash functions with a secret key to save and validate check sums. You would need to have some secret keys here, but how to save a secret key in a Desktop game? As far as I know, impossible :o

Preventing revert decisions:
Nothing stops a player to just copy-paste the whole game including all the stored save games and any checksums, so I don't know a solution here.

Preventing sharing:
Maybe we can consider the Computer's name or something similar into the hash function, but that also won't be a strong encryption.


I'm afraid such a request is not possible.
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
803
Reaction score
350
First Language
English
Primarily Uses
N/A
You can try my permadeath plugin Here.
You might need a little more to make it work like @Aerosys said but it's hopefully a start.

Also note that I made this for mv although it should work on mz ok.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,195
Members
137,773
Latest member
Kirakirna
Top