Scipt Call Latest Save/Recent Save - RMVXA

Hi everyone, i am working on custom title screen and i am figuring out how to call a recent save with a event...
Any ideas? Thanks.
DataManager.load_game_without_rescue(DataManager.latest_savefile_index)
that should load the last saved game.
DataManager.load_game_without_rescue(latest_savefile_index)
that should load the last saved game.
Doesn't work...
1680556767509.png
That's because the parameter given is part of DataManager, not Game_Interpreter.

Ruby:
DataManager.load_game_without_rescue(DataManager.latest_savefile_index)

If that's too long to process where you wanna put it (I guess, inside an event, where the textfield for script-calls is made insanely small), add the following above Main.

Ruby:
#==============================================================================
# ** Easy way to load the SaveFile with latest Date of Change
#==============================================================================

module DataManager
  #--------------------------------------------------------------------------
  # * Load latest SaveFile
  #--------------------------------------------------------------------------
  def self.load_latest_savefile
    load_game_without_rescue(latest_savefile_index)
  end
end

And then you can just call this inside the event:

Ruby:
DataManager.load_latest_savefile

~炬燵あ
That's because the parameter given is part of DataManager, not Game_Interpreter.

Ruby:
DataManager.load_game_without_rescue(DataManager.latest_savefile_index)

If that's too long to process where you wanna put it (I guess, inside an event, where the textfield for script-calls is made insanely small), add the following above Main.

Ruby:
#==============================================================================
# ** Easy way to load the SaveFile with latest Date of Change
#==============================================================================

module DataManager
  #--------------------------------------------------------------------------
  # * Load latest SaveFile
  #--------------------------------------------------------------------------
  def self.load_latest_savefile
    load_game_without_rescue(latest_savefile_index)
  end
end

And then you can just call this inside the event:

Ruby:
DataManager.load_latest_savefile

~炬燵あ
Oh thank you! Works! sadly the Khas lightning effect doesn't like it.... and the game crashes

Original thread: https://forums.rpgmakerweb.com/threads/scipt-call-latest-save-recent-save-rmvxa.156381/