I'm making the event title using titleskip plugin
titleskip plugin :
https://forums.rpgmakerweb.com/index.php?threads/skip-the-title-screen-for-players.125548/
So I'm using script call to make a load and save, but there was an error.
The event call I'm using is as follows.
If I use the script below to load the file, an error occurs: cannot read property "page" of null
There is nothing wrong with the load screen. but, if i use a script call, an error occurs.
titleskip plugin :
https://forums.rpgmakerweb.com/index.php?threads/skip-the-title-screen-for-players.125548/
So I'm using script call to make a load and save, but there was an error.
The event call I'm using is as follows.
If I use the script below to load the file, an error occurs: cannot read property "page" of null
$gameSystem.setSavefileId(1);
$gameSystem.onBeforeSave();
DataManager.saveGame(1);
$gameSystem.onBeforeSave();
DataManager.saveGame(1);
DataManager.loadGame(1)
.then(() => {
$gameSystem.onAfterLoad();
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);
}).catch(() => SoundManager.playBuzzer());
.then(() => {
$gameSystem.onAfterLoad();
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);
}).catch(() => SoundManager.playBuzzer());
There is nothing wrong with the load screen. but, if i use a script call, an error occurs.