Hi all! Im trying to do an auto save system for my project, so I can have the game autosave in a designated slot. My question is, is there a way I can disable the player to access that slot , like, if he want to save the game he can use any other slot but the one Im using for autosaving is blocked for him? or more specifically, disable it for saving and only be enabled for loading?
Thanks!
Help! Is there a way to disable a save slot for autosave?
● ARCHIVED · READ-ONLY
-
-
You'll need someone to code it so that one save slot cannot be used.
Moved to Plug-In Requests
-
I wrote the code for this for my game, but it's not a plug-and-play plug-in. Are you familiar with Javascript? If you are, I can post my code and you can edit it for your own game (you'll need to have a specific savefileId that your own autosave code uses).
-
-
Here are the relevant functions; let me know if you have any questions. My own autosave file ID is 1, so you'll need to modify that twice in the code below if yours is different.
Code:// New function - modify the savefileId if it's not 1 Window_SavefileList.prototype.isAutosave = function(savefileId) { return this._mode === 'save' && savefileId === 1; }; // The following functions are overwritten; you may need to make further edits if you're using any save plugins. Window_SavefileList.prototype.drawItem = function(index) { var id = index + 1; var valid = DataManager.isThisGameFile(id); var info = DataManager.loadSavefileInfo(id); var rect = this.itemRectForText(index); var isAutosave = this.isAutosave(id); this.resetTextColor(); if (isAutosave) { this.changePaintOpacity(false); } else if (this._mode === 'load') { this.changePaintOpacity(valid); } this.drawFileId(id, rect.x, rect.y); if (info) { var enabled = isAutosave ? !isAutosave : valid; this.changePaintOpacity(enabled); this.drawContents(info, rect, enabled); this.changePaintOpacity(true); } }; // Change savefileId if it's not 1. Note that this drawText function uses a bigger width than the original function (because I rewrote how the other bits of information are displayed in my window), so you'll need to test to see it changes how things look in your own window. Window_SavefileList.prototype.drawFileId = function(id, x, y) { var text = TextManager.file + ' ' + id + (id === 1 ? ' (Autosave)' : ''); this.drawText(text, x, y, 240); }; -
Thaaaaank you! appreciated.