• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Resource icon

Resource Auto Multi Save 1.3

Hey! how do i bypass the two questions when quitting the game?

"Are you sure you want to quit the game?"
[Yes] [No]
(The answer should always be the first one)

"Would you like to save the game?"
[Save to File A-H] [Save to another file] [Quit without saving]
(The answer should always be the first one)

Additionally. How can i set auto saves so they always save and overwrite to File A-H instead of Auto X?
 
Some $player variables is been shared between saves.
As I noted unltil now, eggs_hatched an time played are been shared.
And I imagine it shouldn't be like that.
 
Some $player variables is been shared between saves.
As I noted unltil now, eggs_hatched an time played are been shared.
And I imagine it shouldn't be like that.
Hello, thanks for the report.
Did you follow these specific instructions? I would expect this to prevent such issues:
  • For instance, you can change the menu text to "Quit to Title" and change scene = nil to scene = pbCallTitle, and add a SaveData.mark_values_as_unloaded right before that.
If you are calling SaveData.mark_values_as_unloaded and still seeing problems, can you please give more specific details about what exact circumstances cause variables to carry over incorrectly?
 
Hey! how do i bypass the two questions when quitting the game?

"Are you sure you want to quit the game?"
[Yes] [No]
(The answer should always be the first one)

"Would you like to save the game?"
[Save to File A-H] [Save to another file] [Quit without saving]
(The answer should always be the first one)

Additionally. How can i set auto saves so they always save and overwrite to File A-H instead of Auto X?
Hello, sorry for not seeing your post for a while.
I agree that the UI flow for save+quit is one of the weaker parts of the plugin currently and hope to make time to improve it. (Though it's worth noting that a superior version of multi save will be included in base v22 Essentials anyways, so look forward to that.)
The first question is a confirmation prompt located in the script section UI_PauseMenu (It is not part of the plugin). It's at the very end. You can modify it by removing or commenting out the parts marked here with #:

Ruby:
Expand Collapse Copy
MenuHandlers.add(:pause_menu, :quit_game, {
  "name"      => _INTL("Quit Game"),
  "order"     => 90,
  "effect"    => proc { |menu|
    menu.pbHideMenu
#    if pbConfirmMessage(_INTL("Are you sure you want to quit the game?"))
      scene = PokemonSave_Scene.new
      screen = PokemonSaveScreen.new(scene)
      screen.pbSaveScreen
      menu.pbEndScene
      $scene = nil
      next true
#    end
#    menu.pbRefresh
#    menu.pbShowMenu
#    next false
  }
})

By the way, it sounds like you are trying to reduce the ability of the player to save scum and rewind their decisions. Unfortunately, you won't actually be able to prevent that, as they can always go to the save folder and copy/paste the save files themselves.

For your second question, you need to edit the plugin script itself, Auto Multi Save.rb. Find the following around line 378 and delete or comment out the marked lines once again:

Ruby:
Expand Collapse Copy
  # Return true if pause menu should close after this is done (if the game was saved successfully)
  def pbSaveScreen(exiting=false)
    ret = false
    @scene.pbStartScreen
    if !$player.save_slot
      # New Game - must select slot
      ret = slotSelect(exiting)
    else
#      choices = [
#        _INTL("Save to #{$player.save_slot}"),
#        _INTL("Save to another file"),
#        exiting ? _INTL("Quit without saving") : _INTL("Cancel")
#      ]
#      opt = pbMessage(_INTL("Would you like to save the game?"),choices,3)
#      if opt == 0
        pbSEPlay("GUI save choice")
        ret = doSave($player.save_slot)
#      elsif opt == 1
#        pbPlayDecisionSE
#        ret = slotSelect(exiting)
#      else
#        pbPlayCancelSE
#      end
    end
    @scene.pbEndScreen
    return ret
  end

Finally, to save to the main slot instead of the auto save slot, simply change Game.auto_save to Game.save. (The auto_save call for the default 100-step counter should be around line 46 in Auto Multi Save.rb)
 
Hello, thanks for the report.
Did you follow these specific instructions? I would expect this to prevent such issues:
  • For instance, you can change the menu text to "Quit to Title" and change scene = nil to scene = pbCallTitle, and add a SaveData.mark_values_as_unloaded right before that.
If you are calling SaveData.mark_values_as_unloaded and still seeing problems, can you please give more specific details about what exact circumstances cause variables to carry over incorrectly?

Ooh, I've never closed the game by Quit Game option OwO
I just save the game then Alt + F4.
Would be this the problem? I should do these changes on Quit option?
 
Ooh, I've never closed the game by Quit Game option OwO
I just save the game then Alt + F4.
Would be this the problem? I should do these changes on Quit option?
Oh, I see. No, that's not the problem then, there is something else wrong if those variables are swapping between save files even after closing the game. Very strange!
Can you please send me as many details as you can about steps to cause this to happen? It's a little bit hard to guess when trying it myself.
 
Back
Top