Not overwritable save state

Hello there dear forum, 🤣

I´m kind of brand new to the most things of Ruby, but have some experience with other languages...

At the moment I´m working on a game for my brothers marriage party.

This will be set up with just a controller, no keyboard or mouse and will run in full screen mode.

As I would like to keep it running to present it to people, I already disabled the exit command from the title screen menu.

Now here´s my problem:

I would like to make the first save state data unoverwritable (if that word really exists) and name it "Credits",

so one does not have to play the game through but can have a look at my animated credits.

Has anyone an idea? It would also be ok to replace the exit command with a credits command, but it needs

to load that specific file...

Thank you all, see you soon! 🤘 🤘

😀
I think this forum might be able to help you, i couldn't find a script that would add the credits option.

So is posting a link to another forum topic against the rule? if yes please forgive me, but for now i'll post this here : http://www.rpgmakervxace.net/topic/21406-credits-option-from-menu/

Or you can search for a credit script, Then Checking the credits from the Saving place

EX. In a game let's say your saving system is a crystal, if a player find a crystal they can save at it, You can add the choices of :

Save.

Credits.

When the player chooses credits, input the command to show the credits. (based on what credit scripts you use)
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

Yes, it's quite easy to replace the Exit command with a Credits command and have it load a specific save file.

However, where it gets messy is in not showing up the save file in the Load/Save screen, and preventing the player from loading it or overwriting it.

There are two options you could go for ... rename the save file to something that the Load/Save screen would exclude and write a new method in DataManager to load the 'Credits' save, or just ditch the save file idea altogether and write a new method in in DataManager to "start a new game" on your Credits map.

Here's a script for the second option - I think this is better, because it doesn't require you to ship the save file with the game (and also removes the possibility of the player deleting it and the game crashing when they take that option):

Spoiler
module DataManager class << self end def self.setup_credits create_game_objects $game_map.setup(19) # <<<<<<< this is the map id of your credits map $game_player.moveto(Graphics.width / 2, Graphics.height / 2) $game_player.refresh Graphics.frame_count = 0 endendclass Window_TitleCommand < Window_Command def make_command_list # overwrite original method add_command(Vocab::new_game, :new_game) add_command(Vocab::continue, :continue, continue_enabled) add_command("Credits", :credits) endendclass Scene_Title < Scene_Base alias shaz_create_command_window create_command_window def create_command_window shaz_create_command_window @command_window.set_handler🙂credits, method🙂command_credits)) end def command_credits DataManager.setup_credits close_command_window fadeout_all $game_map.autoplay SceneManager.goto(Scene_Map) endend
Just make sure you change the map id in the $game_map.setup command to refer to your 'credits' map (don't include leading zeros). Then you'll have to create a command somewhere that will actually shut down the game, because if you're removing Shut Down from the title screen there won't be any way to exit.
The only way I know to do what you suggest requires also Yanfly's Save Engine. But if you have that script, there is a new def called save_enabled?, which you can add lines to disable saving over files in certain cases. If you wish to disable the ability to save over the first line, add this line to the def save_enabled part of the code:

return false if @file_window_index = 0

That will disable being able to save over the first save file. But, again, this requires Yanfly's Save Engine too (as there is no def save_enabled in the default engine).

Personally, I'd add the credits option to the title screen. Most players expect it there instead of in a save file, and you will completely avoid this issue. That's my $0.01 on this subject, take it for what it is worth.
Thank you all for your help I'll try making something out of it and post about the result.

Cheers

Baron

Original thread: https://forums.rpgmakerweb.com/threads/not-overwritable-save-state.40147/