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

Discussion in 'JS Plugins In Development' started by ZephyrAM, Oct 8, 2018.

  1. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    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: Jun 3, 2019
    #1
    annatar, Yitzi Litt and SoSick. like this.
  2. Yitzi Litt

    Yitzi Litt Made Nepenthe — An RPG that's one giant dad-joke Veteran

    Messages:
    103
    Likes Received:
    29
    Location:
    Planet Earth
    First Language:
    english
    Primarily Uses:
    RMMV
    this sounds amazing (if it works)!
     
    #2
  3. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    First Language:
    English
    Primarily Uses:
    RMMV
    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: Dec 3, 2018
    #3
  4. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    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
     
    #4
    SoSick. likes this.
  5. Raggon

    Raggon Villager Member

    Messages:
    14
    Likes Received:
    7
    Location:
    Maiko city
    First Language:
    english
    Primarily Uses:
    RMMV
    cannot read property call of undefined error.... i installed in a new MV and tried to test...
     
    #5
  6. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    First Language:
    English
    Primarily Uses:
    RMMV
    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.
     
    #6
  7. Raggon

    Raggon Villager Member

    Messages:
    14
    Likes Received:
    7
    Location:
    Maiko city
    First Language:
    english
    Primarily Uses:
    RMMV
    [​IMG]

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

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    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
     
    #8
  9. Raggon

    Raggon Villager Member

    Messages:
    14
    Likes Received:
    7
    Location:
    Maiko city
    First Language:
    english
    Primarily Uses:
    RMMV
    nice thanks for fix! so far so good. gonna test on mobile see if it still works :aswt:
     
    #9
  10. pasunna

    pasunna Veteran Veteran

    Messages:
    117
    Likes Received:
    17
    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
     
    #10
  11. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    First Language:
    English
    Primarily Uses:
    RMMV
    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: May 27, 2019
    #11
    pasunna likes this.
  12. Drunken Paladin

    Drunken Paladin Veteran Veteran

    Messages:
    80
    Likes Received:
    55
    First Language:
    English
    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.
     
    #12
  13. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    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: May 27, 2019
    #13
    Drunken Paladin likes this.
  14. Drunken Paladin

    Drunken Paladin Veteran Veteran

    Messages:
    80
    Likes Received:
    55
    First Language:
    English
    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).
     
    #14
  15. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    First Language:
    English
    Primarily Uses:
    RMMV
    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: May 31, 2019
    #15
  16. Drunken Paladin

    Drunken Paladin Veteran Veteran

    Messages:
    80
    Likes Received:
    55
    First Language:
    English
    It might actually be that simple. Otherwise, you're stuck with an "autosaved" popup during your game's intro cutscene.
     
    #16
  17. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    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: Jun 1, 2019
    #17
  18. Drunken Paladin

    Drunken Paladin Veteran Veteran

    Messages:
    80
    Likes Received:
    55
    First Language:
    English
    Somewhat bafflingly, I've also just discovered that this plugin totally disables Yanfly's Message Core functionality. :(
     
    #18
  19. ZephyrAM

    ZephyrAM Veteran Veteran

    Messages:
    74
    Likes Received:
    74
    Location:
    Seattle, WA
    First Language:
    English
    Primarily Uses:
    RMMV
    ... 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: Jun 2, 2019
    #19
  20. Drunken Paladin

    Drunken Paladin Veteran Veteran

    Messages:
    80
    Likes Received:
    55
    First Language:
    English
    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.
     
    #20

Share This Page