**Disclaimer: The best way to deal with this error is simply deleting the old save made by default rmmv, just making note of that here. While this will be safe to use with the default RMMV saves, I doubt it will work harmoniously with a save from any other plugin system out there. There's a chance it might still load the save from one but vital data may be missing on load that the plugin baked into that save.
Again, this is only meant to check for MOG_SceneFile added data and skill displaying and load the save in a DEFAULT RMMV save.
Ran into an issue with save files made before the plugin was installed.
Took a look at it and MOG's plugin errors due to attempting to access data that won't exist in default saves or other
saves from other plugins. Made a quick error handler for it and figured I'd share it.
Replace your drawData with this version.
Again, this is only meant to check for MOG_SceneFile added data and skill displaying and load the save in a DEFAULT RMMV save.
Ran into an issue with save files made before the plugin was installed.
Took a look at it and MOG's plugin errors due to attempting to access data that won't exist in default saves or other
saves from other plugins. Made a quick error handler for it and figured I'd share it.
JavaScript:
//==============================
// * draw Data
//==============================
Window_FileData.prototype.drawData = function() {
var actor = this.data().actor;
var x = Moghunter.scFile_ParX;
var y = Moghunter.scFile_ParY;
var s = Moghunter.scFile_ParS;
var w1 = this.width - 120 + x;
// Checking for data that indicates save made without this plugin...
if (actor && actor.length >= 11) {
this._actorID = actor[10];
this.changeTextColor(this.textColor(Moghunter.scFile_TextColor));
this.drawText(String(Moghunter.scFile_PlayTimeWord), x, 80, 120, 'left');
this.drawText(String(Moghunter.scFile_LocationWord), x, 112, 120, 'left');
this.drawText(TextManager.levelA, w1, y, 120, 'left');
this.drawText(TextManager.param(0), x, y + s * 1, 120, 'left');
this.drawText(TextManager.param(1), x, y + s * 2, 120, 'left');
this.drawText(TextManager.param(2), x, y + s * 3, 120, 'left');
this.drawText(TextManager.param(3), x, y + s * 4, 120, 'left');
this.drawText(TextManager.param(4), x, y + s * 5, 120, 'left');
this.drawText(TextManager.param(5), x, y + s * 6, 120, 'left');
this.drawText(TextManager.param(6), x, y + s * 7, 120, 'left');
this.drawText(TextManager.param(7), x, y + s * 8, 120, 'left');
if (this._gold) {this.drawText(TextManager.currencyUnit, x, y + s * 9, 120, 'left')};
this.resetTextColor();
this.drawText(this.data().playtime, w1 - 40, 80, 120, 'right');
this.drawText(this.data().location, w1 - 80, 112, 160, 'right');
this.drawText(actor[0], x, y, 120, 'left');
this.drawText(actor[1], w1, y, 80, 'right');
this.drawText(actor[2], w1, y + s * 1, 80, 'right');
this.drawText(actor[3], w1, y + s * 2, 80, 'right');
this.drawText(actor[4], w1, y + s * 3, 80, 'right');
this.drawText(actor[5], w1, y + s * 4, 80, 'right');
this.drawText(actor[6], w1, y + s * 5, 80, 'right');
this.drawText(actor[7], w1, y + s * 6, 80, 'right');
this.drawText(actor[8], w1, y + s * 7, 80, 'right');
this.drawText(actor[9], w1, y + s * 8, 80, 'right');
if (this._gold) {this.drawText(this.data().gold, w1 - 40, y + s * 9, 120, 'right')};
} else {
// If save does not contain expected data...
this.drawText("- Incorrect Save Structure -", x, y, 200, 'left');
}
};
Replace your drawData with this version.