MV States having infinite duration. Yanfly confliction?

Hey there. Broccoli here. Still quite new to RPG maker.

Recently I've run into a sort of bug where states seem to last infinitely. Recently I've begun messing around with Yanfly plugins, and while I don't want to point fingers, I don't understand what seems to be causing the issue because I've NEVER had this problem until recently.

I should note that...
1. I have made sure all my Yanfly plugins were in the right order
2. I have made sure to set durations on my states. For example, I have a state called constriction (lasting 3-4 turns) and another called Paralysis (lasting 1-4 turns). but during the playtest, they lasted 8+ turns.
3. Yes, I made sure to save and start a new game for the playtest and I even tried to verify the game file integrity.

If anyone would send help my way I'd be very appreciative. Maybe there's something I'm missing but it sounds like something's conflicting with the Yanfly plugins.

Edit: I'm not saying Yanfly's absolutely to blame. And I'm not ruling out the possibility that I went wrong somewhere. Maybe I used some poor word choice, but I was trying to avoid trouble with it. But also stop assuming that because someone might think that plugins might be a problem that they're playing the blame game.
I've begun messing around with Yanfly plugins, and while I don't want to point fingers
The YEP plugins are meticulously maintained. The chance of it being a problem with YEP instead of user error is pretty low.

That being said, people can't help you based on speculation alone. You should post:
  1. A screenshot of your plugin order. Saying "Yanfly plugins" could mean any number of plugins that you have installed and does not give adequate information for troubleshooting.
  2. Screenshots of the relevant state(s) in the editor.
  3. Any additional specific troubleshooting info beyond "X state lasts Y turns instead of Z turns."
Help us help you.
Moved to: Plugin Support

I'm not sure what you mean by saying "I don't want to point fingers" - I would caution against implying creators have made faulty products, unless you can find evidence of a lot of other people with the same issue.

I personally am more inclined to help people who admit that the fault is most likely at their end.
Moved to: Plugin Support

I'm not sure what you mean by saying "I don't want to point fingers" - I would caution against implying creators have made faulty products, unless you can find evidence of a lot of other people with the same issue.

I personally am more inclined to help people who admit that the fault is most likely at their end.
1. I am still new to the forums. sorry If I stuck it in the wrong place.

2. I am NOT making accusations. I am fine if I made a up. But your words imply the words of someone who takes offense easily when I tried to remain as neutral as possible. I'm not "Admitting" nor "accusing" anything because IDK what the problem is.

I'm not saying it absolutely was Yanfly, but I never had the problem until I started messing with Yanfly and as such, I'm just leaving the possibility open. If it's my fault, I am A-okay with that, and in fact would probably be more relieved since it's likely an easier fix.
The YEP plugins are meticulously maintained. The chance of it being a problem with YEP instead of user error is pretty low.

That being said, people can't help you based on speculation alone. You should post:
  1. A screenshot of your plugin order. Saying "Yanfly plugins" could mean any number of plugins that you have installed and does not give adequate information for troubleshooting.
  2. Screenshots of the relevant state(s) in the editor.
  3. Any additional specific troubleshooting info beyond "X state lasts Y turns instead of Z turns."
Help us help you.
1625762032403.png
1. IDK what you expect of me, but for example: this Paralysis has been set to 1-4 turns, action end, with the no movement restriction. Now prior to this, I had not only set up a custom character (via steam DLC) but then used Yanfly plugins to make that character also a floating enemy.
Previously, this along with other states would work for their set duration just fine, but as I playtested the battle against the character, that state among others lasted to infinity. Save for the frozen state when I used a fire move against it, as I set it to remove the state right here.
1625762563275.png
As for my plugins, This is all I have so far. According to my friend, you must order them in the order of the Yanfly Website.
1625762705198.png

3. Again, IDK what else you expect, but IDEK how to troubleshoot in RPGMMV. The most I've tried is ensuring that old saves weren't overriding anything and verifying the integrity of game files and obviously saving. If there's a way to troubleshoot further, I'd be happy to give it a go.
You are being super defensive, which is both uncalled for and doesn't make you look good. A logical approach is to presume you have made a mistake, since you're using plugins of a professional caliber that have been around for years, and they surely don't have a basic error in them.

To me, the problem is likely that you have a paralysis state that prevents actions, but has the duration count down in actions. You should try changing that to Turn End instead of Action End.
This is a known (and reported) bug with battle engine core that hasn't been fixed, and probably never will be. In stock MV, actors in a 'don't act' state will still decrement states that wear off on 'action end' (even if they don't have an opportunity to attack). However, this is broken in battle engine core; the state never decrements its duration, turning these 'don't act' states into ones that effectively softlock a character, regardless of the duration they are set to.

I believe @YoraeRasante has a fix for this issue.


You are being super defensive, which is both uncalled for and doesn't make you look good. A logical approach is to presume you have made a mistake, since you're using plugins of a professional caliber that have been around for years, and they surely don't have a basic error in them.
Please don't condescend to people who are asking for help - particularly new people. In many cases (such as this one), they actually are encountering issues with the existing plugin, and part of keeping a healthy culture on this board is treating new members with respect.
First of all, a reminder to everyone to please assume good faith from other people in the thread. I think a few people have read each others' words the wrong way and it's at risk of blowing up when it really doesn't need to.

YEP Plugins aren't perfect. They are pretty amazing in what they enable, but in a library of 100+ plugins there are a lot of bugs floating around (I've found a few that I've proven via hours of thorough testing but couldn't report because I wasn't a Patron). In this case, it sounds like it was a legitimate bug. In the same breath, most problems with most YEP Plugins have been user error, so asking for more info about your setup @Broccoli_Nyu was the right thing to do.

For a state like this that doesn't have any extra notetags in the Note box (that would, for example, re-apply the state every turn), you could establish whether this is a bug by:
  1. Creating a new, clean project, and adding the plugin to the project (be sure to turn it ON). Create the state in question in that new project, and then do a test with it. If the "bug" still happens, go to Step 2. If not, there's something specific about your project that is causing it (perhaps an interaction with another plugin, or perhaps eventing somewhere that re-applies the state without your being aware of it).
  2. Turn the plugin OFF in the clean project, save, and run the same test scenario. If the "bug" still happens, it is most likely a bug in RPG Maker itself. If it no longer happens, you have established it is indeed a bug with the Plugin.
The proposed solution of "Make it Turn End instead of Action End" sounds good to me though, and I think that would avert the bug and get your state working correctly. Is there any reason it would be problematic to use Turn End rather than Action End?
First of all, a reminder to everyone to please assume good faith from other people in the thread. I think a few people have read each others' words the wrong way and it's at risk of blowing up when it really doesn't need to.

YEP Plugins aren't perfect. They are pretty amazing in what they enable, but in a library of 100+ plugins there are a lot of bugs floating around (I've found a few that I've proven via hours of thorough testing but couldn't report because I wasn't a Patron). In this case, it sounds like it was a legitimate bug. In the same breath, most problems with most YEP Plugins have been user error, so asking for more info about your setup @Broccoli_Nyu was the right thing to do.

For a state like this that doesn't have any extra notetags in the Note box (that would, for example, re-apply the state every turn), you could establish whether this is a bug by:
  1. Creating a new, clean project, and adding the plugin to the project (be sure to turn it ON). Create the state in question in that new project, and then do a test with it. If the "bug" still happens, go to Step 2. If not, there's something specific about your project that is causing it (perhaps an interaction with another plugin, or perhaps eventing somewhere that re-applies the state without your being aware of it).
  2. Turn the plugin OFF in the clean project, save, and run the same test scenario. If the "bug" still happens, it is most likely a bug in RPG Maker itself. If it no longer happens, you have established it is indeed a bug with the Plugin.
The proposed solution of "Make it Turn End instead of Action End" sounds good to me though, and I think that would avert the bug and get your state working correctly. Is there any reason it would be problematic to use Turn End rather than Action End?
I would like to say that I have since found the problem, and yes, it was largely an issue of turn vs action end.

I would also like to say that I am not here to sh*t on Yanfly. I think the fellow's made some great plugins. And I am fully willing to admit when I'm at fault. In fact, I'm happy that it was me and not the plugin, because that means it's an easier fix.
But when I don't know what the problem is and people are basically telling me to "fess up" it comes off as "Yanfly could never have any problems! how dare you!" and that's where I have an issue.

Again, I'm not here to throw shade at the guy. I think Yan has made some great stuff. Bought the whole pack even. But even the greatest of us can still screw up or have room for improvement, and as such, I was keeping the possibility open.
Nobody noticed on screenshot that state paralisys have set duration in turns, but instead of Turn End is set Action End?

Original thread: https://forums.rpgmakerweb.com/threads/states-having-infinite-duration-yanfly-confliction.138247/