Hello, I would need an update on this method (RPGMAKER MV 1.6.1)
I'm also trying to have an auto-save script inside my game, but all the suggested solutions here don't work (or don't work anymore)
@Trihan solution returns an error
The code that runs when you choose a save file is
Code:
try {
StorageManager.backup(savefileId);
return this.saveGameWithoutRescue(savefileId);
} catch (e) {
console.error(e);
try {
StorageManager.remove(savefileId);
StorageManager.restoreBackup(savefileId);
} catch (e2) {
}
return false;
}
So basically do that as a script call but instead of the parameter savefileId put the actual number of the slot you want to put the forced save file in.
and
@Shugo method
Code:
DataManager.saveGameWithoutRescue(savefileID)
completed as
Code:
DataManager.saveGameWithoutRescue( DataManager.lastAccessedSavefileId() )
indeed corrupts the game save
the new save is created, even if the autosave is called on a new game without previous saves, it neatly creates the new save into an empty slot, but the save created this way can't be loaded later on, meaning it's unusable
(the unusable save may also be caused by various game plugins, which add features which require addons into the game save, addons which likely aren't carried over with this method)
So which is a currently working method to auto-save a game, while skipping the manual save slot selection screen?