If my suspicions are right, based on the natural tendency of default functions in the RM series, you were supposed to pass a character (visible creature on the map) that is already related to a battler (the invisible part holding all of the stats like HP and the like) but it could not be found as a property of that character. It's curious that only the combination of both plugins causes such an error.
I think you're going one step too far in your bughunting.
The original error message is basically "cannot access battler of undefined".
But that does NOT mean that the battler itself is undefined, but that its parent object is undefined.
So basically you're missing an entire actor, not just a battler.
And that could be for a lot of reasons - like the OP having removed the entire starting party, or one of the plugins expecting the default four actors and some of them were removed - or even that the actors were deleted on the actor tab but not removed from the starting party in the system tab of the database.
and I've read nothing in the answer above to indicate that those possibilites were checked.
no problem - I just like to systematically check everything when bughunting, and if something was not explicitly stated then I always check - you wouldn't believe the hundreds of times where a simple cause was overlooked because everyone jumped directly to the complex solutions.
And if that code is directly copied without typo's from where the error is, then I don't know if anyone other than moghunter can write a compatibility patch.
I know from his VXAce scripts that moghunter sometimes uses rather strange data definitions and optimizations, and some parts of that code is a prime example for that - you would need someone really experienced with Mog's code to write a compatibility patch...
I don't think either Moghunter or Restart are active anymore, and I feel like the responsibility of a compatability fix should be on the dev of your inventory plugin since he's charging for it.
For that matter, how is anyone supposed to see where the incompatibility is since the inventory plugin is paywalled?
Holy sweet mother Theresa I figured it out on my own! All I needed to do was add // to cancel the search of the battler, everything works as it should and disaster diverted! I just want to say a massive thank you to everyone who gave me some advice and help in trying to solve this issue. You guys are all awesome!I can't believe It was that simple?... I hope this helps anyone else using the two plugins combined.
var _mog_toolSys_sprtChar_setCharacter = Sprite_Character.prototype.setCharacter;
Sprite_Character.prototype.setCharacter = function(character) {
_mog_toolSys_sprtChar_setCharacter.call(this,character)
//if (this._character.battler()) {this._imgIcon = ImageManager.loadSystem("IconSet")};
thank you so much! was trying to figure this out
As this thread was previously solved, it is now closed. Should OP need the thread reopened, it can reported to let us know. Thank you!