MZ EliBook Plugin breaks the game?

I'm trying to use Message Actions, and Pixel Perfect, and to do that- I needed EliBook as well.
But every time I add the plugin, regardless of what order, it just completely breaks the game. It doesn't load, it just an instant error.

I'm also trying to use VisuStella plugins (core engine & message core) and when they're enabled it adds another error line, so I'm assuming aside from whatever the issue is, it's also not compatible?

I got curious and looked at the EliBook code in brackets, and theres a good chunk of code thats all blue-d out, like its not registering properly. But every time I try to tweak it or beautify it to get the code to look right, it either does nothing and the error remains, or it starts prompting me to download the plugin again as if it's not even there.

Is there something wrong with the EliBook plugin or is this something on my end? How do I fix this?

Before turning on visustella plugins:
1778716931581-png.366243


After turning on visustella plugins
1778717339051.png
@Eliaquim is here an active so you can ask him directly.

Make sure you are using the MZ version and not MV.

Also, the block(s) of code that is "commented" is likely the plugin parameters.
Hi there!

As I can see on the error log, the problem has nothing to do with Eli Book or any of my or orther plugins at all.

TLDR:
Your game has an actor with a class ID that does not exist on your class database on the editor.

Long explanation:

The error says: "cannot read property expParams of null", and it point out to the rmmz_objects.js file, line 4165.

This method of the default code:
JavaScript:
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
    );
};

more specifically these lines:
JavaScript:
const c = this.currentClass();
const basis = c.expParams[0];

It says that expParams cannot be read because "c" is null. C is the current class data of the actor:
JavaScript:
Game_Actor.prototype.currentClass = function() {
    return $dataClasses[this._classId];
};

This is returning null, because the class id of the actor does not exist on your RPG Maker project database. So, your actor is using a class id:
1778719941403.png


That does not exist here:
1778719968049.png


Therefore, problem is not on any plugin code. Your game is trying to access the the class of this actor and it is failing. Now, where this is happen I don't know. But on your log error screenshots, one of them shows the Visustella Core plugin. Maybe that plugin has some configuration that is trying to access the codes that point out to the code I shown to you above.
Hi there!

As I can see on the error log, the problem has nothing to do with Eli Book or any of my or orther plugins at all.

TLDR:
Your game has an actor with a class ID that does not exist on your class database on the editor.

Long explanation:

The error says: "cannot read property expParams of null", and it point out to the rmmz_objects.js file, line 4165.

This method of the default code:
JavaScript:
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
    );
};

more specifically these lines:
JavaScript:
const c = this.currentClass();
const basis = c.expParams[0];

It says that expParams cannot be read because "c" is null. C is the current class data of the actor:
JavaScript:
Game_Actor.prototype.currentClass = function() {
    return $dataClasses[this._classId];
};

This is returning null, because the class id of the actor does not exist on your RPG Maker project database. So, your actor is using a class id:
View attachment 366245

That does not exist here:
View attachment 366246

Therefore, problem is not on any plugin code. Your game is trying to access the the class of this actor and it is failing. Now, where this is happen I don't know. But on your log error screenshots, one of them shows the Visustella Core plugin. Maybe that plugin has some configuration that is trying to access the codes that point out to the code I shown to you above.

Ah... yeah, this was it. LOL
I didn't realize I forgot to playtest after I made some changes to the database, and then I added the plugin, so I figured it must have been that since it was the last thing I added. But nope- that was all an error on my side, this fixed it.
Sorry for the mix-up- thanks for the help!

Original thread: https://forums.rpgmakerweb.com/threads/elibook-plugin-breaks-the-game.183601/