Greetings! I'm trying to use the script to load specific file, but every time i load the save i get this error.
For saving i use this script:
And for save loading i use this:
I tried to find how to fix this issue on google but found nothing, so the help would be appreciated!
For saving i use this script:
Code:
$gameSystem.setSavefileId(1);
$gameSystem.onBeforeSave();
DataManager.saveGame(1);
Code:
DataManager.loadGame(1)
.then(() => {
SoundManager.playLoad();
SceneManager._scene.fadeOutAll();
if ($gameSystem.versionId() !== $dataSystem.versionId) {
const p = $gamePlayer;
p.reserveTransfer($gameMap.mapId(), p.x, p.y, p.direction(), 0);
p.requestMapReload();
}
SceneManager.goto(Scene_Map);
$gameSystem.onAfterLoad();
}).catch(() => SoundManager.playBuzzer());