YEP - Class Base Parameters - How to properly set specific EXP required?

I thought I had finally figured out how to set the needed EXP for each level individually after much trial and error, but it's not working properly for a few reasons. First, unless the EXP gained exactly equals or exceeds the amount needed in my Notes code, the character won't gain a Level. Second, any EXP gained over how much is necessary will cause the "To Next Level" to display an equal negative value. Third, if a character starts at any Level other than 1, the game will crash when trying to view their stats - but only if I have Status Menu Core enabled, otherwise it seems to behave as described prior.

Spoiler: Screenshots I took
Somehow not leveling.pngNegative to Next Level - Top is Wrong.pngCrash.png

Here's what I put in the Notes:
Spoiler: My Notetag code
Code:
<Custom exp Formula>
   if ($gameActors.actor(1).level === 1) {
     value = 7;
   } else if ($gameActors.actor(1).level === 2) {
     value = 16;
   } else if ($gameActors.actor(1).level === 3) {
     value = 24;
   } else if ($gameActors.actor(1).level === 4) {
     value = 63;
   } else if ($gameActors.actor(1).level === 5) {
     value = 110;
   } else if ($gameActors.actor(1).level === 6) {
     value = 230;
   } else if ($gameActors.actor(1).level === 7) {
     value = 350;
   } else if ($gameActors.actor(1).level === 8) {
     value = 500;
   } else if ($gameActors.actor(1).level === 9) {
     value = 700;
   } else if ($gameActors.actor(1).level === 10) {
     value = 900;
   } else if ($gameActors.actor(1).level === 11) {
     value = 1100;
   } else if ($gameActors.actor(1).level === 12) {
     value = 1500;
   } else if ($gameActors.actor(1).level === 13) {
     value = 2000;
   } else if ($gameActors.actor(1).level === 14) {
     value = 2500;
   } else if ($gameActors.actor(1).level === 15) {
     value = 3000;
   } else {
     value = 4000;
   }
I'm sure I screwed up somewhere, but it took about two hours of searching and trial and error just to get to this point. Is it even possible to get the results I want, and if so, how?
I can reproduce the errors with your code and corect part of them using the following :
Hope it's help.
Or maybe you want to scale the exp curve of all actors to the level of actor 1 ?

Code:
<Custom exp Formula>
   if (level === 1) {
     value = 7;
   } else if (level === 2) {
     value = 16;
   } else if (level === 3) {
     value = 24;
   } else if (level === 4) {
     value = 63;
   } else if (level === 5) {
     value = 110;
   } else if (level === 6) {
     value = 230;
   } else if (level === 7) {
     value = 350;
   } else if (level === 8) {
     value = 500;
   } else if (level === 9) {
     value = 700;
   } else if (level === 10) {
     value = 900;
   } else if (level === 11) {
     value = 1100;
   } else if (level === 12) {
     value = 1500;
   } else if (level === 13) {
     value = 2000;
   } else if (level === 14) {
     value = 2500;
   } else if (level === 15) {
     value = 3000;
   } else {
     value = 4000;
   }
I currently intend to set up at least one class' EXP curve differently. That aside, it doesn't crash or ave the same problems my attempt did, though I see that rather than setting the amount they need to gain next, it seems to set what their TOTAL EXP needs to be, rather than their "to next level." While I can work around that by changing the values accordingly, I've discovered a new problem: This doesn't respect the actor's set Level cap, nor the one set in Yanfly's Core Engine - I had Harold's set to 30, and they'd jump to Level 99 if they reached or exceeded however much was needed for Level 30. I also tested this with setting required EXP for a level over 30, and it behaved the same.
According to your notetag this is normal.

at lvl 15 you need 3000 total exp to level up.
at lvl 16 you need 4000 total exp to level up.
at lvl 17 you need 4000 total exp to level up. But you already have 4000, this is the same value than you needed at previous level. So the character perform an infinite level up since lvl max.

When I try on my side, spamming an event that give +500exp, level stop at 30.

re-write your values properly and make sure that the total amount of xp you need is never the same than the previous lvl.
The issue is I don't know what the "proper" way is at this point.
Code:
<Custom exp Formula>
   if (level === 1) {
     value = 7;
   } else if (level === 2) {
     value = 23;
   } else if (level === 3) {
     value = 47;
   } else if (level === 4) {
     value = 110;
   } else if (level === 5) {
     value = 220;
   } else if (level === 6) {
     value = 450;
   } else if (level === 7) {
     value = 800;
   } else if (level === 8) {
     value = 1300;
   } else if (level === 9) {
     value = 2000;
   } else if (level === 10) {
     value = 2900;
   } else if (level === 11) {
     value = 4000;
   } else if (level === 12) {
     value = 5500;
   } else if (level === 13) {
     value = 7500;
   } else if (level === 14) {
     value = 10000;
   } else if (level === 15) {
     value = 13000;
   } else if (level === 16) {
     value = 17000;
   } else if (level === 17) {
     value = 21000;
   } else if (level === 18) {
     value = 25000;
   } else if (level === 19) {
     value = 29000;
   } else if (level === 20) {
     value = 33000;
   } else if (level === 21) {
     value = 37000;
   } else if (level === 22) {
     value = 41000;
   } else if (level === 23) {
     value = 45000;
   } else if (level === 24) {
     value = 49000;
   } else if (level === 25) {
     value = 53000;
   } else if (level === 26) {
     value = 57000;
   } else if (level === 27) {
     value = 61000;
   } else if (level === 28) {
     value = 65000;
   } else if (level === 29) {
     value = 65535;
   } else {
     value = 69535 + (4000 * (level-30));
   }
</Custom exp Formula>
I also tried writing out every level, and only up to 30, and the result is the same: Level caps are ignored and they can reach 99.

EDIT: I actually tried Yanfly's own level code verbatim, which I had originally utilized as a base; it causes actors to ignore set Level caps (whether on the Actor themselves or through Core Engine), as well.
So it looks like the issue is, oddly enough, Yanfly's Core Engine itself - whatever I have in the plugin's settings is what will always be adhered to, without exception, rather than the MV editor's settings also being considered.

Original thread: https://forums.rpgmakerweb.com/threads/yep-class-base-parameters-how-to-properly-set-specific-exp-required.120609/