hornyninja Wrote:I havent heard of this bug affecting any characters until now so would I have to use the script on characters added in Chapters 11 and 12 too? (The sexy atronach, Cherie, and the loads of Haremon were all added in Chapters 11 and 12).
Was YEP_ItemCore added for Chapter 11?
The following things are required to tickle this bug:
* Someone started a new game in a version with YEP_ItemCore
* They then imported their save to a newer version of the game with new characters added.
So if the Sexy Atronach was added in Chapter 11, Cherie in Chapter 12, and YEP_ItemCore was added in Chapter 12, then both the Sexy Atronach and Cherie are safe (but Sylvia isn't, because she was added in 0.13.0)
If YEP_ItemCore was added in Chapter 11, then Cherie should need to be initialized in this way.
The other thing I suggested is just automatically "de-initializing" all obviously-invalid actor definitions as part of the save game loader. This could be done with a plugin that replaces one of the MV built-in functions, much like "selectitem.js".
Try this code for a plugin:
Spoiler (click to show/hide):
- Code: Select All Code
DataManager.loadGameWithoutRescue = function(savefileId) {
var globalInfo = this.loadGlobalInfo();
if (this.isThisGameFile(savefileId)) {
var json = StorageManager.load(savefileId);
this.createGameObjects();
this.extractSaveContents(JsonEx.parse(json));
for (var ii=1; ii<=$gameActors._data.length; ii++) { if ($gameActors._data[ii] && $gameActors._data[ii]._characterName === "") { delete $gameActors._data[ii] }}
this._lastAccessedId = savefileId;
return true;
} else {
return false;
}
};
and drop it into the plugins directory, maybe call it something like "fix_save_games_corrupted_by_itemcore.js" :P
(Note: the first six lines, and last six lines, are all just the original version from the MV runtime)
This spoiler contains actual answers to questions, but I think the above solution is better.
Spoiler (click to show/hide):
I have to add a custom script line ONLY the first time I include a new character that was added to the party in version 13?
And all newer releases, for anyone who started a game in 0.12 or 0.13.0.
Which would mean before Sylvia in the Emerald Forests and before Fionna and the Steampunk Mech in Mount Gem?
Yes. Should be safe to initialize both Fionna and the Mech at the start of Fionna's section of the story (rather than when the Mech is added to the party)
I am not sure what you mean by "Nature".
Er. I meant "Fairy". I misread the data files.
Also. Let me make sure I understand how this script works. So for Fionna for example, i would substitute her actor number making it:
- Code: Select All Code
$gameActors._data[15] = new Game_Actor(15)
Correct?
Yes, except that her actor number isn't 15. (Fionna is 25)
edit: fix errors in code