JV Master skip title screen, but keeping last save switches and variables

In my game I just decided to change the classic title screen to an evented one, and everything went ok.
To do that though i had to use Jv Master script to skip title screen: https://www.rpgmakercentral.com/topic/271-skip-title-screen/
Don't know if it matters, but I follwed this tutorial which required JV Master's script: https://forums.rpgmakerweb.com/index.php?threads/making-custom-title-screens-with-events.31272/

My only issue is that i want to add some chenges to the title screen depending of the progresses the player has done with the story, and to do that I have to keep LAST save file's switches and variables (JV Master script completely cancel them).

Is it possible to add this change to the script?
Hello again, see if any of these are for you to do this:
Hello again, see if any of these are for you to do this:
Ehm, the first is maybe too complex, and i think it isn't what i need either, I only want to keep s and v of the LAST SAVE file, not all of them. I don't know, perhaps i used it wrong, but i think JM Master script should be edited, becouse it automaticaly cleares the scene deleting all switches and variables, regardless the script i'm using to save them.

edit, i noticed the game by default remembers my last save file data with the classic title screen (i was using another script that changes the title screen bg by variable, which means someway switches and variables are remembered outside the save file itself)
I only need to know how to keep them also with this new script.
I only want to keep s and v of the LAST SAVE file, not all of them.
I had made a script that checked for the newest save file and loaded it.
I just adjusted it to allow skipping the title screen.
Try this
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Auto Save / Load             ║  Version: 1.20     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: Requested by kiriyubel    ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Allows auto saving and auto loading ║    21 Jan 2021     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Requires: nil                                            ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Script provides auto save and auto load features         ║
# ║ Can be used for multiple save slots.                     ║
# ║ Autosave is designed to work for specific maps.          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates:                                                 ║
# ║ 1.00 - 21 Jan 2021 - Initial publish                     ║
# ║ 1.10 - 06 Mar 2021 - Removed 1 slot restriction          ║
# ║ 1.20 - 19 May 2021 - Set Option for skip title screen    ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all RPG Maker uses                              ║
# ╚══════════════════════════════════════════════════════════╝

module R2_AutoSave_AutoLoad
  Switch_Save = 6 # switch to enable auto save
  Use_switch = false # turns switch feature on if true
 
  Save_Maps = []
  # add as many maps as you want to use autosave feature with
  # seperate with a comma. e.g. [2,4,8]
  Save_Slots = 16
  # change the number for how many slot you wish to use.
 
  Auto_load = false
  # if true will load the saved game without going to the title
  Continue_load = false
  # if true this will load the latest saved game when
    # selecting continue
 
  Skip_Title = true
  # used if you want to load a custom title screen
end

module DataManager
  def self.savefile_max
    return R2_AutoSave_AutoLoad::Save_Slots
  end
    def self.setup_load_game
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    end
end

class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  alias r2_autostart_autoload start
  def start
    @saves = []
    @last = 0
    if DataManager.save_file_exists?
      for i in 0..DataManager.savefile_max
        i += 1
        if i > 9
          if !Dir.glob("Save#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        else
          if !Dir.glob("Save0#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        end
      end
      @last = @saves[0]
      @saves.each do |i|
        if DataManager.savefile_time_stamp(i) > DataManager.savefile_time_stamp(@last)
          @last = i
        end
      end
      if R2_AutoSave_AutoLoad::Auto_load
        super
        SceneManager.clear
        fadeout_all
        DataManager.load_game(@last)
                DataManager.setup_load_game if R2_AutoSave_AutoLoad::Skip_Title == true
        SceneManager.goto(Scene_Map)
      else
        if R2_AutoSave_AutoLoad::Skip_Title == true
          SceneManager.clear
          Graphics.freeze
          DataManager.setup_new_game
          $game_map.autoplay
          SceneManager.goto(Scene_Map)
        else
          r2_autostart_autoload
        end
      end
    else
      if R2_AutoSave_AutoLoad::Skip_Title == true
        SceneManager.clear
        Graphics.freeze
        DataManager.setup_new_game
        $game_map.autoplay
        SceneManager.goto(Scene_Map)
      else
        r2_autostart_autoload
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  alias r2_autosave_load_terminate  terminate
  def terminate
    if R2_AutoSave_AutoLoad::Auto_load == true
      if DataManager.save_file_exists?
        super
      else
        if R2_AutoSave_AutoLoad::Skip_Title == true
          SceneManager.snapshot_for_background
          Graphics.fadeout(Graphics.frame_rate)
        else
          r2_autosave_load_terminate
        end
      end
    else
      if R2_AutoSave_AutoLoad::Skip_Title == true
        SceneManager.snapshot_for_background
        Graphics.fadeout(Graphics.frame_rate)
      else
        r2_autosave_load_terminate
      end
    end
  end
  #--------------------------------------------------------------------------
  # * [Continue] Command
  #--------------------------------------------------------------------------
  def command_continue
    if R2_AutoSave_AutoLoad::Continue_load == true
      DataManager.load_game(@last)
      fadeout_all
      RPG::BGM.fade(30)
      $game_map.autoplay
      SceneManager.goto(Scene_Map)
    else
      close_command_window
      SceneManager.call(Scene_Load)
    end
  end
 
end

class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # * Post Processing for Transferring Player
  #--------------------------------------------------------------------------
  alias r2_autosave_post_transfer   post_transfer
  def post_transfer
    r2_autosave_post_transfer
    @saves = []
    @last = 0
    if DataManager.save_file_exists?
      for i in 0..DataManager.savefile_max
        i += 1
        if i > 9
          if !Dir.glob("Save#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        else
          if !Dir.glob("Save0#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        end
      end
      @last = @saves[0]
      @saves.each do |i|
        if DataManager.savefile_time_stamp(i) > DataManager.savefile_time_stamp(@last)
          @last = i
        end
      end
    end
    if R2_AutoSave_AutoLoad::Use_switch == true &&
      $game_switches[R2_AutoSave_AutoLoad::Switch_Save] == true
      if R2_AutoSave_AutoLoad::Save_Maps.include?($game_map.map_id)
        DataManager.save_game(@last)
      end
    elsif R2_AutoSave_AutoLoad::Save_Maps.include?($game_map.map_id) &&
      R2_AutoSave_AutoLoad::Use_switch == false
      DataManager.save_game(@last)
    end
  end
end
I had made a script that checked for the newest save file and loaded it.
I just adjusted it to allow skipping the title screen.
Try this
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Auto Save / Load             ║  Version: 1.20     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function: Requested by kiriyubel    ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Allows auto saving and auto loading ║    21 Jan 2021     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Requires: nil                                            ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Script provides auto save and auto load features         ║
# ║ Can be used for multiple save slots.                     ║
# ║ Autosave is designed to work for specific maps.          ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Updates:                                                 ║
# ║ 1.00 - 21 Jan 2021 - Initial publish                     ║
# ║ 1.10 - 06 Mar 2021 - Removed 1 slot restriction          ║
# ║ 1.20 - 19 May 2021 - Set Option for skip title screen    ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all RPG Maker uses                              ║
# ╚══════════════════════════════════════════════════════════╝

module R2_AutoSave_AutoLoad
  Switch_Save = 6 # switch to enable auto save
  Use_switch = false # turns switch feature on if true

  Save_Maps = []
  # add as many maps as you want to use autosave feature with
  # seperate with a comma. e.g. [2,4,8]
  Save_Slots = 16
  # change the number for how many slot you wish to use.

  Auto_load = false
  # if true will load the saved game without going to the title
  Continue_load = false
  # if true this will load the latest saved game when
    # selecting continue

  Skip_Title = true
  # used if you want to load a custom title screen
end

module DataManager
  def self.savefile_max
    return R2_AutoSave_AutoLoad::Save_Slots
  end
    def self.setup_load_game
    $game_map.setup($data_system.start_map_id)
    $game_player.moveto($data_system.start_x, $data_system.start_y)
    $game_player.refresh
    end
end

class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Start Processing
  #--------------------------------------------------------------------------
  alias r2_autostart_autoload start
  def start
    @saves = []
    @last = 0
    if DataManager.save_file_exists?
      for i in 0..DataManager.savefile_max
        i += 1
        if i > 9
          if !Dir.glob("Save#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        else
          if !Dir.glob("Save0#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        end
      end
      @last = @saves[0]
      @saves.each do |i|
        if DataManager.savefile_time_stamp(i) > DataManager.savefile_time_stamp(@last)
          @last = i
        end
      end
      if R2_AutoSave_AutoLoad::Auto_load
        super
        SceneManager.clear
        fadeout_all
        DataManager.load_game(@last)
                DataManager.setup_load_game if R2_AutoSave_AutoLoad::Skip_Title == true
        SceneManager.goto(Scene_Map)
      else
        if R2_AutoSave_AutoLoad::Skip_Title == true
          SceneManager.clear
          Graphics.freeze
          DataManager.setup_new_game
          $game_map.autoplay
          SceneManager.goto(Scene_Map)
        else
          r2_autostart_autoload
        end
      end
    else
      if R2_AutoSave_AutoLoad::Skip_Title == true
        SceneManager.clear
        Graphics.freeze
        DataManager.setup_new_game
        $game_map.autoplay
        SceneManager.goto(Scene_Map)
      else
        r2_autostart_autoload
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  alias r2_autosave_load_terminate  terminate
  def terminate
    if R2_AutoSave_AutoLoad::Auto_load == true
      if DataManager.save_file_exists?
        super
      else
        if R2_AutoSave_AutoLoad::Skip_Title == true
          SceneManager.snapshot_for_background
          Graphics.fadeout(Graphics.frame_rate)
        else
          r2_autosave_load_terminate
        end
      end
    else
      if R2_AutoSave_AutoLoad::Skip_Title == true
        SceneManager.snapshot_for_background
        Graphics.fadeout(Graphics.frame_rate)
      else
        r2_autosave_load_terminate
      end
    end
  end
  #--------------------------------------------------------------------------
  # * [Continue] Command
  #--------------------------------------------------------------------------
  def command_continue
    if R2_AutoSave_AutoLoad::Continue_load == true
      DataManager.load_game(@last)
      fadeout_all
      RPG::BGM.fade(30)
      $game_map.autoplay
      SceneManager.goto(Scene_Map)
    else
      close_command_window
      SceneManager.call(Scene_Load)
    end
  end

end

class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # * Post Processing for Transferring Player
  #--------------------------------------------------------------------------
  alias r2_autosave_post_transfer   post_transfer
  def post_transfer
    r2_autosave_post_transfer
    @saves = []
    @last = 0
    if DataManager.save_file_exists?
      for i in 0..DataManager.savefile_max
        i += 1
        if i > 9
          if !Dir.glob("Save#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        else
          if !Dir.glob("Save0#{i}.rvdata2").empty?
            i -= 1
            @saves << i
          end
        end
      end
      @last = @saves[0]
      @saves.each do |i|
        if DataManager.savefile_time_stamp(i) > DataManager.savefile_time_stamp(@last)
          @last = i
        end
      end
    end
    if R2_AutoSave_AutoLoad::Use_switch == true &&
      $game_switches[R2_AutoSave_AutoLoad::Switch_Save] == true
      if R2_AutoSave_AutoLoad::Save_Maps.include?($game_map.map_id)
        DataManager.save_game(@last)
      end
    elsif R2_AutoSave_AutoLoad::Save_Maps.include?($game_map.map_id) &&
      R2_AutoSave_AutoLoad::Use_switch == false
      DataManager.save_game(@last)
    end
  end
end
I solved the change at title screen issue, just used a script to store a global variable.
I have another issue now, and even more important. For some reason if I do a conditional branch with "DataManger.save_file_exists?" the game crashes with an error. I need it for the title screen, I don't know if I should make a new thread for it.

EDIT
I found the source of the problem, it's the script by @TheoAllen that stores a global variable.
I tested in an empty project too, and for some reason it allows to load empty save files, cousing a game crash. May there be an error in the script?

I put it here too

Ruby:
# ------------------------------------------------
# Variable Store script
# ------------------------------------------------

  Stored_Variables_ID = [1,2,3,4,5]
# Record your variable ID here

# ------------------------------------------------
# Do not touch anything pass this line
# ------------------------------------------------
class << DataManager

  alias theo_savedvar_create_obj create_game_objects
  def create_game_objects
    theo_savedvar_create_obj
    load_variables
  end

  def load_variables
    save_variables unless variable_file_exist?
    load_saved_variables
    puts $game_variables[1]
  end

  def save_variables
    hash = {}
    Stored_Variables_ID.each do |id|
      hash[id] = $game_variables[id]
    end
    File.open(variable_filename, "wb") do |file|
      Marshal.dump(hash, file)
    end
  end

  def load_saved_variables
    hash = load_data(variable_filename)
    hash.each do |id,value|
      $game_variables.theo_savedvar(id, value)
    end
  end

  def variable_file_exist?
    FileTest.exist?(variable_filename)
  end

  def variable_filename
    return "Data/Variables.rvdata2"
  end

  alias theo_savedvar_load_game load_game
  def load_game(index)
    begin
      theo_savedvar_load_game(index)
      load_saved_variables
      return true
    rescue
      return false
    end
  end

end

class Game_Variables

  alias :theo_savedvar :[]=
  def []=(variable_id, value)
    theo_savedvar(variable_id, value)
    if Stored_Variables_ID.include?(variable_id) &&
      DataManager.variable_file_exist?
      DataManager.save_variables
    end
  end

end

Original thread: https://forums.rpgmakerweb.com/threads/jv-master-skip-title-screen-but-keeping-last-save-switches-and-variables.136668/