[SOLVED] Plugin that can disable overwriting of save file

Help me, does anyone know how I can disable in-game overwriting of save file? I want the player to save often every few minutes or so but I don't want them to overwrite their saves in case they encounter a bug, so they could reload old saves. They will have to save their progress to a new slot each time. (fortunately I have provided them with 100 save slots)

EDIT: specifically, only the file1.rpgsave, file2.rpgsave, file3.rpgsave...etc.

Intended to be used for beta testers.
can only be done with a plugin specifically written for that, and has a lot of problems.

The player NEEDS an ability to delete savefiles, otherwise those savefiles will accumulate and block space on the harddrive.
And if a player has only a small harddrive (or an almost full one), that can result in game-crashes or even (if it goes really to the limits) windows crashes if the OS can no longer handle its own files.
Shouldn't it be up to the player whether they want to overwrite an old save file or not?
can only be done with a plugin specifically written for that, and has a lot of problems.

The player NEEDS an ability to delete savefiles, otherwise those savefiles will accumulate and block space on the harddrive.
And if a player has only a small harddrive (or an almost full one), that can result in game-crashes or even (if it goes really to the limits) windows crashes if the OS can no longer handle its own files.

Ok then, may I request this thread to be moved to the plugin request thread instead?

I am thinking that I could also tell them that they should save often and in a new slot each time, but they might forget and still do overwrite their saves.

Shouldn't it be up to the player whether they want to overwrite an old save file or not?

I am intending it for beta testing purposes but yes you do have a point. I can also go with tell them to "-save often and -save in a new slot each time, otherwise the bugfix that I made might not work for your newer save file"

v93Th8O.png
I generally rotate between 3-10 slots. No need to save every single time to a brand new slot.
may I request this thread to be moved to the plugin request thread instead?
of course - but you have to request it by reporting it to a moderator, not by posting on the forum.
I made you this. It does not do exactly what you requested. Instead of disabling overwriting it makes it so everytime you click the Save command in the Menu it automatically saves at the slot next to the one it previously did. If there are no more slots left then it will start over at slot 1 and overwrite files.

I also added a small window to the Scene_Map that displays the text "Saved" in the upper right corner to make sure the player know his game have been saved.

If you have any problems with the plugin feel free to message me 🙂

Code:
//=============================================================================
// Always New Save
// MRP_AlwaysNewSave.js
// By Magnus0808 || Magnus Rubin Peterson
//=============================================================================

/*:
 * @plugindesc The Save Command in the Menu always saves in a new slot if it can.
 * @author Magnus0808
 *
 * @help Plug and Play
 *
 
 */
 
 var Imported = Imported || {};
 Imported.MRP_AlwaysNewSave = true;
 
 var MRP = MRP || {};
 MRP.AlwaysNewSave = MRP.AlwaysNewSave ||{};
 
(function() {
        
    //-----------------------------------------------------------------------------
    // Window_MapSave
    //
    // The window for showing a file have been saved
    
    function Window_MapSave() {
        this.initialize.apply(this, arguments);
    }

    Window_MapSave.prototype = Object.create(Window_Base.prototype);
    Window_MapSave.prototype.constructor = Window_MapSave;

    Window_MapSave.prototype.initialize = function() {
        var width = this.windowWidth();
        var height = this.windowHeight();
        Window_Base.prototype.initialize.call(this, Graphics.boxWidth - width, 0, width, height);
        this.opacity = 0;
        this.contentsOpacity = 0;
        this._showCount = 0;
        this.refresh();
    };

    Window_MapSave.prototype.windowWidth = function() {
        return 360;
    };

    Window_MapSave.prototype.windowHeight = function() {
        return this.fittingHeight(1);
    };

    Window_MapSave.prototype.update = function() {
        Window_Base.prototype.update.call(this);
        if (this._showCount > 0) {
            this.updateFadeIn();
            this._showCount--;
        } else {
            this.updateFadeOut();
        }
    };

    Window_MapSave.prototype.updateFadeIn = function() {
        this.contentsOpacity += 16;
    };

    Window_MapSave.prototype.updateFadeOut = function() {
        this.contentsOpacity -= 16;
    };

    Window_MapSave.prototype.open = function() {
        this.refresh();
        this._showCount = 150;
    };

    Window_MapSave.prototype.close = function() {
        this._showCount = 0;
    };

    Window_MapSave.prototype.refresh = function() {
        this.contents.clear();
        var width = this.contentsWidth();
        this.drawBackground(0, 0, width, this.lineHeight());
        this.drawText("Saved", 0, 0, width, 'center');
    };

    Window_MapSave.prototype.drawBackground = function(x, y, width, height) {
        var color1 = this.dimColor1();
        var color2 = this.dimColor2();
        this.contents.gradientFillRect(x, y, width / 2, height, color2, color1);
        this.contents.gradientFillRect(x + width / 2, y, width / 2, height, color1, color2);
    };
    
    //-----------------------------------------------------------------------------
    // Scene_Map
    //
    // Changes to Scene_Map
    
    MRP.AlwaysNewSave.Scene_Map_createDisplayObjects = Scene_Map.prototype.createDisplayObjects;
    Scene_Map.prototype.createDisplayObjects = function() {
        MRP.AlwaysNewSave.Scene_Map_createDisplayObjects.call(this);
        this.createMapSave();
    };
    
    Scene_Map.prototype.createMapSave = function() {
        this._mapSaveWindow = new Window_MapSave();
        this.addChild(this._mapSaveWindow);
    };
    
    MRP.AlwaysNewSave.Scene_Map_initialize = Scene_Map.prototype.initialize;
    Scene_Map.prototype.initialize = function() {
        MRP.AlwaysNewSave.Scene_Map_initialize.call(this);
        this._showSaved = false;
    };
    
    MRP.AlwaysNewSave.Scene_Map_update = Scene_Map.prototype.update;
    Scene_Map.prototype.update = function() {
        if(this._showSaved) {
            this._showSaved = false;
            this._mapSaveWindow.open();
        }
        MRP.AlwaysNewSave.Scene_Map_update.call(this);
    };
    
    MRP.AlwaysNewSave.Scene_Map_stop = Scene_Map.prototype.stop;
    Scene_Map.prototype.stop = function() {
        this._mapSaveWindow.close();
        MRP.AlwaysNewSave.Scene_Map_stop.call(this);
    };
    
    MRP.AlwaysNewSave.Scene_Map_terminate = Scene_Map.prototype.terminate;
    Scene_Map.prototype.terminate = function() {
        if (!SceneManager.isNextScene(Scene_Battle)) {
            this._mapSaveWindow.hide();
        }
        this.removeChild(this._mapSaveWindow);
        MRP.AlwaysNewSave.Scene_Map_terminate.call(this);
    };
    
    MRP.AlwaysNewSave.Scene_Map_callMenu = Scene_Map.prototype.callMenu;
    Scene_Map.prototype.callMenu = function() {
        MRP.AlwaysNewSave.Scene_Map_callMenu.call(this);
        this._mapSaveWindow.hide();
    };
    
    MRP.AlwaysNewSave.Scene_Map_launchBattle = Scene_Map.prototype.launchBattle;
    Scene_Map.prototype.launchBattle = function() {
        MRP.AlwaysNewSave.Scene_Map_launchBattle.call(this);
        this._mapSaveWindow.hide();
    };
        
    //-----------------------------------------------------------------------------
    // Scene_Menu
    //
    // Changes to Scene_Menu
    
    MRP.AlwaysNewSave.getNextFileId = function() {
        var latestSavefileId = DataManager.latestSavefileId();
        if(latestSavefileId == DataManager.maxSavefiles()){
            return 1;
        } else {
            return latestSavefileId + 1;
        }       
    }
    
    Scene_Menu.prototype.commandSave = function() {
        $gameSystem.onBeforeSave();
        var saveId = MRP.AlwaysNewSave.getNextFileId();
        if (DataManager.saveGame(saveId)) {
            SoundManager.playSave();
            StorageManager.cleanBackup(saveId);
            this.popScene();
            if(SceneManager.isNextScene(Scene_Map)) SceneManager._nextScene._showSaved = true;
        } else {
            SoundManager.playBuzzer();
        }
    };
        
})();
Ooh, very cool, it works. And yes that's a great idea to make it so that it will instead save in a new blank slot.
That way, it won't feel intrusive to the player, thanks a lot!
Update:
-now works better with Olivia_MapDisplayNameCore.js in case you are using it like I do.
-now uses save slot 1 as well (previously it doesn't) when saving for the first time.

all credit goes to Magnus0808.
If your issue is solved, report your first post and say so, and the mods will close the thread.
If your issue is solved, report your first post and say so, and the mods will close the thread.
Okay, will do thanks.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/solved-plugin-that-can-disable-overwriting-of-save-file.108027/