MV [SOLVED] Single Save File + Autosave

I don't need multiple save slots for my game.
I just need one save file that is automatically loaded when you continue in the main menu and is overwritten when you save the game. And it would be perfect if there is an autosave option that automatically saves every x minutes or at specific events (like new map loaded).

My game is basically a decision driven story game and I don't want players to just jump back to an older save file after a bad decision.


Plugins I've seen so far:

HIME SyncSaveData - somehow merges all the data from all save files into one that contains all information - well thats already too much. I don't need to merge multiple save files, I simply just need one file that is constantly overwritten.

YEP Autosave - adds an autosave function to save at specific events, but it adds so many options for this too like custom autosave messages and other stuff - and is one of YEPs paid plugins. Thought there might be a short and simple solution to just overwrite the current save with no message or whatever.
Copy and paste this into a text editor, save as a *.js file, include as a plugin:
Code:
DataManager.maxSavefiles = function() {
    return 1;
};

Combine with the autosave plugin of your choice.
Copy and paste this into a text editor, save as a *.js file, include as a plugin:
Code:
DataManager.maxSavefiles = function() {
    return 1;
};

Combine with the autosave plugin of your choice.

Hey Turan, would you also happen to know how to disable New Game if max save slots are full? For example if I have 3 max save slots and they are all saved over, the New Game option would be disabled.
TSR_Save can have 1 savefile + have an autosave feature.
and it can also be highly customised to your liking.
Aesica also has an autosave plugin that is free
This is the simplest i fount and am using from aloe guvner here
AUTOSAVE
Code:
$gameSystem.onBeforeSave();
if(DataManager.saveGame(1)) {
   StorageManager.cleanBackup(1);
}

AUTOLOAD
Code:
if(DataManager.loadGame(1)) {
   SoundManager.playLoad();
   this.fadeOutAll();
   $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
   $gamePlayer.requestMapReload();
   SceneManager.goto(Scene_Map);
   $gameSystem.onAfterLoad();
}

I combine them with conditional branch is Playtest or not.
Thank you. That is is exactly what I was looking for 🙂
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/solved-single-save-file-autosave.156556/