Did you try just putting what's on the script call list (or like modify the continue command function with the stuff)? Seems to work for me. Didn't have to make any custom command. (Also, you can remove that turn switch 100 on after load that's in the script call list.)
Scene_Title.prototype.commandContinue = function() {
this._commandWindow.close();
DataManager.loadGame(0)
.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();
}).finally(() => {
$gameSwitches.setValue(100, true);
});
};
hm, I dont quite catch, the hendrix plugin allows me to add a video on my title screen so it is important for me to add. I added the script to the custom command but when I run it and click the continue it freezes the buttons and the hover even if I restart and run new game and click on it again
😢
Scene_Title.prototype.commandContinue = function() {
this._commandWindow.close();
DataManager.loadGame(0)
.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();
};
It looks like your plugin doesn't have a place to set a condition to disable or hide the item, which seems like a rather big missing feature in their plugin. I guess you can get around it by adding this code to the script,
above the code I previously gave you:
JavaScript:
if(!DataManager.savefileInfo(0)) {
SoundManager.playBuzzer();
return;
}
That'll make it look like it's selectable but complain when you try to select it. Not ideal, but definitely better than freezing up the title screen.
For what it's worth, I
think the plugin-oriented code
@rpgLord69 posted has the same downside, at least if used in isolation.
hm, like this?
if(!DataManager.savefileInfo(0)) {
SoundManager.playBuzzer();
return;
}
Scene_Title.prototype.reloadMapIfUpdated = Scene_Load.prototype.reloadMapIfUpdated;
DataManager.loadGame(0).then(Scene_Load.prototype.onLoadSuccess.bind(SceneManager._scene)).catch(() => SoundManager.playBuzzer());