Is it possible to add more options to the title screen?

As the title says, I am curious to know if it is possible to add new options to the title screen.

For example, I want that when the player completes the game, an option is unlocked in the title to take him to a map that would be the extras room, or in another case, to unlock an option to play an alternative story of the main one.
Try this:

If you prefer to create a fully customized title menu, see this:
Try this:

If you prefer to create a fully customized title menu, see this:
I will keep the first one, the second one I find complex to use.

Now what I need is to find the script call to make it teleport to a specific map.
Sorry, I assumed from your Discord messages that you already knew how to create SCENEs and other things.
You will need to have persistent Switches, because the reading is done after a new game or loading a savefile, otherwise there will never be anything on the "Extras" map:
This second one is easy for the player to cheat since the data is in Game.ini

However, to create the new command that works the same as command_newgame, but that takes you to the "EXTRAS" map at a different coordinate, it is best to include it inside the Scene_Title class in this same SCRIPT, right after the "Create Command Method":
Ruby:
  def command_new_gameplus
    DataManager.setup_new_game
    $game_map.setup(2) # Set Extras Map ID
    $game_player.moveto(1, 2) # Set position => X,Y
    close_command_window
    fadeout_all
    $game_map.autoplay
    SceneManager.goto(Scene_Map)
  end
Be careful with this part, the map data and coordinates must be defined after reading the database, otherwise it will not work.

Obviously I did this my way, don't just copy and paste thinking it will work, look at the full name, change it to what you defined in the COMMAND_CALLS object

EXAMPLE:
Ruby:
        COMMAND_CALLS = {
                        :new_game     => :command_new_game, # special
                        :new_gameplus => :command_new_gameplus, # special
                        :continue     => Scene_Load,
                        :shutdown     => :command_shutdown, # special
                        }
Sorry, I assumed from your Discord messages that you already knew how to create SCENEs and other things.
You will need to have persistent Switches, because the reading is done after a new game or loading a savefile, otherwise there will never be anything on the "Extras" map:
This second one is easy for the player to cheat since the data is in Game.ini

However, to create the new command that works the same as command_newgame, but that takes you to the "EXTRAS" map at a different coordinate, it is best to include it inside the Scene_Title class in this same SCRIPT, right after the "Create Command Method":
Ruby:
  def command_new_gameplus
    DataManager.setup_new_game
    $game_map.setup(2) # Set Extras Map ID
    $game_player.moveto(1, 2) # Set position => X,Y
    close_command_window
    fadeout_all
    $game_map.autoplay
    SceneManager.goto(Scene_Map)
  end
Be careful with this part, the map data and coordinates must be defined after reading the database, otherwise it will not work.

Obviously I did this my way, don't just copy and paste thinking it will work, look at the full name, change it to what you defined in the COMMAND_CALLS object

EXAMPLE:
Ruby:
        COMMAND_CALLS = {
                        :new_game     => :command_new_game, # special
                        :new_gameplus => :command_new_gameplus, # special
                        :continue     => Scene_Load,
                        :shutdown     => :command_shutdown, # special
                        }
After testing it, IT WORKS!
now, how the preserve data script works so that this new option is activated only when you finish the game?
If you are using the first script, where the data will be preserved only when the "preserve_data" command is called, why not call it at the end of the game before the "Return to Title Screen" command?

Like this:
Code:
@>Script: preserve_data
@>Return to Title Screen
alternatively you might want to try the following script instead of experimenting with persistent data:

The original download link no longer works, you'll have to go through the github link
If you are using the first script, where the data will be preserved only when the "preserve_data" command is called, why not call it at the end of the game before the "Return to Title Screen" command?

Like this:
Code:
@>Script: preserve_data
@>Return to Title Screen
Oh I see, that's how the preserve data script works...

Now what I would need to know is what is the script to unlock and lock the new menu option, so my doubts would be complete knowing how the preserve data script works.
alternatively you might want to try the following script instead of experimenting with persistent data:

The original download link no longer works, you'll have to go through the github link
I had tried to use that one, but since I use a very different menu script that is not compatible, and since the script has a function that I am not looking for at all like the New Game+.
Oh I see, that's how the preserve data script works...

Now what I would need to know is what is the script to unlock and lock the new menu option, so my doubts would be complete knowing how the preserve data script works.
The existing NewGame+ scripts won't work, because you're supposed to start a new game with all the actors at their current level and equipment.

There would also be no need for a second Switch as I've shown if the menu wasn't accessible before the game.
The very old scripts that existed have already been lost, and it would really be a good idea for you to request their creation here:

Good luck
The existing NewGame+ scripts won't work, because you're supposed to start a new game with all the actors at their current level and equipment.

There would also be no need for a second Switch as I've shown if the menu wasn't accessible before the game.
The very old scripts that existed have already been lost, and it would really be a good idea for you to request their creation here:

Good luck
Oh, I see, I thought by “Persistent Switches” you meant a specific script, but well, I guess I'm clear on that now.
I'll see if tomorrow I'll make a post to ask for a script that can disable or enable a menu option like the one we just added.
Considering the scripts I mentioned earlier, Hime's Script will not work because it preserves the Switches and Variables for the current save, that is, only Hudell's is a solution, but the player will be able to edit it in Game.ini

If no one can help you with your script request, the last solution would be to create a custom menu for events, then you need to skip the title screen:

To load the SCENE_LOAD menu or close the game in EXITGAME option it will be necessary to create an event in Advanced => Script

Check if there are savefiles in the game folder:
Code:
DataManager.save_file_exists?
(Use this with "Conditional Branch", where the value will return TRUE if it exists.)

Load save:
Code:
SceneManager.call(Scene_Load)
(Put this inside the previous condition)

Exit game:
Code:
SceneManager.exit

You would have to create everything, but with freedom and could do with Pictures, animated background and any extra effect

A very simple example using the "Show Options..." event command:

1745740189160.png
Considering the scripts I mentioned earlier, Hime's Script will not work because it preserves the Switches and Variables for the current save, that is, only Hudell's is a solution, but the player will be able to edit it in Game.ini

If no one can help you with your script request, the last solution would be to create a custom menu for events, then you need to skip the title screen:

To load the SCENE_LOAD menu or close the game in EXITGAME option it will be necessary to create an event in Advanced => Script

Check if there are savefiles in the game folder:
Code:
DataManager.save_file_exists?
(Use this with "Conditional Branch", where the value will return TRUE if it exists.)

Load save:
Code:
SceneManager.call(Scene_Load)
(Put this inside the previous condition)

Exit game:
Code:
SceneManager.exit

You would have to create everything, but with freedom and could do with Pictures, animated background and any extra effect

A very simple example using the "Show Options..." event command:

View attachment 338780
Ok, after a while, I decided to use a menu made of events as you suggested, although it took me some time, I was able to configure it.

Now the hime preserve data will work, won't it? Because when I try to use the “preserve_data” script call, the game crashes.
1745782707836.png

1745782747719.png
What are the actual contents of the preserve_data method?
What are the actual contents of the preserve_data method?
You can see the script here to see what it does and how it works
I'm sorry, I've downloaded so many things this week that I refuse to download yet another one. Please post the contents of that single method. It might appear as def self.preserve_data or something the like plus the actual code.
I'm sorry, I've downloaded so many things this week that I refuse to download yet another one. Please post the contents of that single method. It might appear as def self.preserve_data or something the like plus the actual code.
Ok, here is.
def self.preserve_data
$game_temp.preserving_data = true
filename = make_filename(last_savefile_index)
return unless File.exist?(filename)
header = {}
contents = {}

# get data from most recent savefile
File.open(make_filename(last_savefile_index), "rb") do |file|
header = Marshal.load(file)
contents = Marshal.load(file)
end
# Update preserved data
TH::Preserve_Data::Switches.each {|id|
contents[:switches][id] = $game_switches[id]
}
TH::Preserve_Data::Variables.each {|id, val|
contents[:variables][id] = $game_variables[id]
}

# write modified data into save file
File.open(make_filename(last_savefile_index), "wb") do |file|
Marshal.dump(header, file)
Marshal.dump(contents, file)
end
$game_temp.preserving_data = false
end
end
There you'd have to add some debugging tools to find out which value has an incorrect type 🙂symbol instead of a number). Keep the console window visible.

Before filename = make_filename(last_savefile_index) add:
puts last_savefile_index

If that returns a number, then skip that step and find this part:
Code:
TH::Preserve_Data::Switches.each {|id|
contents[:switches][id] = $game_switches[id]
}
TH::Preserve_Data::Variables.each {|id, val|
contents[:variables][id] = $game_variables[id]
}
It now should look like this:
Code:
TH::Preserve_Data::Switches.each {|id|
puts "Switch #{id}"
contents[:switches][id] = $game_switches[id]
}
TH::Preserve_Data::Variables.each {|id, val|
puts "Variable #{id}
contents[:variables][id] = $game_variables[id]
}

That will print several switches and variables in a row. Make sure non of them return some text instead of a number as the current ID.
There you'd have to add some debugging tools to find out which value has an incorrect type 🙂symbol instead of a number). Keep the console window visible.

Before filename = make_filename(last_savefile_index) add:
puts last_savefile_index

If that returns a number, then skip that step and find this part:
Code:
TH::Preserve_Data::Switches.each {|id|
contents[:switches][id] = $game_switches[id]
}
TH::Preserve_Data::Variables.each {|id, val|
contents[:variables][id] = $game_variables[id]
}
It now should look like this:
Code:
TH::Preserve_Data::Switches.each {|id|
puts "Switch #{id}"
contents[:switches][id] = $game_switches[id]
}
TH::Preserve_Data::Variables.each {|id, val|
puts "Variable #{id}
contents[:variables][id] = $game_variables[id]
}

That will print several switches and variables in a row. Make sure non of them return some text instead of a number as the current ID.
It does not seem to have any effect, I keep getting the 1411 error :/

EDIT

Ok, it seems that the script was incompatible, in the end I decided to use the Game Custom Data script, which works for me.
It does not seem to have any effect, I keep getting the 1411 error :/

EDIT

Ok, it seems that the script was incompatible, in the end I decided to use the Game Custom Data script, which works for me.

That's because I told you it was a debugging tool, not the solution itself. It would have let you find out WHERE the error actually occurs (inside preserve_data) and then it'd be easy to point you into the right direction.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-add-more-options-to-the-title-screen.177256/