Yanfly's Core Engine and Victory Aftermath Plugin Gives an Error in my Game

So, someone who helps playtest my game says he experiences the bug in this screenshot:

CV Victory Aftermath Bug.png

I can't solve this thing. Please help me out.
The exp bar is crashing the game because the exp gained or held by some actor cannot be represented properly.

I'd double check everything involving exp gain if i were you. Everything from base exp set to enemies to every modifier your actors use. Find out what troop that was, all the states and gear the actors had, and what the player did before the crash if they remember those. Its important to know what steps causes it to happen. I'm assuming its not every troop?

If that's not helpful, share a screenshot of your plugin manager as well.
Specifically this error happens when the drawgauge function tries to draw a gradient using a value that isn't a number. That can happen if the current or max value have been multiplied by something that has no value, is null, doesn't exist, or doesn't contain a number, like an uninitialized variable, or a programming mistake where you end up multiplying the exp value by a state, or an item, or something.
The crash is coming from victory aftermath, but the cause is something else, likely a plugin you're using to change experience gain, or a state that is modifying exp gain in some way.
Thanks for the replies, guys! But I still can't pinpoint where the issue is occurring. Here is my plugin manager:

My Plugin Manager Problem 1.png

My Plugin Manager Problem 2.png
Your yanfly plugins are all out of order and can give weird behaviors. Reorganize them exactly how they appear on Yanfly's website.
So, I put the Yanfly plugins in the proper order this time, but my playtester still receives this error. What should I do?

Apologies for the double post, but I really need help with this, guys, so I am posting this again to get your attention. I have tested the game's Windows build until the ruins/maze, and I didn't encounter that error. But my playtester did at the ruins and even the forest. I can't quite pinpoint what the problem is at all.
I have tested the game's Windows build until the ruins/maze, and I didn't encounter that error. But my playtester did at the ruins and even the forest. I can't quite pinpoint what the problem is at all.
try to collect some more data from the playtester in this case. ask them to start a new file, see if they can find out if they can get the error consistently, have them save the game send you back the copy, and ask them for the exact steps they take to reproduce the error

theres likely something somewhere that does something to mess with the exp gain, but if you cant pinpoint it on your end and they can, youll have a hard time finding it if they dont provide more info on how they get it too do that.

i want to believe that theres something misconfigured somewhere in the project, but you if youve already checked the things suggested earlier it would help having the file to see every relevant bit of data on the actors
So, as I play my playtester's save file, I see that game-breaking and other things are wrong. What is going on here? Could this have something to do with the save files? I also have no issues with my Press Turn Battle plugin working on my very own project, but I do have issues using this plugin on another brand-new project on my computer. I wonder if there is a game-breaking update on the RPG Maker MV developers' side that has made this. Could this be it? Could you let me know what you guys think of this?

I've edited this writing.
I wonder if there is a game-breaking update on the RPG Maker MV developers' side that has made this. Could this be it?
You have the same software that all of us do - what update has there been? 🤣

There hasn't been a change to the core scripts that could affect plugins since 1.6.
You have the same software that all of us do - what update has there been? 🤣

There hasn't been a change to the core scripts that could affect plugins since 1.6.
Oh, yeah? Then what about there being 1) the custom logo plugin, 2) that update where ads advertising RPG Maker things like assets, and 3) the ability to build RMMV games for Linux?

If there wasn't a game-breaking update, then what is going on with my game and plugins? The same plugin works well with my main game playing for me but not my playtester and me using his files. The same plugin won't work with a brand-new, empty project. It only works well on my end and only on my main game.
Oh, yeah? Then what about there being 1) the custom logo plugin, 2) that update where ads advertising RPG Maker things like assets, and 3) the ability to build RMMV games for Linux?
What is wrong with you? Why do you need to spout stuff like "Oh yeah?" like you're proving me wrong, when it just reflects poorly on you?

1 - What custom logo plugin, and what does it have to do with MV's codebase?

2 - Updates to the MV editor software have nothing to do with whether anything was changed in the core scripts for the game.

3 - What about it?

If there wasn't a game-breaking update, then what is going on with my game and plugins? The same plugin works well with my main game playing for me but not my playtester and me using his files.
How could that have anything to do with an MV update? Whatever files you have in your project, including the core scripts, are what get exported when you deploy the game. Nothing changes when MV updates unless you manually change it in your existing projects.

The only thing that's been changed since 1.6 is one of the last updates lowered the NW.js version by, like, one or two - you can easily look up specifics in the update threads. But that won't affect any plugins unless they weren't written for standard MV, and specifically took advantage of functions in a higher version of NW.js.

It also couldn't cause the game to behave differently on another person's computer, the NW.js for the game is packed with it, not dependent on the system.

Haven't you been using MV long enough - and don't you have, like, actual degrees in programming stuff? - to understand this functionality?

Have you looked at what version of the core scripts your "main game" is running? What errors does your plugin throw in a new test project, and how have you approached troubleshooting them?
There are no errors printed on the debug console of my plugins. I can use both versions using my PTB plugin, which is still the same. The plugin works in my main game but not in my blank project. I honestly never encountered something like this before. I've worked on it just now and can't figure out the problem. I have no idea. Please help me out.
Please help me out.
you havent addressed a "few" important bits. particularly:
Have you looked at what version of the core scripts your "main game" is running? What errors does your plugin throw in a new test project, and how have you approached troubleshooting them?
Thats necessary information to give.

that aside,
There are no errors printed on the debug console of my plugins
The plugin works in my main game but not in my blank project
so in the new project, the plugin isnt working somehow, but also isnt printing errors in the log or crashing the game?
and there arent old saves being loaded, right? youre starting a new file in your personal playtests, and your playtester when they got a new deployment of the game didnt try to transfer their old one?
you havent addressed a "few" important bits. particularly:

Thats necessary information to give.
What is meant by "core scripts"? Is it things like rpg_managers? If so, how do I check their versions?
that aside,


so in the new project, the plugin isnt working somehow, but also isnt printing errors in the log or crashing the game?
and there arent old saves being loaded, right? youre starting a new file in your personal playtests, and your playtester when they got a new deployment of the game didnt try to transfer their old one?
All correct!

I've used now the same plugin for my older project, which has worked! I now really think that something is going on with starting brand-new projects. Someone who has gotten my plugin and used it for a brand new project also has issues, whereas all the past people who have used this PTB have stated that it works fine.
If so, how do I check their versions?
its the very first thing shown at the top of the files when you open them. 1.6.2 is the latest for MV

make sure that the versions are the same between your main project and your test projects, and to take it a step further, if they are the same, make sure that you didnt unintentionally make an edit to them at some point. compare the line count or something.

although, your deployment you gave to your tester should be running a direct copy of the main projects's files, and that deployment is crashing the game while your test projects arent crashing at all. i wouldnt quite make the assumption that the two issues are related just yet
its the very first thing shown at the top of the files when you open them. 1.6.2 is the latest for MV

make sure that the versions are the same between your main project and your test projects, and to take it a step further, if they are the same, make sure that you didnt unintentionally make an edit to them at some point. compare the line count or something.
I've checked just now. The versions for both the current project and the newest blank project are 1.6.2 in all the core files, and both versions have the same amount of lines among all the core files between the two projects.

This is all so weird! I have never encountered such a strange problem!
Does the PTB rely on Yanfly's battle core or some other core plugin?
Does the PTB rely on Yanfly's battle core or some other core plugin?
It doesn't. I've checked.
Hi guys! I just wanted to let you know that I have fixed all the problems there on that day! I must have worked 4-5 hours that day and was exhausted. I have even fixed some other problems. Here is what was wrong with them:

-At the game crashed at a battle, it was because I had added personal code to Yanfly's JP plugin and messed it up. I forgot (or something) to call the change class function's superclass, get it? I have added it to the middle this time, and it has worked. The issue happened whenever I changed classes by merging my actor with the monster and then went to battle. There was no issue if I went to battle without ever changing the class or changing the class but didn't go to battle. I don't know how I could have forgotten to include the superclass. I just overrode it, causing the function to break or have unexpected behavior.

-At the PTB plugin, I have messed up the settings. It wasn't even a bug. It is my plugin, and yet I forgot how it works. Silly me! I am a forgetful person, too.

-I also fixed my Bestiary issues by changing the settings. It is Skotty's STV Bestiary.

But thanks to everyone who has contributed to this thread (everyone who replied to this thread other than me, of course)!

What do you guys think about this?
What do you guys think about this?
I think the change class function doesn't have a superclass, because it's a function, not a class 😛

Game_Actor, which changeClass() is a method of, does have a superclass but I don't see why you'd access it because changeClass() doesn't exist as a method of Game_Battler.

Congrats on fixing your code.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-core-engine-and-victory-aftermath-plugin-gives-an-error-in-my-game.171686/