YEA Ace Battle Engine - Revert Battle window, and enemy selection to ACE default

The title pretty much says it all.

I mainly got this script, because of what is adds to YEA's Visual Battlers. I love the script in general, but would like to revert the battle window (bottom window), and the enemy selection style back to RMVXA's defaults, as it just doesn't feel right for my desired game style.

I'm a Ruby scripting noob, and I see no easily identifiable options to disable these particular overrides.

If you need more info, let me know. Any help would be greatly appreciated. 🙂

the original script is here: YEA - Ace Battle Engine Github

Custom scripts in use:
YEA - Ace Core Engine v1.09
YEA - Ace Battle Engine v1.22
YEA - Visual Battlers v1.01
Lone Wolf - Gamepad Extender v1.1
Zeus81 - Fullscreen++ v2.2
You can just comment out that section in Ace battle engine.
Hopefully no errors occur.
Line 1759
Thanks for the help. Unfortunately, commenting that line didn't work. After that, it complained about the end on line 1937. Commenting that out, caused it to error on other stuff inside the block.

As a test (and in case it was actually what you meant), I tried to remove that entire block, but on a test battle, the moment I chose to attack, I got an error : Script 'Window_Base' line 472: NoMethodError ocurred. undefined method 'each_with_index' for nil:NilClass

Edit: In all honesty, I can deal with the new layout of the battle window, if it's too much trouble. The big part is what you're shown, when selecting enemies to attack, or cast skills on.

With ACE defaults, it opens up a window at the bottom, with enemy names that you can select. With this engine, it removes that window entirely, adding the enemy name to the top of the game window, and forcing you to cycle left and right in order to choose between them.

To me, this isn't very intuitive.
commenting that line didn't work.
You misunderstand. I wasn't saying to comment out that line, I was saying to comment out that entire class.
That's why I also temporarily removed the entire section, because I wasn't sure whether you meant the line, or the class. Removing the class resulted in the error in my last post.
Very well. Not as easy as I thought.
I'll see how much needs to change and let you know.
What's in yanfly battle engine that you need?
Mainly the effects it adds to actors in the side view battle system. Things like sounds, and visual effects, when actors take hits, or have items/skills used on them, as well as the popups that appear near actors and enemies that show damage, status effects, and the like. Without these few extras, the side view battle system seems incomplete to me.

If you want, i can create a video demo showing the differences, and add explanations into the test battle scenes.

Edit: I love the script overall, and there's more that it does that I like, but would just like those two features reverted.
Set yanfly battle script back to normal. Add this below.
Spoiler: Yanfly battle status - default status
Ruby:
#==============================================================================
# ** Window_BattleStatus
#------------------------------------------------------------------------------
#  This window is for displaying the status of party members on the battle
# screen.
#==============================================================================

class Window_BattleStatus < Window_Selectable
  def initialize
    super(0, 0, window_width, window_height)
    refresh
    self.openness = 0
  end
  def window_width
    Graphics.width - 128
  end
  def window_height
    fitting_height(visible_line_number)
  end
  def visible_line_number
    return 4
  end
  def item_max
    $game_party.battle_members.size
  end
  def refresh
    contents.clear
    draw_all_items
  end
  def draw_item(index)
    actor = $game_party.battle_members[index]
    draw_basic_area(basic_area_rect(index), actor)
    draw_gauge_area(gauge_area_rect(index), actor)
  end
  def basic_area_rect(index)
    rect = item_rect_for_text(index)
    rect.width -= gauge_area_width + 10
    rect
  end
  def gauge_area_rect(index)
    rect = item_rect_for_text(index)
    rect.x += rect.width - gauge_area_width
    rect.width = gauge_area_width
    rect
  end
  def gauge_area_width
    return 220
  end
  def draw_basic_area(rect, actor)
    draw_actor_name(actor, rect.x + 0, rect.y, 100)
    draw_actor_icons(actor, rect.x + 104, rect.y, rect.width - 104)
  end
  def draw_gauge_area(rect, actor)
    if $data_system.opt_display_tp
      draw_gauge_area_with_tp(rect, actor)
    else
      draw_gauge_area_without_tp(rect, actor)
    end
  end
  def draw_gauge_area_with_tp(rect, actor)
    draw_actor_hp(actor, rect.x + 0, rect.y, 72)
    draw_actor_mp(actor, rect.x + 82, rect.y, 64)
    draw_actor_tp(actor, rect.x + 156, rect.y, 64)
  end
  def draw_gauge_area_without_tp(rect, actor)
    draw_actor_hp(actor, rect.x + 0, rect.y, 134)
    draw_actor_mp(actor, rect.x + 144,  rect.y, 76)
  end
  def col_max
    return 1
  end
  def item_rect(index)
    rect = Rect.new
    rect.width = item_width
    rect.height = item_height
    rect.x = index % col_max * (item_width + spacing)
    rect.y = index / col_max * item_height
    rect
  end
  def draw_actor_icons(actor, x, y, width = 96)
    icons = (actor.state_icons + actor.buff_icons)[0, width / 24]
    return if icons.nil?
    icons.each_with_index {|n, i| draw_icon(n, x + 24 * i, y) }
  end
  def draw_actor_hp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(x, y, width, actor.hp, actor.mhp,
      hp_color(actor), normal_color)
  end
  def draw_actor_mp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(x, y, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
  end
  def draw_actor_tp(actor, x, y, width = 124)
    draw_gauge(x, y, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
    change_color(system_color)
    draw_text(x, y, 30, line_height, Vocab::tp_a)
    change_color(tp_color(actor))
    draw_text(x + width - 42, y, 42, line_height, actor.tp.to_i, 2)
  end
  def draw_current_and_max_values(x, y, width, current, max, color1, color2)
    change_color(color1)
    xr = x + width
    if width < 96
      draw_text(xr - 40, y, 42, line_height, current, 2)
    else
      draw_text(xr - 92, y, 42, line_height, current, 2)
      change_color(color2)
      draw_text(xr - 52, y, 12, line_height, "/", 2)
      draw_text(xr - 42, y, 42, line_height, max, 2)
    end
  end
  def draw_actor_name(actor, x, y, width = 112)
    change_color(hp_color(actor))
    draw_text(x, y, width, line_height, actor.name)
  end
  def update
    super
    process_cursor_move
    process_handling
  end
end
Perfect! That's exactly what I was looking for. I'll be sure to give credit.

For the targeting window issue, I just commented out the Window_BattleEnemy class.

Thanks for the help!

Edit: Found a bug, when selecting skills. looks like it's trying to dump all the status bars on top of each other on the right.
Game-glitch.png
That's the battle status aid which pulls the methods from the status window.
Copying over the methods in yanfly's script fixes it to what the battle engine does by default.
Spoiler: Status aid fix
Ruby:
class Window_BattleStatusAid < Window_BattleStatus
 
  def draw_item(index)
    return if index.nil?
    clear_item(index)
    actor = battle_members[index]
    rect = item_rect(index)
    return if actor.nil?
    draw_actor_face(actor, rect.x+2, rect.y+2, actor.alive?)
    draw_actor_name(actor, rect.x, rect.y, rect.width-8)
    draw_actor_action(actor, rect.x, rect.y)
    draw_actor_icons(actor, rect.x, line_height*1, rect.width)
    gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS
    contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
    draw_actor_hp(actor, rect.x+2, line_height*2+gx, rect.width-4)
    if draw_tp?(actor) && draw_mp?(actor)
      dw = rect.width/2-2
      dw += 1 if $imported["YEA-CoreEngine"] && YEA::CORE::GAUGE_OUTLINE
      draw_actor_tp(actor, rect.x+2, line_height*3, dw)
      dw = rect.width - rect.width/2 - 2
      draw_actor_mp(actor, rect.x+rect.width/2, line_height*3, dw)
    elsif draw_tp?(actor) && !draw_mp?(actor)
      draw_actor_tp(actor, rect.x+2, line_height*3, rect.width-4)
    else
      draw_actor_mp(actor, rect.x+2, line_height*3, rect.width-4)
    end
  end
 
  def draw_face(face_name, face_index, dx, dy, enabled = true)
    bitmap = Cache.face(face_name)
    fx = [(96 - item_rect(0).width + 1) / 2, 0].max
    fy = face_index / 4 * 96 + 2
    fw = [item_rect(0).width - 4, 92].min
    rect = Rect.new(fx, fy, fw, 92)
    rect = Rect.new(face_index % 4 * 96 + fx, fy, fw, 92)
    contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha)
    bitmap.dispose
  end
 
  def draw_actor_name(actor, dx, dy, dw = 112)
    reset_font_settings
    contents.font.size = YEA::BATTLE::BATTLESTATUS_NAME_FONT_SIZE
    change_color(hp_color(actor))
    draw_text(dx+24, dy, dw-24, line_height, actor.name)
  end
 
  def draw_current_and_max_values(dx, dy, dw, current, max, color1, color2)
    change_color(color1)
    draw_text(dx, dy, dw, line_height, current.group, 2)
  end
 
  def draw_actor_hp(actor, dx, dy, width = 124)
    draw_gauge(dx, dy, width, actor.hp_rate, hp_gauge_color1, hp_gauge_color2)
    change_color(system_color)
    cy = (Font.default_size - contents.font.size) / 2 + 1
    draw_text(dx+2, dy+cy, 30, line_height, Vocab::hp_a)
    draw_current_and_max_values(dx, dy+cy, width, actor.hp, actor.mhp,
      hp_color(actor), normal_color)
    end
    
  def draw_actor_mp(actor, dx, dy, width = 124)
    draw_gauge(dx, dy, width, actor.mp_rate, mp_gauge_color1, mp_gauge_color2)
    change_color(system_color)
    cy = (Font.default_size - contents.font.size) / 2 + 1
    draw_text(dx+2, dy+cy, 30, line_height, Vocab::mp_a)
    draw_current_and_max_values(dx, dy+cy, width, actor.mp, actor.mmp,
      mp_color(actor), normal_color)
    end
    
  def draw_actor_tp(actor, dx, dy, width = 124)
    draw_gauge(dx, dy, width, actor.tp_rate, tp_gauge_color1, tp_gauge_color2)
    change_color(system_color)
    cy = (Font.default_size - contents.font.size) / 2 + 1
    draw_text(dx+2, dy+cy, 30, line_height, Vocab::tp_a)
    change_color(tp_color(actor))
    draw_text(dx + width - 42, dy+cy, 42, line_height, actor.tp.to_i, 2)
  end
end # Window_BattleStatusAid
Thank you so much for the help. It may, or may not seem trivial, but I'm very impressed with the results. You've made my day! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/yea-ace-battle-engine-revert-battle-window-and-enemy-selection-to-ace-default.146354/