MV Tweak needed for Yanfly's Autosave

Hello you lovely lot.

I've tried various auto-save plugins, and Yanfly's is perfect, with the ability to set saves on different dependencies and the nice little pop-up box in the bottom right corner of the screen.

However, I'd really like it to use one specific slot - in this case, slot 24. It should be really easy to do, as the script is very straight forward and simple, but I'm having a brain fart and would like some help!

//============================================================================= // ConfigManager //============================================================================= ConfigManager.autosave = Yanfly.Param.AutosaveDefault; Yanfly.Autosave.ConfigManager_makeData = ConfigManager.makeData; ConfigManager.makeData = function() { var config = Yanfly.Autosave.ConfigManager_makeData.call(this); config.autosave = this.autosave; return config; }; Yanfly.Autosave.ConfigManager_applyData = ConfigManager.applyData; ConfigManager.applyData = function(config) { Yanfly.Autosave.ConfigManager_applyData.call(this, config); this.autosave = config['autosave'] || Yanfly.Param.AutosaveDefault; }; //============================================================================= // DataManager //============================================================================= Yanfly.Autosave.DataManager_setupNewGame = DataManager.setupNewGame; DataManager.setupNewGame = function() { Yanfly.Autosave.DataManager_setupNewGame.call(this); StorageManager.setCurrentAutosaveSlot(this._lastAccessedId); $gameTemp._autosaveNewGame = true; $gameTemp._autosaveLoading = false; }; Yanfly.Autosave.DataManager_saveGame = DataManager.saveGameWithoutRescue; DataManager.saveGameWithoutRescue = function(savefileId) { var value = Yanfly.Autosave.DataManager_saveGame.call(this, savefileId); $gameTemp._autosaveNewGame = false; $gameTemp._autosaveLoading = false; StorageManager.setCurrentAutosaveSlot(savefileId); return value; }; Yanfly.Autosave.DataManager_loadGame = DataManager.loadGameWithoutRescue; DataManager.loadGameWithoutRescue = function(savefileId) { var value = Yanfly.Autosave.DataManager_loadGame.call(this, savefileId); $gameTemp._autosaveNewGame = false; $gameTemp._autosaveLoading = true; StorageManager.setCurrentAutosaveSlot(savefileId); return value; }; //============================================================================= // StorageManager //============================================================================= StorageManager.getCurrentAutosaveSlot = function() { return this._currentAutosaveSlot; }; StorageManager.setCurrentAutosaveSlot = function(savefileId) { this._currentAutosaveSlot = savefileId; }; StorageManager.performAutosave = function() { if ($gameMap.mapId() <= 0) return; if ($gameTemp._autosaveNewGame) return; if (!$gameSystem.canAutosave()) return; SceneManager._scene.performAutosave(); };

I should be as simple as setting the savefileId to 24, right? Or am I being stupid?

Thanks for any help!

~Mat
you probably need to set it in the
"getCurrentAutosaveSlot" and "setCurrentAutosaveSlot"
and return both to 24;

I would suggest to place // behind the number to rule the line
behind it out to test it.

personally, I dont like Autosave from Yanfly as it might work,
but it does NOT work if you disable it in the option menu, it keeps
working.

as I use a different plugin with autosave feature in it, it also save on
a "autoslot" instead of slot number.

using a slot number can give troubles later if you save over it when
you want to load an earlier which is already overwritten.

if you want to use slot 24 for autosave, it needs another function
not to overwrite that one by manually saving the progress.
as I use a different plugin with autosave feature in it, it also save on
a "autoslot" instead of slot number.
Can you recommend one which doesn't lag too much?

Thank you for the info by the way - very helpful!
I dont say it lags to much, I said the option for turning the plugin
OFF doesn't work.

but it depends what the feature you need exactly.

if you use YEP_SaveCore + Autosave by YEP, it can work nice.
but if you want more or just the base or fully costumised.

check out TSR_Save (include autosave), with notifycation if you
like one, can turn it off so it wont save, you can place any
information you like on the save scene, and dont lag at all.

if you just need an autosave plugin, there are some around, but
most choose same slot otherwise "autoslot" which cannot be overwriiten.
I dont say it lags to much, I said the option for turning the plugin
OFF doesn't work.
I know that, that was just a stipulation of mine 🙂

Thank you for the replies and recommendations. I'll check it out!

Original thread: https://forums.rpgmakerweb.com/threads/tweak-needed-for-yanflys-autosave.149681/