Save/Load/Defeat - extra features (Auto Save, etc)

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
Updated! 6/2/2019

This expands on the default aspects of saving, loading, and how gameover is handled in game. Specifically, it adds:​
  • Quick save
    • Saves to last used, non-AutoSave slot
    • Auto detects first empty save slot if no manual save exists
    • Optional reserved Quick Save slots
  • Auto save - Plugin command or Auto options on:
    • Scene Change (customizable)
    • Map Transfer
    • Battle End
  • Reserved auto save slot(s)
  • Quick load
    • Loads last used, non-AutoSave slot
  • Continue after gameover
  • Play Common Event on -
    • Save
    • Load
    • Gameover
  • Play Script for above (for writing code chunks)
  • Delete save file
Quick save and Delete are tied to keybinds, Auto Save slot and Gameover Continue can be toggled off, and Common Events assigned in the plugin settings.

Edit:
Realized I didn't list the Quicksave/Delete keybinds anywhere XD
  • Quick save = ` (right beside 1 on the number bar)
  • Quick load = - (top right corner of numpad)
  • Delete = delete
Plugin Placement:
- Compatible with Yanfly Save Core.
- Conflicts not fully tested, thought it's designed to work outside of menu configurations as much as possible.

Requires:
- ZephAM_Core (Also in test. Mainly behind the scenes effects)

Terms of Use:
- Free for use in all commercial and non-commercial projects, so long as credit is given.

ZephAM_SaveLoadDefeat.js
ZephAM_Core.js


Updates: (1.0 Newest)
~ Version 1.0 ~
  • New Parameter: Auto Save Common Event
  • New Parameter: Quick Save Common Event
    • Save Common Event now only applies to when manually saving
    • Split onSave Common Event into three for different save types.
  • New Plugin Command: Enable/Disable Auto Save during play
    • AutoSave off at start. Use plugin command to enable after intro.
  • No longer Auto Saves immediately after loading a save
  • Removed Auto Tint from onSave Common Event
  • Optimized 'Auto Save on map transfer' code
  • Added plugin settings for x/y position of save/load notify window
  • New game save slot selection now accounts for quick slots

~ Version 0.95 ~
  • Added screen text displaying 'Auto/Quick Saved' when occurring
  • Added toggle for 'Auto/Quick Saved' text & window skin
  • Fixed Common Event/Script on Save for Auto and Quick saves
  • Now pushes the player back to the Map scene after manual saving

~ Version 0.9 ~
  • Added reserved Quick Slot toggle
  • Added selectable amount of Quick Slots
  • Added file renaming to web saves
~ Version 0.85 ~
  • Window creation error 'Cannot read property call of undefined' fixed
~ Version 0.8 ~
  • Now compatible with Yanfly Save Core!!
  • Added options to change name of the saved game folder and files
    • Plugin toggle for folder name change
    • Toggle for save file name change
    • Setting to assign name to use
  • Fixed save slot/quick save slot detection when more then 1 auto slot
  • Fixed Auto Save repeating if multiple slots enabled
~ Version 0.7 ~
  • Added settings for automatic Auto Save triggers
    • Scene change, Map transfer, Battle end options
  • Quick Load set to keybind for player use
  • Added multiple Plugin settings
    • Set number of Auto Save slots
    • New Quick Load keybind
    • Set Scene's for Scene Change auto save
  • Renamed Auto Load to Quick Load
  • Fixed BGM not saving/loading right with Quick Save/Load
  • Changed where Map transfer auto save triggers.
 
Last edited:

Yitzi Litt

Made Nepenthe — An RPG that's one giant dad-joke
Veteran
Joined
Jul 31, 2017
Messages
103
Reaction score
29
First Language
english
Primarily Uses
RMMV
this sounds amazing (if it works)!
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
this sounds amazing (if it works)!
Make sure to let me know if it doesn't!

I'm also going to add some ways to make Auto Save automatic for the developer, so you don't need to keep track of putting those in manually. Should just be a few days!

Edit: Done with the above!

~ Zephyr
 
Last edited:

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
New update, now compatible with Yanfly Save Core (as I'm sure this could be an issue for many!)
Other fixes included.

Still need testing with many other plugins to check for conflicts! I'll be looking around for other 'Save Core' style plugins, but let me know of any you might use!

~ Zephyr
 

Raggon

Villager
Member
Joined
Sep 29, 2018
Messages
19
Reaction score
9
First Language
english
Primarily Uses
RMMV
cannot read property call of undefined error.... i installed in a new MV and tried to test...
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
cannot read property call of undefined error.... i installed in a new MV and tried to test...
Could you give me a bit more detail?
If you could copy or screenshot the error from the console log(F8) that would help immensely. Also, if you're using any other plugins, that would be helpful to know as well.

And as a 'just in case' reminder, this plugin does require my Core plugin to work - and Core does need to be above my other plugins in the list.
 

Raggon

Villager
Member
Joined
Sep 29, 2018
Messages
19
Reaction score
9
First Language
english
Primarily Uses
RMMV


thats the error and the plugins i have are all off its just a test new rpg mv project.
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
Alright, found and fixed the issue - something I created while making the plugin compatible with Yanfly's SaveCore. New version is uploaded. Let me know if you run into any more problems!

~ Zephyr
 

Raggon

Villager
Member
Joined
Sep 29, 2018
Messages
19
Reaction score
9
First Language
english
Primarily Uses
RMMV
nice thanks for fix! so far so good. gonna test on mobile see if it still works :aswt:
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
170
Reaction score
27
First Language
thai
Primarily Uses
RMMV
hi
can I request some altinate quick save
to use a certain fixe slot that player can’t use
because the last save for me as a player it’s kind of importan save for decision or any later backward
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
hi
can I request some altinate quick save
to use a certain fixe slot that player can’t use
because the last save for me as a player it’s kind of importan save for decision or any later backward
If I understand right, you want an auto save slot that the player can't save over?

Plugin will already do that. In the plugin settings, under Usage Toggles, make sure the first option 'Reserve Slot for Auto Save' is set to 'true'. That will prevent the player from being able to manually save in those slots - though they can still be deleted. The auto save slots are always the at the top of the saves list.


Edit:
Nevermind - you said Quick Save, not Auto Save XD.
Yes, I'll look into that!


Done! Quick Save slot implemented similar to Auto Save slot.
 
Last edited:

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
83
Reaction score
55
First Language
English
Primarily Uses
Hey Zephyr, thanks for bringing your plugin to my attention. I'd like to use it in place of Yanfly's autosave plugin because it has designated autosave slots, but the only feature it's missing that I'd really like is the little text popup that occurs when it autosaves successfully.

I tried creating a common event, but it didn't seem to trigger on autosaves. Any help there would be appreciated.
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
Working on that right now, since I noticed you mentioned it in your request thread.

I've been working on getting the notification to pop up in plain text, and it does that, but the words tends to blend into a busy background, especially if it happens during the menu. This is without a background - maybe I'll put a toggle in for with/without the window skin.

I'd prefer something better, but haven't yet worked out what that might be.

Although... now that I re-read your last sentence, that's a thought. I'll enable the common event for Auto and Quick saves so you and others can make their own popup, if they wish. And a toggle for the plain text.

Edit:
Alright! Got all of that implemented and up o_O.
Give it all a go and let me know any other problems you run into. I've got a couple other minor enhancements in mind, but nothing drastic. Coming up on version 1.0, initial release ^_^
 
Last edited:

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
83
Reaction score
55
First Language
English
Primarily Uses
Working on that right now, since I noticed you mentioned it in your request thread.

I've been working on getting the notification to pop up in plain text, and it does that, but the words tends to blend into a busy background, especially if it happens during the menu. This is without a background - maybe I'll put a toggle in for with/without the window skin.

I'd prefer something better, but haven't yet worked out what that might be.

Although... now that I re-read your last sentence, that's a thought. I'll enable the common event for Auto and Quick saves so you and others can make their own popup, if they wish. And a toggle for the plain text.

Edit:
Alright! Got all of that implemented and up o_O.
Give it all a go and let me know any other problems you run into. I've got a couple other minor enhancements in mind, but nothing drastic. Coming up on version 1.0, initial release ^_^
Hey again, I've been messing around with this plugin and I like the functionality, but one oddity is that it plays the save common event when I start up a new game. It doesn't play anything when I load a save (which is good, because I don't have a common event set for that).
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
Hey again, I've been messing around with this plugin and I like the functionality, but one oddity is that it plays the save common event when I start up a new game. It doesn't play anything when I load a save (which is good, because I don't have a common event set for that).
Well I'm glad it doesn't play the load one since one isn't set. That'd be weird XD.

But the save common event on new game actually makes sense now that I think of it. If Auto Save is set to save on Map transfer (which I'm guessing it is in yours), then it would perform an Auto Save right when you start a new game, and thus run the Common Event. This is the problem with running the CE with Auto Save when it's triggered rather than activated at set times. I'll definitely have to put a toggle in to enable/disable the CE on AS and QS (two toggles of course). Changed my mind. Ability to set a different CE for AS and QS - or use the same - is better than a toggle.

What would be a good solution for this though for when you do want it active with Auto Save...

I'm not sure if I can restrict Auto Save on Map Transfer down to only when the player actively moves from one map to another, but I'll look into it. Let me know if there's a different method you can think of. Would something as simple as preventing the CE from running on that very first Auto Save work?
 
Last edited:

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
83
Reaction score
55
First Language
English
Primarily Uses
I'm not sure if I can restrict Auto Save on Map Transfer down to only when the player actively moves from one map to another, but I'll look into it. Let me know if there's a different method you can think of. Would something as simple as preventing the CE from running on that very first Auto Save work?
It might actually be that simple. Otherwise, you're stuck with an "autosaved" popup during your game's intro cutscene.
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
I'm considering ways to enable/disable auto save during play. The most straightforward solution is to give the Game Dev control - so you'd turn off AS when starting a cutscene and back on when finished - but I'd prefer another, more automatic option. I'll add a Plugin Command for Dev control regardless I think. It's really the best way if used properly.

Will look into auto methods with more time in a few days.
 
Last edited:

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
83
Reaction score
55
First Language
English
Primarily Uses
Somewhat bafflingly, I've also just discovered that this plugin totally disables Yanfly's Message Core functionality. :(
 

ZephyrAM

Veteran
Veteran
Joined
Oct 6, 2017
Messages
74
Reaction score
74
First Language
English
Primarily Uses
RMMV
Somewhat bafflingly, I've also just discovered that this plugin totally disables Yanfly's Message Core functionality. :(
... That is an interesting conflict. I'll be sure to fix that.

Edit:
I'm not actually running into that problem, so either I fixed it sometime between your version of my plugin and the in progress one, or something else is causing it.
 
Last edited:

Drunken Paladin

Veteran
Veteran
Joined
Jul 20, 2012
Messages
83
Reaction score
55
First Language
English
Primarily Uses
... That is an interesting conflict. I'll be sure to fix that.

Edit:
I'm not actually running into that problem, so either I fixed it sometime between your version of my plugin and the in progress one, or something else is causing it.
I'm using the Message Core to enable word wrap and change the number of lines. When I toggle the autosave plugin on, word wrap becomes disabled and the lines are back to the default 4. I thought maybe the core plugin was a more likely conflict, but that doesn't seem to be the case--only this plugin causes the issue.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I keep seeing the 'file tear' icon when I'm on some post that has images. I'm not sure if it's just me or it's the post, based on the replies I see.
Me: anime is okay. There are a couple good ones and a lot of really bad ones but the good are worth it. Brother: if you bring anime anywhere near me I'll break your nico nico kneecaps
Wasting so much time trying to get a sprite behavior to work. I feel like banging my head against a wall.
Well... it’s been a real pain in the IRS today. :/
My kitty still young (3-4 months), I think I could teach her some funny tricks... like: "Play dead-ly good music for my games"

Forum statistics

Threads
94,274
Messages
919,566
Members
124,000
Latest member
Rinion
Top