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

siuleeboss

Regular
Regular
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

www.johndoenews.nl
Regular
Joined
Apr 25, 2017
Messages
2,050
Reaction score
1,501
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

Regular
Regular
Joined
Jun 25, 2021
Messages
1,087
Reaction score
1,569
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

www.johndoenews.nl
Regular
Joined
Apr 25, 2017
Messages
2,050
Reaction score
1,501
First Language
Dutch
Primarily Uses
RMMV
Oh... I thought like... Like quick save in Skyrim and Fallout. :p
 

siuleeboss

Regular
Regular
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

Regular
Regular
Joined
Jun 25, 2021
Messages
1,087
Reaction score
1,569
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

Obvious One.gif
Meet my new mascot. He's also a mimic! No prizes for guessing this guy's name, though, haha
BANNER2.png
I put out a new pack and I swear, I did not realize how it looks like the ones on the right are scared/nervous of the one on the left until way after o_O I just wanted to showcase some of them randomly xD
Well, if anyone has a funny, simple, easy RM game they want me to playtest/review, I would love it.
Someone close to me straight up told me they didn't think my relationship with my girlfriend would last. No lead up, very bluntly. Like it's obvious or something. Trying not to let it get to my head, but it's hard.
The distraction would be a life saver.
QuestMZPlugin.png

My first foray into a plugin that I plan to release. Working on something for those who want to set up a Dragon Quest style battle HUD with minimal fuss. Includes the ability to round the battleback corners to fit your windowskin and, of course, front-view animations.

QuestMZPLugin_CustomWindow.png
Do you ever wonder where the heck everyone is going at 9:00 at night? Like... guys, go home! Get some sleep! Me? Oh, I'm out to get pizza 'cause I decided supper time was 9:30 tonight.

Forum statistics

Threads
134,756
Messages
1,250,345
Members
177,516
Latest member
uglychristmassweaterbio
Top