Need help with a blank menu in combat when returning from skills.

I am having a bit of trouble with a minor, but annoying bug that i've been unable to identify.
Basically: Whenever I enter the "Skill" menu during combat, and then return; It leads me to a blank menu, from which I have to return again to show up the Fight/Escape menu, so I can then return to the normal Attack/Skill/Item menu.
This bug only seems to affect the Skill menu in combat. The Item menu is unafected.

In this image I am in the normal menu:
1642005236581.png

I can enter the menu and things work normal so far:
1642005475869.png

...but if I return from there, it leads me to this blank menu. Pressing up and down makes sounds but nothing happens and pressing the confirm button does nothing. Pressing the right key skips to the next actor's turn, and pressing left or the return button sends me to the Fight/Escape menu.
1642005508578.png


I am using the Yanfly Ace Battle system. Along with a variety of scripts. But even after taking a look at the scripts I've been unable to determine what's causing the bug.
Has this happened to someone else before? I would really like to know so I can fix it.
It's not a particularly game-breaking bug, but leaving this unfixed would look really bad.

Thanks anyone who took the time to read.
this is most likely a compatibilityproblem between two of your battlescript.
and that means you really need to check every one of them by temporarily disabling it and then testing with a new game if it still happens or not.
Did you make any changes or customizations to any of the scripts? And what are the other scripts?
One of them or you has changed the play flow.
It sounds like the skill ok or/and cancel is not reopening the actor command window or processing the command for the skill.
So we need to know what other scripts you have or you can test by removing each script one at a time until the issue is resolved and then the culprit should be the one you just removed.
Did you make any changes or customizations to any of the scripts? And what are the other scripts?
One of them or you has changed the play flow.
It sounds like the skill ok or/and cancel is not reopening the actor command window or processing the command for the skill.
So we need to know what other scripts you have or you can test by removing each script one at a time until the issue is resolved and then the culprit should be the one you just removed.
this is most likely a compatibilityproblem between two of your battlescript.
and that means you really need to check every one of them by temporarily disabling it and then testing with a new game if it still happens or not.
Thank you.
I tried moving around the Yanfly Ace battle engine script below and over other scripts. And I seem to have a lead.
Putting the script below Roninator2's "Display Damage Values" seems to fix the issue. (what a coincidence lol)
I'll just rearrange the scripts.
Thanks a lot to both of you.
Checking on that and Yanfly's script and mine both overwrite a few methods in Scene_Battle so yes put mine above yanfly's. Seems to work like that.
Checking on that and Yanfly's script and mine both overwrite a few methods in Scene_Battle so yes put mine above yanfly's. Seems to work like that.
Doing this seems to surfaced a new problem with script compatibility:

"Display damage values" Stops working correctly when under "Galv's Animated Battlers"
"Galv's Animated Battlers"
script breaks when put below "Yanfly's Ace battle engine"

lets call them DDV, GAB, and YAE for short.

If I put them like this:
-DDV
-YAE
-GAB
The menu bug is fixed but DDV stops working.

If I put them like this:
-GAB
-DDV
-YAE
Then DDV works again and the menu is still fixed, but now breaks GAB by displacing the actor sprites.

If I put them like this:
-YAE
-GAB
-DDV
Then both GAB and DDV work, but then the menu bug comes back.

I was able to confirm that these 3 scripts are the ones conflicting with each other.
Sorry if maybe this is not something you can help with, but I thought it was important enough to mention.
If I put them like this:
-YAE
-GAB
-DDV
Then both GAB and DDV work, but then the menu bug comes back.
The comment out or remove the last three methods in my script.
Making Scene_Battle look like this.
Ruby:
class Scene_Battle
  attr_reader  :enemy_window
  def target_window_index
    begin
    @enemy_window.enemy.index
    rescue
      return -1
    end
  end
end
I'll add in a check to not run that code if yanfly battle engine is used
*done
The comment out or remove the last three methods in my script.
Making Scene_Battle look like this.
Ruby:
class Scene_Battle
  attr_reader  :enemy_window
  def target_window_index
    begin
    @enemy_window.enemy.index
    rescue
      return -1
    end
  end
end
I'll add in a check to not run that code if yanfly battle engine is used
*done
This worked perfectly!
All three scripts are functioning and the menu bug is gone as well.

Thank you so much,,, I literally would've never figured it out by myself.
Moved to: RGSSx Script Support

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-a-blank-menu-in-combat-when-returning-from-skills.143883/