Help with error code!!!

Hi

Earlier, I was trying to use Rexal’s animated enemies plugin: Animated Enemies | RPG Maker Forums

But I hit an error code of:

TypeError

Cannot read property ‘expParams’ of null

So I gave up on it and removed it. But now I keep getting the same error message again and again whenever I try to start a battle. I’ve removed the plugin completely, but still same result.

Does anyone know why? I really don’t want to find I’ve wrecked my project somehow.

This is the log from pressing F8:

rmmz_managers.js:2036 TypeError: Cannot read property ‘expParams’ of null
at Game_Actor.expForLevel (rmmz_objects.js:4157)
at Game_Actor.currentLevelExp (rmmz_objects.js:4177)
at Game_Actor.initExp (rmmz_objects.js:4169)
at Game_Actor.setup (rmmz_objects.js:4072)
at Game_Actor.setup (HIME_ActorBattleCommands.js:468)
at Game_Actor.initialize (rmmz_objects.js:4039)
at new Game_Actor (rmmz_objects.js:4024)
at Game_Actors.actor (rmmz_objects.js:5230)
at UltraDynamicCondition_ActorComponent.checkExists (SRD_UltraBase.js:920)
at UltraDynamicCondition_ActorComponent.start (SRD_UltraBase.js:907)

EDIT: Testing has found the error code disappears when I disable SRD’s Hud Maker plugin. But it’s never been a problem before, so I don’t understand why it’s acting up now and I don’t want to lose it.

Does it happen from battle test, or loading a savefile, or everytime in any situation? Have you deleted an actor or a class recently, maybe?

These are the places where expParams are used/defined by default.

And this is the definition for expForLevel, which is where the error is happening.

Game_Actor.prototype.expForLevel = function(level) {
    const c = this.currentClass();
    const basis = c.expParams[0];
    const extra = c.expParams[1];
    const acc_a = c.expParams[2];
    const acc_b = c.expParams[3];
    return Math.round(
        (basis * Math.pow(level - 1, 0.9 + acc_a / 250) * level * (level + 1)) /
            (6 + Math.pow(level, 2) / 50 / acc_b) +
            (level - 1) * extra
    );
};

Cuz yeah weird thing is that it sounds like completely unrelated to anything.