Single Save For Mobile Game (AutoSave/Load)

Hi,
I am trying to make a mobile/touch based game and really only need/want one save file.
I have messed with a few autosave plugins (OrangeAutoSave) to either save automatically on transfer, or with a script command, and used the code below to load the save.

$gameSystem.onAfterLoad();
DataManager.loadGame(1);
StorageManager.cleanBackup(1);
$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();


But it still isnt doing what I want. Maybe someone could help.

Basically, I'm thinking more of an extremely simple title screen with a play button, that when pressed would just load the last save. All without using the save screen. I am also using a custom small menu (using choices) and SRD_SwipeInput plugin to open it. (Pretty awesome plugin 🙂 )

To make the play button, I just used a plugin to use a map as a title screen, and a show text box on that map with the word 'Play!'. Then, when touched (basically closing the text box), I need it to check if there is a save. If there is, go to that save, if not, then it will start a new game.

My programming knowledge isnt really to the degree that I would be able to do this, but I have a feeling that it wouldnt take a plugin, but then again, not entirely sure.

Thank you so much!
I need it to check if there is a save. If there is, go to that save, if not, then it will start a new game.
You do realize you just solved your problem with that sentence, right?

for MV, I think the code for most recent file is DataManager.latestSavefileIndex()
so, you just check for DataManager.latestSavefileIndex() > 0
Sorry, I might have been unclear. I was looking for that script. Like I said, my programming abilities aren't good enough to come up with that myself.
Thanks! It now works great!

Original thread: https://forums.rpgmakerweb.com/threads/single-save-for-mobile-game-autosave-load.78510/