Hello everyone,
So, basically I want to make custom save and load scene via event.
I get some trouble to save and load data via script call. here's That I use via script call.
Let say I want to save in the slot number 1.
Here's when I load data via script call.
The think, the script was success when I save and load in the same map.
But, If I load in different map I got an error.
So, did you guys have any idea to solve this?
Thank you!
So, basically I want to make custom save and load scene via event.
I get some trouble to save and load data via script call. here's That I use via script call.
Let say I want to save in the slot number 1.
JavaScript:
$gameSystem.onBeforeSave();
DataManager.saveGame(1);
Here's when I load data via script call.
JavaScript:
DataManager.loadGame(1);
const mapId = $gameMap.mapId();
const x = $gamePlayer.x;
const y = $gamePlayer.y;
const d = $gamePlayer.direction();
$gamePlayer.reserveTransfer(mapId, x, y, d, 0);
$gamePlayer.requestMapReload();
SceneManager.goto(Scene_Map);
The think, the script was success when I save and load in the same map.
But, If I load in different map I got an error.
JavaScript:
TypeError
Cannot read property 'pages' of undefined
So, did you guys have any idea to solve this?
Thank you!