Auto Load Save File

Hello!

The game I'm developing is meant to only have one save file so I would like to bypass the load menu when the player hits continue from the main menu. This would allow the player to just get into the game faster and delete an unnecessary screen.

1721251297906.png

1721251322798.png


At first I thought it would be cool to have a load screen with some variable tracked metrics. But ultimately decided that it really does nothing for the overall game.

I'm using Yanfly autosave and save core for this and I've lowered the max save slots to 1 and there is autosaves whenever the player goes through a map transition.

Any help on this matter would be great!

If i need to alter some .js in the default please direct me as to where to use them because I'm a level 0 programmer at the moment but I'm picking up new things all the time.

Thank you in advance!
JavaScript:
    Scene_Title.prototype.commandContinue = function() {
      SoundManager.playLoad();
      DataManager.loadGame(1);
      $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
      $gamePlayer.requestMapReload();
      $gameSystem.onAfterLoad();
      this._commandWindow.close();
      this.fadeOutAll();
      SceneManager.goto(Scene_Map);
    };

It is something like this.
But, you'll need to change save option as well I guess.
JavaScript:
    Scene_Title.prototype.commandContinue = function() {
      SoundManager.playLoad();
      DataManager.loadGame(1);
      $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
      $gamePlayer.requestMapReload();
      $gameSystem.onAfterLoad();
      this._commandWindow.close();
      this.fadeOutAll();
      SceneManager.goto(Scene_Map);
    };

It is something like this.
But, you'll need to change save option as well I guess.

This looks promising! I'm just not sure where I would exactly plug this into. Could you help me with that?
This looks promising! I'm just not sure where I would exactly plug this into. Could you help me with that?
Create a new file called something.js, paste those code to it, put it in js/plugins folder and enable the plugin in your RPG Maker, that's pretty much it.
I'm just not sure where I would exactly plug this into.
Depending on the region you live in, the plug may vary country to country, but often it is located on a wall near the floor.
Always take safety precautions when plugging into things, such as wearing rubber protection, and always avoid putting fingers into plugs.

With these easy steps you'll be plugging things in in no time! And following these easy safety steps will keep you safe and child-free for the foreseeable future.
Just to mention it, there are existing plugins for this you might find with a Google, if the code above doesn't immediately do what you like.
Depending on the region you live in, the plug may vary country to country, but often it is located on a wall near the floor.
Always take safety precautions when plugging into things, such as wearing rubber protection, and always avoid putting fingers into plugs.

With these easy steps you'll be plugging things in in no time! And following these easy safety steps will keep you safe and child-free for the foreseeable future.
lolol You got me there. xD

Just to mention it, there are existing plugins for this you might find with a Google, if the code above doesn't immediately do what you like.
I did google but I didn't find any that changed the function of the continue button on the main menu. I found one that would auto load on launch and that was a bit too aggressive for my needs.
Create a new file called something.js, paste those code to it, put it in js/plugins folder and enable the plugin in your RPG Maker, that's pretty much it.

When I did this I got this error when I clicked continue
1721274984455.png
I did google but I didn't find any that changed the function of the continue button on the main menu.
I meant primarily existing plugins that restricted the player to having one save slot, such as

Once you have that, if it doesn't provide the functionality to automatically load that save when selecting Continue, that should be a simple edit.

I offer this as an alternative to the above:

Code:
Scene_Title.prototype.commandContinue = function()
{
    this._commandWindow.close();

    if (DataManager.loadGame(1))
    {
        SoundManager.playLoad();
        this.fadeOutAll();
        SceneManager.goto(Scene_Map);
        $gameSystem.onAfterLoad();
    } 
    else
        this.onLoadFailure();
};
This works for me in my test game.
I meant primarily existing plugins that restricted the player to having one save slot, such as

Once you have that, if it doesn't provide the functionality to automatically load that save when selecting Continue, that should be a simple edit.

I offer this as an alternative to the above:

Code:
Scene_Title.prototype.commandContinue = function()
{
    this._commandWindow.close();

    if (DataManager.loadGame(1))
    {
        SoundManager.playLoad();
        this.fadeOutAll();
        SceneManager.goto(Scene_Map);
        $gameSystem.onAfterLoad();
    }
    else
        this.onLoadFailure();
};
This works for me in my test game.
Ohh My mistake, I'm using the Yanfly save core and autosave for this game I've already done everything I needed for the save side everything working properly. I'm going to try this code you have helped me with

This works just the way I need it thank you so much for your continued help I really truly appreciate it!

Original thread: https://forums.rpgmakerweb.com/threads/auto-load-save-file.170389/