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,044
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
515
Reaction score
496
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,044
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
515
Reaction score
496
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

Voice.gif
The Voice... They usually show up to talk to you about leaving your mark on the world, which is one of the major themes of my game... How will you be remembered by society.
The only time my brother shows me any kind of support is by liking or LOL my Facebook Comments.
I finally finished the Coliseum for my game. Love how it looks. Credits for the assets goes to Kokoro Reflections, @Starbird_Resources, and @megumi014.
Colossuem.png
Mimics! Mimics everywhere!

Forum statistics

Threads
124,512
Messages
1,164,164
Members
163,348
Latest member
bongdaso
Top