RMMV I need a plugin that can implement quick save on android phone

siuleeboss

Veteran
Veteran
Joined
Apr 29, 2019
Messages
58
Reaction score
14
First Language
Chinese
Primarily Uses
RMMV
My game needs to be saved in real time on an android phone, but the existing auto-save plug-ins cannot really save quickly, and there will be a freeze when saving.
Can anyone help?
 

JohnDoeNews

Steam mod (MV/MZ)
Veteran
Joined
Apr 25, 2017
Messages
1,038
Reaction score
823
First Language
Dutch
Primarily Uses
RMMV
Hmmm... What kind of plugins are you already using? If you have a way to quickly trigger a common event, (like click image or something or custom menu) then you can use this script call in that common event:

$gameSystem.onBeforeSave();
DataManager.saveGame(X);


Replace X with the ID of the slot you want to quick-save in.

You can also use the value of a variable as slot ID:

$gameSystem.onBeforeSave();
DataManager.saveGame($gameVariables.value(Y));


Replace Y with the ID of the variable that contains the slot ID
 
Last edited:

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
509
Reaction score
485
First Language
English
Primarily Uses
RMMZ
Hmmm... What kind of plugins are you already using? If you have a way to quickly trigger a common event, (like click image or something or custom menu) then you can use this script call in that common event:

$gameSystem.onBeforeSave();
DataManager.saveGame(X);


Replace X with the ID of the slot you want to quick-save in.

You can also use the value of a variable as slot ID:

$gameSystem.onBeforeSave();
DataManager.saveGame($gameVariables.value(Y));


Replace Y with the ID of the variable that contains the slot ID
I believe that what the OP is saying is that he/she wants an asynchronous save system, like MZ has.

AFAIK, In MV, when the DataManager saves your game, it blocks all other processing while the save is happening. So say that an autosave triggers while your character is in the middle of doing something, there could be a momentary lag, because everything temporarily stops moving while the data is being saved.

If I'm understanding correctly, I believe that the OP wants to avoid that happening.
 

JohnDoeNews

Steam mod (MV/MZ)
Veteran
Joined
Apr 25, 2017
Messages
1,038
Reaction score
823
First Language
Dutch
Primarily Uses
RMMV
Oh... I thought like... Like quick save in Skyrim and Fallout. :p
 

siuleeboss

Veteran
Veteran
Joined
Apr 29, 2019
Messages
58
Reaction score
14
First Language
Chinese
Primarily Uses
RMMV
I believe that what the OP is saying is that he/she wants an asynchronous save system, like MZ has.

AFAIK, In MV, when the DataManager saves your game, it blocks all other processing while the save is happening. So say that an autosave triggers while your character is in the middle of doing something, there could be a momentary lag, because everything temporarily stops moving while the data is being saved.

If I'm understanding correctly, I believe that the OP wants to avoid that happening.
Yes, the saving of the MV itself will be stuck, so what I want is what you said, can you help?
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
509
Reaction score
485
First Language
English
Primarily Uses
RMMZ
Unfortunately, I don't actively use MV, so I've never messed with any autosave plugins, and I don't know whether or any of them do what you're asking.

But what you're asking about is possible. What you would need is a plugin that rewrites the engine's default saving functions into asynchronous functions, so they can execute in the background without blocking the rest of the game loop.

It looks like somebody did already write such a plugin, and posted a thread about it here. I've never tried it, and I'm not sure whether or not it will work with the autosave plugin that you're using, but you can give it a shot and see what happens.
 

Latest Threads

Latest Posts

Latest Profile Posts

The game's opening, now fully polished! :LZScheeze:





Aaand, here's me working on it in today's "Game Making Every Day" video! :LZSooo:

Hello! Can anyone help me? I followed making cooking tutorial for RPG Maker MV. But for some reason buff state that food gives doesn't work in overworld. It disappears. What am I supposed to do?
A shotgun is not a rifle. Huh.
SIGH its so hard to convince my friend that making a game for fun and making one to sell takes different planning. I don't care about weird bothersome ways of doing things in a game made for fun, but when you are planning to market it, there is some stuff that you just have to streamline or cut out.
It might be a little bit boring and tedious, but building that database of armor, items, weapons and skills are super important.

Forum statistics

Threads
124,399
Messages
1,163,344
Members
163,196
Latest member
HorusT
Top