Hello! So I have been using the Dot Move System plugin for pixel movement in my game, and it's been working almost perfectly for everything I need. But now I've discovered a strange error that I just can't seem to solve.
So for context, my game requires a custom menu for saving and loading, so I have been using the script call (from here) for loading the game, rather than loading through the default load scene:
When I try to load the game this way though, I get an error from the Dot Move System plugin.
And the strange part is that it doesn't give me this error when I try loading the game through the SceneManager.push(Scene_Load); method. It loads the game perfectly fine that way. But I can't use this method if I want to maintain the custom menus I've created.
For the sake of eliminating other points of conflict, I've tested this all in a new blank project, with the Dot Move System as the only active plugin.
Would anyone possibly know why this is happening? I had believed that the script should do essentially the same thing as selecting a file from the load scene, so I am unsure why the error only occurs when using the script call. Is there something I need to add to it so that it produces the same result as loading from the load scene?
So for context, my game requires a custom menu for saving and loading, so I have been using the script call (from here) for loading the game, rather than loading through the default load scene:
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());
When I try to load the game this way though, I get an error from the Dot Move System plugin.
And the strange part is that it doesn't give me this error when I try loading the game through the SceneManager.push(Scene_Load); method. It loads the game perfectly fine that way. But I can't use this method if I want to maintain the custom menus I've created.
For the sake of eliminating other points of conflict, I've tested this all in a new blank project, with the Dot Move System as the only active plugin.
Would anyone possibly know why this is happening? I had believed that the script should do essentially the same thing as selecting a file from the load scene, so I am unsure why the error only occurs when using the script call. Is there something I need to add to it so that it produces the same result as loading from the load scene?