Save scripts and autosaves do not work

Hey,

would be great to get some help from you.

Our game is like 95% finished and we started testing everything for a deployment on android. We tested several autosave plugins but none of them seems to work on android. There ist no error message. After rebooting the game there is simply no save available to load.

Does anyone has an idea?

We used AltimitSystems Android Client. The only other one I know of is the following: https://github.com/Creta5164/RPGMakerMV-AndroidDevKit. However, the instructions are quite cryptic (bad translation)

Any help would be appreciated!

UPDATE:
It is getting even more odd. I deactivated the autosave plugins and manually added save/load events. Loading the save file does not work - even on the PC - bur returns an error instead

//Save
$gameSystem.onBeforeSave();
if(DataManager.saveGame(1)) {
StorageManager.cleanBackup(1);
}

//Load
if (DataManager.loadGame(1)) {
SoundManager.playLoad();
SceneManager._scene.fadeOutAll();
if ($gameSystem.versionId() !== $dataSystem.versionId) {
$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
$gamePlayer.requestMapReload();
}
SceneManager.goto(Scene_Map);
SceneManager._scene._loadSuccess = true;
}

bug1.png
which auto save plugin did you try?
there are some, I know 1 really simple, YEP autosave dont work when
autosave option is OFF, and still autosaves it,

I know one, but it also an entire save scene, but if it works on android, no idea.
most plugins should work on android as it is html based, but some of SRD dont
play nice on androids.

but the load part could be easier, but also, do you use 1 save or multple saves?
We did try YEP and FELSKIs Autosave plugins. We have the same problem with both.

there are some, I know 1 really simple, YEP autosave dont work when
autosave option is OFF, and still autosaves it,
Do I understand you correctly: YEP autosaves even though the autosave option is deactivated?!
but the load part could be easier, but also, do you use 1 save or multple saves?
We used multiple saves but it did not work with 1 save either.

I am not that suprised that the Autosave Plugins do not work as manually saving seems problematic too. Using the above scripts I can save a file, but trying to load it by script results in the above error. Loading the save file from the title screen does work though.

I considered a syntax error in the above code, but it does work in a fresh game.
you can try TSR save plugin, it can customize the save scene, but you
can leave it as default, you can even start from latest save file if you
have TSR Title plugin as well.

it has an autosave feature, to turn on and off, but if it works on android,
I have no idea, but it does work outstanding for pc's versions.

it has also high compability on YEP library as well, and if there is an
issue or feature, you can try to ask him, bugs are relative fixed within
2 days, if he is not busy, but you can give it a shot though.

but I cannot tell if his does work, but AES has also an autosave feature,
simple and effective.

can link them tomorrow if you cannot find them, but its pretty late here.
so will do tomorrow if need.
The error in your screenshot has nothing to do with saving/loading or autosave scripts. It's trying to find the proper page to activate on an event, but the event object doesn't exist.

Do you have a spawning plugin that's active on that map?
Thanks, ShadowDragon. Found it and will check it out.

We do not use any spawning plugin, Shaz. What is meant by "page"? Like "event page"?
'pages' is the list of pages that an event has - even if there's only one page, it will be held in the pages array.

This is the line that's throwing the error:
Code:
var pages = this.event().pages;

The error Cannot read property 'pages' of undefined means this.event() is not returning an event. It is trying to get this from $dataMap which is the list of events on your map at the time you saved (in the editor).j

This tells us that you either have a spawning plugin that's not quite working correctly, or that you have saved your game, gone into that map and deleted one or more events in the editor, and are now reloading that save file which no longer matches the edited map.

If you don't have a spawning plugin, then your save file is useless and you'll need to start a new game instead.

Original thread: https://forums.rpgmakerweb.com/threads/save-scripts-and-autosaves-do-not-work.139536/