Save files saved to local data folders

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,349
Reaction score
4,631
First Language
English
This teeny little plugin is designed to change where save files for a game are stored. This only works when using the PC/Mac deployment and should not affect any other platform.

When using this plugin, save files will be directed to:
  • Windows: %LOCALAPPDATA%\User Data\Default\<game title>
  • OSX: ~/Library/Application Support/User Data/Default/<game title> (making some assumptions here based on the windows location)
Where <game title> is what you titled your game in the database.

Note: This is untested on OSX as I do not own a Mac and don't know anyone else that does either.

This should hopefully help out people that would like to see their game installed to a semi-protected location such as Program Files.

Get it here!

[Edit] Terms! Please use for whatever you like, commercial or free. I would ask that you credit taarna23 or Catball Games (or my name, which is in the plugin, if you reeeeeeally want to).
 
Last edited:

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
664
Reaction score
190
First Language
English
Primarily Uses
RMMV
Thank you so much, I've been looking for a solution like this! I will try to test it on a Mac and report back! :)
 
Last edited by a moderator:

Radis3D

Just a Devilz
Veteran
Joined
Nov 1, 2015
Messages
172
Reaction score
33
First Language
Indonesian
Primarily Uses
RMVXA
Is it work for compiled game (Using enigme virtual box) or just work without compile? 


And how about web browser deployment, is work too? 


Sankyu :)
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
664
Reaction score
190
First Language
English
Primarily Uses
RMMV
Is it work for compiled game (Using enigme virtual box) or just work without compile? 


And how about web browser deployment, is work too? 


Sankyu :)
For a compiled game the game works fine, but, the player cannot save their game. For web browser deployment I haven't tried, I only tried Windows, Mac and Linux. :)
 

JAD94

The lunar knight
Veteran
Joined
Feb 18, 2014
Messages
664
Reaction score
190
First Language
English
Primarily Uses
RMMV
Note: This is untested on OSX as I do not own a Mac and don't know anyone else that does either.
Hey, just confirming that it works perfectly for Mac! ^_^ 


Thank you again!
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,349
Reaction score
4,631
First Language
English
Is it work for compiled game (Using enigme virtual box) or just work without compile? 


And how about web browser deployment, is work too? 


Sankyu :)


Hi! Sorry for the late response. It is not tested with a game compiled in the way you state, but if this is software that you use, I would welcome feedback on whether or not it works. The plugin in no way affects mobile or web deployments, and they will save using the default methods for those deployments.
 

padr81

Guy whose game is taking too long.
Veteran
Joined
Apr 26, 2013
Messages
684
Reaction score
681
First Language
english
Primarily Uses
N/A
I can't get this to work at all. I keep getting the error message "failed to load: js/plugins/mv_plugin_-_savesinlocaldata.js"
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,349
Reaction score
4,631
First Language
English
You must not rename the plugin. It needs to have this filename: SavesInLocalData.js
 

padr81

Guy whose game is taking too long.
Veteran
Joined
Apr 26, 2013
Messages
684
Reaction score
681
First Language
english
Primarily Uses
N/A
You must not rename the plugin. It needs to have this filename: SavesInLocalData.js
Fixed it, it downloads as mvplugins_savesinlocaldata.js or something like that without the wrong name.
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,349
Reaction score
4,631
First Language
English
Fixed it, it downloads as mvplugins_savesinlocaldata.js or something like that without the wrong name.


Quite possibly. I generally don't trust places like pastebin to maintain the correct filename - that's why the name is in the top comments of the file. Anyway, glad you got it fixed.
 

padr81

Guy whose game is taking too long.
Veteran
Joined
Apr 26, 2013
Messages
684
Reaction score
681
First Language
english
Primarily Uses
N/A
Yeah, it works great.  Life saver for those using virtual box for encryption.  thanks for making it.
 

Hrtz

Villager
Member
Joined
Nov 21, 2017
Messages
12
Reaction score
12
First Language
Croatian
Primarily Uses
RMMV
Hi,

It's an old thread but I would like to mention something that could help if someone encounters this small "problem" I've encountered.
First of all – thank you taarna23 for very useful plugin. I too had problem with saves on Mac.

I encountered a small problem when I created a build. Saves was pulled from the same location for each project, including working projects in RPGMMV.
So to avoid this (eventually) I figured out that saves are pulled from your local ... KADOKAWA/RPGMV folder.

You can find this information in package.json file in your game build.

By changing line:

"name": "KADOKAWA/RPGMV",

to (for example):

"name": "MYPROJECTS/GAME1",

saves will be unique for your build.

I hope this will be helpful.
I was new in all this and I spent too much time figuring out what's wrong. :)
 

taarna23

Marshmallow Princess
Global Mod
Joined
Jul 20, 2012
Messages
2,349
Reaction score
4,631
First Language
English
It sounds to me, based on this, that your problem is that when you test play a game, you're seeing other tested game saves? If so, this is expected behaviour. This plugin is meant to be used with deployment, not testing. Do you also see this issue after deploying your project?
 

Hrtz

Villager
Member
Joined
Nov 21, 2017
Messages
12
Reaction score
12
First Language
Croatian
Primarily Uses
RMMV
Yes, by making a build I mean after deployment.
Maybe it's because I use Steam version of RPGMakerMV and it creates package.json after development by taking information from it?

Regarding testing game – it's logical for test saves to be seen since you actually use RPGmaker as installed application.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
38,770
Reaction score
12,204
First Language
English
Primarily Uses
RMMV
You don't have your project in the KADOKAWA/RPGMV folder, do you?
 

Frogboy

I'm not weak to fire
Veteran
Joined
Apr 19, 2016
Messages
1,676
Reaction score
2,120
First Language
English
Primarily Uses
RMMV
Sweet! I was looking for this exact functionality a few weeks ago.
 

Hrtz

Villager
Member
Joined
Nov 21, 2017
Messages
12
Reaction score
12
First Language
Croatian
Primarily Uses
RMMV
You don't have your project in the KADOKAWA/RPGMV folder, do you?
Of course not :)

path "KADOKAWA/RPGMV" refers to path end in %local data% (on Windows).
Those are actually locations where local user data for any installed application are stored.

After deployment we get standalone game which isn't installed and doesn't need to be installed in order to work.
That's cool for Linux or Windows but can create problem with Mac since Mac (in most cases) won't allow applications to write data in locations that are not allowed (like putting saves in Save folder in your game folder after deployment). And that's why this plugin comes very handy, since it writes data in an allowed and logical place.

When you deploy your game RPGMaker makes a shell for each platform (I'm referring to Mac, Win and Linux deployment) and adds your game specific data. So that works ok by default. But it also copies information about where RPGmaker stored data is set for a user that deployed the game.
This could be a problem for example if some user plays two games that are using the plugin, but file package.json wasn't changed manually. It would store data for each game in the same place.

Note that deployed game is never actually installed on your computer! It's a standalone application. So this local user data can't be generated based on install data, which is the case when you install RPGmaker (or any other installed application).


My suggestion for improving RPGmaker would be to add an option while deploying to make an installation deployment file package (like you usually get when you are installing most games). This shouldn't be a problem to make and we all could this way get more "professional" looking product. Also adding option for user to choose where will those data be stored (in local data or game folder) would be nice, but again – would that option be a problem for Mac users? Probably...

To make myself clearer - if you ever tried to make Android build what you need to get is an installation apk game file of your project which user needs to install. That's something that would be useful for other platforms.
 
Last edited:

Hrtz

Villager
Member
Joined
Nov 21, 2017
Messages
12
Reaction score
12
First Language
Croatian
Primarily Uses
RMMV
I had to ask. You'd be surprised how many do :)
I'm sure! :D

It's good to ask – people will see it here and correct the error :)
 

Anuhksunara

Warper
Member
Joined
Oct 16, 2017
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hey so I put the file name like it is supposed to be, and I keep getting an error. Below are screen shots of the load order, file location, and the error. I don't know what I am doing wrong :<

Load order.png Where it is in the file.png The error I get.png

Ok so I figured it out in case anyone else has this issue...when I downloaded the plugin some how it wouldn't work, but if you make it manually with notepad then it works perfectly! And confirmed that it works with making it on windows and deploying it for MAC X
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

buinguyenhoangtho wrote on fizzly's profile.
Hello @fizzly, i would like to use your asset/ resource for my project ( is maybe commercial ). May i have your permission? Thanks you !
Working on breaking the limits of RPGMaker! :cool:
I have 470+ hours on RMMV but have only made a demo game, is this normal? :kaoswt: (I lose motivation a lot plus I use a 32gb laptop, so..)
I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.

Forum statistics

Threads
95,427
Messages
929,082
Members
125,659
Latest member
AphoticAmaranth
Top