Game randomly started to crash!?

Good Evening

My current project was going well, but I wanted to manipulate TP different. So i installed YEP_EnhancedTP which worked perfectly allowing me to change how the TP was calculated.

Ive loaded my project today and now whenever I am attacked by an enemy, I get this Error??
Capture.PNG
It worked perfectly yesterday & unfortunately my JS knowledge isnt able to help me here !

I have also tested turning off the TP plugin & again, the game works fine, but the TP plugin isnt mentioned in the error message?

I would greatly appreciate anyone's help on how to fix this!

Thanks
Fostertute
Did you start a new game? And what version of your project do you have? Many of Yanfly's plug-ins require the newest version of MV for the project, so you will want to check your core files and see what version they are.
Did you start a new game? And what version of your project do you have? Many of Yanfly's plug-ins require the newest version of MV for the project, so you will want to check your core files and see what version they are.

I simply play tested the game as I did yesterday. I am running version 1.6.1.

I think its odd that it only happens when the Enemy attacks my hero & not when I attack them ?
Otherwise there's a possibility it's a formula problem, either in the attack skill or in the Enhanced TP plugin settings. From the error, and since it works OK without that plugin, I'd imagine it's getting an unexpected (probably non-numerical) value when it tries to eval the TP gained on hit.

Plugin link (in case you picked up an old version elsewhere): http://yanfly.moe/2016/01/08/yep-55-enhanced-tp/
Otherwise there's a possibility it's a formula problem, either in the attack skill or in the Enhanced TP plugin settings. From the error, and since it works OK without that plugin, I'd imagine it's getting an unexpected (probably non-numerical) value when it tries to eval the TP gained on hit.

Plugin link (in case you picked up an old version elsewhere): http://yanfly.moe/2016/01/08/yep-55-enhanced-tp/

Thanks for your input, i have indeed changed a formula in the TP plugin, but it was copied from a predefined formula already there, i just moved it. Attacking with player characters (so same attack enemy uses?) works fine & gains TP as intended......

I will go and tinker with said formula & check the skills.
Success!!!! @caethyril , you helped a lot thank you! One of the formulas in a Mode i was using had no value at all & not the default 0.

Thanks again !!! Now back to my project.

Original thread: https://forums.rpgmakerweb.com/threads/game-randomly-started-to-crash.103539/