MV Yanfly Selection Control (Interesting Question/Find) *Important Read

Okay. Something was somehow jiggered in my test project, because the second one I made acts like yours. I'll keep looking into it.
Ok. That oddly makes me feel a lot better. If it was entirely from my project then I was thinking maybe when I was testing out upgrading the .pixi and other files awhile back may have messed up how this functioned. But I was pretty sure that I reverted most of it back. My core project files MIGHT still have something different than the original. I just am so brain-dead fried from spending so many hours testing this out. I thought I was going insane.
I got it.

Yanfly tied clearing the selection cache to the battler refresh, but going to the next actor doesn't call a refresh.

Add this to your Selection Control plugin (or make a new plugin with it, whatever):
Code:
var origSetActionState = Game_Battler.prototype.setActionState;
Game_Battler.prototype.setActionState = function(actionState) {
   origSetActionState.call(this, actionState);
    if (actionState == "inputting")
        $gameTemp.clearSelectionControlCache();
};
I got it.

Yanfly tied clearing the selection cache to the battler refresh, but going to the next actor doesn't call a refresh.

Add this to your Selection Control plugin (or make a new plugin with it, whatever):
Code:
var origSetActionState = Game_Battler.prototype.setActionState;
Game_Battler.prototype.setActionState = function(actionState) {
   origSetActionState.call(this, actionState);
    if (actionState == "inputting")
        $gameTemp.clearSelectionControlCache();
};
Works for me on a raw project, but doesn't work for me with my personal project.
I have to go to work in a bit, but I suspect that I can get it fixed easily with the code your provided.

Now that I know I am not going crazy I have discovered other issues similar to this in Mog Hunter plugins and I think 1 or 2 more Yanfly plugins. I'll post those at some point too.
Works for me on a raw project, but doesn't work for me with my personal project.
You might want to just replace the copy of Target Selection in your personal project, since you'd already made edits to it.

Let us know if you run into more problems.
Ah, good one Turan. Not much point in me looking into it further then. 🙂
Ah, good one Turan. Not much point in me looking into it further then. 🙂
Well...maybe I'm wrong?!
Well...maybe I'm wrong?!
You said you got it! 😛
You might want to just replace the copy of Target Selection in your personal project, since you'd already made edits to it.

Let us know if you run into more problems.
Just got home from work, so we can tackle this later. But I used to have a long list of bugs/flaws/memory leaks/optimization problems with many of the major plugins out there.

Some off the top of my head are:

Yanfly Steal/Snatch or Yanfly Extra Drops. One of the two would actually drop the wrong/steal the wrong item. I think the code accidently would do a weapon or armor under certain circumstances.

Yanfly Foot Step Sounds
Certain X/Y coordinates wouldn't trigger the footstep sounds. That one was an easy fix. I think it was like coordinates 3,3 or something like that. I'll have to double check.

Yanfly Battle Core Engine or or Yanfly Core or it was Rpg Maker MV itself.
When using an animation from a skill it would be 2 pixels off to the right. Most people wouldn't notice this cause few frames fill up the entire thing. I often wondered if this was the root cause of the flickering of the first time an animation players in battle. Cause it does load them, but I think cause the pixels are slightly off by a bit from what is played and what is preloaded it still causes the issue since the two images are not equal. Maybe I am wrong at that part.

Moghunter Paty Hud/ MogHunter Battle Hud MogHunter Animated Enemies etc.
There was major optimization problems with all of these and actually quite a few. For example there was a bug that caused the faces to be on a constant loop within the code refreshing it like a 1000+ every few seconds. When I tested it on my older laptops it caused decent lag spikes when I was moving around the maps and doing other things. Same with in battle. Those were fairly easy fixes.

Every mouse system I could find was broken in someway or another. Either going off frame and coming back in. There is one being sold on itch.io, but the cursor is so damn slow that it's not really usable. I was able to take QTouch's Mouse Plugin (which also bugged) and fixed it so I have a very fast cursor that can leave the frame of the window and NOT be the default windows cursor. You know what I mean if you've ever tried using any of them.

The list I had was pretty damn big. I got so frustrated that I began removing as many plugins as I could. It wasn't even the issue with getting them to work with each other. The fact that so many popular plugins contained problems just in themselves made them not really acceptable for commercial projects.

*This was just a few off the top of my head.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-selection-control-interesting-question-find-important-read.165356/