Bug Fixes List

Bug Fixes List​

December 23, 2018 UPDATE:
Bug Fixes are now downloadable in .rb format here.


VXAce SP1 Bug Fixes

Compilation of Official Bug Fix List by Enterbrain.

Yanfly Bug Fixes List

Composes of bug fixes and visual enchantments. They can be disabled at will.

Lonewolf's Unofficial Bug Fixes Snippets

A collection of fixes by Lonewolf.

Yami's Bug Fixes

Some bug fixes in the utility scripts. Be sure to check out once in a while after he transfers everything from the old blog!

Mithran's Text Cache Fix

VX Ace is a huge improvement over VX in many different ways. However, although text processing has a number of new features, it has also introduced a number of new bugs. This script fixes that.

Linebreak Glyph Fix

Whenever a multi-line description is printed, for some reason an extra glyph is added at the line break. It also adds arrows to menus that are missing in some fonts. Fixes by Lonewolf and Mezzolan.

VXAce Star Passability Bug Fix (Alternate with Shaz's Ignore Passability)

The fix checks if the tile is a star before checking passability. If the tile is a star and it is passable, it then checks the tile UNDER it. If not, it returns false as always. This prevents everything that is a star tile from being passable.

RMVXAce Tips and Workarounds

A list that has some, maybe obscure, issues that are hard to find a fix for. Includes bug fixes.

Screen Shake Fix

Originally, the "Wait for the end" checkbox was useless, and the game interpreter considered it was always checked.

The wait time wasn't right and used the "Speed" value instead of "Duration."
Code:
#--------------------------------------------------------------------------
# Screen Shake Fix
# Author(s):
# Hiino
#--------------------------------------------------------------------------
# This script is a little bug fix for the Screen shake event command.
# Originally, the "Wait for the end" checkbox was useless, and the game
# interpreter considered it was always checked. Plus, the wait time wasn't
# right and used the "Speed" value instead of "Duration".
# This script fixes both issues.
#
# To use it, simply copy/paste this code in Materials.
#
#--------------------------------------------------------------------------

#==============================================================================
# ** Game_Interpreter
#------------------------------------------------------------------------------
#  An interpreter for executing event commands. This class is used within the
# Game_Map, Game_Troop, and Game_Event classes.
#------------------------------------------------------------------------------
class Game_Interpreter 
#-------------------------------------------------------------------------- 
# * Fixed Screen Shake  
#-------------------------------------------------------------------------- 
def command_225   
  screen.start_shake(@params[0], @params[1], @params[2])   
  wait(@params[2]) if @params[3] 
  end
end


Screen Jitter Fix

Recently it was brought to my attention that when scrolling the map with a lot of events on screen, the events would "jump" by a single pixel and would be improperly positioned. I initially shrugged this off as lag, but when I saw the same effects on my absolutely awesome machine I wasn't quite sure what was up. I decided I would look into it a little bit more. When I tried to recreate it on my own by packing a screen full of events and then scrolling I was unable to reproduce the results. It wasn't until I tested the issue with the demo in a related topic that I noticed the issue seemed to have to do with slow speed panning.



Undefeated Hidden Enemies Visual Fix

When you finish a battle before all halfway appearing enemies are summoned, there is a short moment just before the battle ends, when you will see the whole enemy party on the battle screen.



Vehicle BGM Bug

While the map BGM is playing, when you get on a vehicle, transfer maps, and get off, the BGM played is the BGM that was playing when you got on the vehicle, and not the new map's BGM. When you transfer maps while on a vehicle, if the new map has an autoplay BGM it will start playing instead of the vehicle BGM

Large Sprite ☆ Display Fix

So Ace has this slight issue with tilesets when using larger sprites which causes all star tiles to appear above the character, even if it makes more sense that the character appear above a star tile (ie. a tree). What this script does is allow you to "tag" a particular terrain type to appear behind the player when the player is lower than the tile itself. As long as the player's Y value is higher than the tile with the terrain tag, the player will appear above the tile rather than below it.
Is there a file somewhere that some of these bug fixes can be applied to, so they are automatically included in every new project? There is no Data folder where the RTP is installed, so I'm guessing not.
The Data files for the RTP are unfortunately inside the dll/exe. One of those two. I know in the Trial it was inside the exe <_<;

(super late reply)

Updated this thread with Neonblack's Screen Jitter fix!
This one might be subtle if you don't have extensive vehicle usage


http://forums.rpgmakerweb.com/index.php?/topic/18469-vehicle-bgm-fix/


In response to this report
Updated the thread! I also have this one where if you combine Shaz's Ignore Layer Passability, it will be incompatible with Neonblack's VXAce Star Passability fix.

I combined the two for compatibility which you can get here!

Spoiler
Code:
#==============================================================================# VXAce Star Passability Bug Fix#   by NeonBlack, Shaz and Archeia# -- Level: Easy, Normal# -- Requires: n/a# -- This simply checks if the tile is a star before checking passability.  # If the tile is a star and it is passable, it then checks the tile UNDER it.  # If not, it returns false as always. This prevents everything that is a star # tile from being passable.## This script is edited to fix the whole upper tiles make cliff tiles passable.## -- Original Topic:#   Game_Map   def check_passage(x, y, bit)        all_tiles(x, y).each do |tile_id|          flag = tileset.flags[tile_id]          if flag & 0x10 != 0                       # [☆]: No effect on passage                next if flag >> 12 == 1             # ignore passability on terrain 1                next             if flag & bit == 0 # [○] : Passable but star                return false if flag & bit == bit   # [×] : Impassable            else                 next if flag >> 12 == 1             # ignore passability on terrain 1                return true  if flag & bit == 0  # [○] : Passable                return false if flag & bit == bit   # [×] : Impassable          end        end        return false                                              # Impassable  endend
That can be reduced a little further if you wanted, since 2/3 of the true/false of that test are the same:

Code:
class Game_Map  def check_passage(x, y, bit)    all_tiles(x, y).each do |tile_id|      flag = tileset.flags[tile_id]      next if flag >> 12 == 1              # ignore passability on terrain 1      if flag & 0x10 != 0                  # [☆]: No effect on passage        next if flag & bit == 0            # [○] : Passable but star      else        return true if flag & bit == 0     # [○] : Passable      end      return false if flag & bit == bit    # [×] : Impassable    end    return false                           # Impassable  endend
Alternative fix for the map animation (never knew something for it already existed, sorry)


http://forums.rpgmakerweb.com/index.php?/topic/24881-show-animation-fix/
Definitely late to the party, but some more fixes that I have not seen here and might still be useful to someone:

- By default, events and other characters following a move route will stand still for 1 Frame between each move, which might feel a bit twitchy at higher speeds:
Spoiler
Ruby:
# ============================================================================
#  Continuous Character Movement (Copied from MVs default scripts)
# ----------------------------------------------------------------------------
# Put this script towards the top of the list, but still below "▼ Materials"
#
# ---
# By default, Events and other characters following a Move Route will either
# move or start a new move command, causing them to stand still for 1 Frame
# between each step.
# This can look a bit twitchy at higher speeds, and should be fixed with this.
# ============================================================================

class Game_CharacterBase
 
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    update_stop if stopping?
    if jumping?
      update_jump
    elsif moving?
      update_move
    end
    update_animation
  end
end

- By default, VXAce has a feature that prevents states from being added again after getting removed in the same action. This has some unintended side effects, making actors temporarily immune to death after being revived in the menu, or causing adding states to fail if they just expired at the end of the previous turn:
Spoiler
Code:
# ============================================================================
#  Remove temporary State reapplication immunity
# ----------------------------------------------------------------------------
# Put this script towards the top of the list, but still below "▼ Materials"
#
# ---
# By default, VXAce has a feature where the same state can not be re-added in
# the same action where the state has been removed.
# However, action results are reset infrequently, causing this feature to
# have some undesired effects:
# - If a party member is revived in the menu, they will not die from a
#   "Change HP" or the next "Add State" command unless the player moves.
# - If a state expires at the end of a turn in battle, reapplying it at the
#   start of the following turn might fail.
#
# While it is possible to adress these instances, the user would always need
# to keep this feature in mind when changing battler HP or states through
# scripts. Instead, this script removes the feature for general states.
#
# If this feature is still needed for a state toggle effect for instance,
# an option to keep this feature for states added through item/skill effects
# can be found below:
# ----------------------------------------------------------------------------

class Game_Battler
 
  # Forbid adding states that were removed in the same action (true/false):
  PREVENT_READDING_EFFECT_STATES_IN_SAME_ACTION = false

end

# ----------------------------------------------------------------------------
#  END OF CONFIGURATION
# ============================================================================


class Game_Battler
 
  #--------------------------------------------------------------------------
  # * Determine States Removed During Same Action
  # Redefined: States are never considered "removed" to prevent state immunity.
  #--------------------------------------------------------------------------
  def state_removed?(state_id)
    false
  end
 
  if PREVENT_READDING_EFFECT_STATES_IN_SAME_ACTION
 
    #-------------------------------------------------------------------------
    # * [Add State] Effect: Normal Attack
    #-------------------------------------------------------------------------
    def item_effect_add_state_attack(user, item, effect)
      user.atk_states.each do |state_id|
        next if @result.removed_states.include?(state_id)
        base_rate = effect.value1 * user.atk_states_rate(state_id)
        if rand < apply_effect_state_rate(user, state_id, base_rate)
          add_state(state_id)
          @result.success = true
        end
      end
    end
 
    #-------------------------------------------------------------------------
    # * [Add State] Effect: Normal
    #-------------------------------------------------------------------------
    def item_effect_add_state_normal(user, item, effect)
      return if @result.removed_states.include?(effect.data_id)
      if rand < apply_effect_state_rate(user, effect.data_id, effect.value1)
        add_state(effect.data_id)
        @result.success = true
      end
    end
 
    #-------------------------------------------------------------------------
    # * Final State Rate when state is applied by a user
    #-------------------------------------------------------------------------
    def apply_effect_state_rate(user, state_id, base_rate = 1)
      chance = base_rate
      chance *= state_rate(state_id)  if opposite?(user)
      chance *= luk_effect_rate(user) if opposite?(user)
      return chance
    end
 
  end
end

- The "Change Tileset" event command would cancel all active character animations and balloons, even for non-tile-characters:
Spoiler
Ruby:
# ============================================================================
#  "Change Tileset" no longer breaks Animations/Balloons
# ----------------------------------------------------------------------------
# Put this script towards the top of the list, but still below "▼ Materials"
#
# ---
# By default, using the "Change Tileset" event command will cancel any
# active animations and balloon effects, even for non-tile events.
# This script fixes that.
# ============================================================================

class Spriteset_Map
 
  #--------------------------------------------------------------------------
  # * Update Tileset
  # Redefined: Instead of remaking character sprites, flag the tile graphics.
  #--------------------------------------------------------------------------
  def update_tileset
    if @tileset != $game_map.tileset
      load_tileset
      @character_sprites.each { |sprite| sprite.invalidate_tile_graphic }
    end
  end
end


class Sprite_Character
 
  def invalidate_tile_graphic
    @tile_id = -1 if @tile_id > 0
    update_bitmap
  end
end

- By default, Screen Tint is not carried over into battles. This feature was removed in VX which used blurred map screenshots as battle backgrounds, and apparently forgotten to be re-added when VXAce returned to custom background images.

Kes has posted a fix by Snow here
Edit: I could have sworn this was the case, but apparently I was wrong here. Still, a useful script to toggle the tint screen effect as needed.


- A couple of fixes for the Event Interpreter:
By default, saving and loading an active interpreter would cause the current command to be canceled. This mainly affects "Parallel Process" events since the options to save during a regular cutscene are usually limited. Canceled effects would include "Wait for Completion" effects (like waiting for a move route) as well as the remainder of any "Common Event" command.
This could also lead to event commands getting skipped entirely if the game was saved and loaded multiple times before the interpreter would resume execution (although this would be hard to achieve without extra scripts).
This script also fixes minor bugs with "Break Loop", "Jump to Label", "Change HP", "Change Enemy HP" and Scene calls, as well as give the option to remove the "Wait for Message" at the beginning and the extra 1-Frame-Wait at the end of each event.
Spoiler
Ruby:
# ============================================================================
#  Multiple Event Interpreter Fixes (partly copied from MVs default scripts)
# ----------------------------------------------------------------------------
# Put this script towards the top of the list, but still below "▼ Materials"
#
# ---
#  This script aims to fix some issues related to VXAces default event command
#  interpreter (these fixes will generally not work for Script commands):
#
#  Saving and Loading:
#    By default, the Interpreter can not save a lot of its inner state when
#    the game is saved and loaded. Instead, the interpreter will skip the rest
#    of any current command when the game is loaded.
#    This mostly affects "Parallel Process" events, since opportunities to save
#    are usually limited when a non-parallel event is running.
#    The script should fix these issues after a savestate is loaded:
#    - The remainder of "Wait for Completion" effects are no longer skipped
#    - The remainder of any "Common Event" command is longer be skipped
#    - Commands waiting for clearance should no longer be skipped
#      (e.g. "Scroll Map" may get delayed if the map is already scrolling)
#    - Commands should no longer be skipped if the game is saved and loaded
#      multiple times before the Interpreter could resume execution.
#      (Should usually not happen without other scripts, included for safety)
#
#  Other Event Command Fixes:
#    - "Break Loop" would normally jump behind the next loop that was less
#      indented. Fixed so it will always jump to the end of the right loop.
#    - "Jump to Label" will now clear branch data to prevent the interpreter
#      from executing additional branches.
#    - "Change HP" will no longer trigger an unconditional "Game Over" if the
#      entire party is dead (and allow loseable battles to properly finish).
#    - "Change Enemy HP" will not stop at the first dead enemy when
#      "Entire Troop" is selected.
#    - Calls for multiple Battles/Menu screens at the same time are spaced out
#      to prevent issues (e.g. calling the battle screen from multiple events
#      at once would not assign the outcome of each battle correctly)
#
#  Other Changes:
#    - Events may no longer wait for the message window to close before starting
#      (This might be useful to keep for cutscenes to prevent them from starting
#      over status update messages)
#        => Can be disabled below (if this messes up event timings)
#    - The extra 1-Frame-Wait at the end of each event can be removed.
#      (This might be useful to keep for cutscenes in some cases, since they
#      might otherwise refresh event page conditions a frame early)
#        => Can be disabled below (if this messes up event timings)
#    - The Player is now prevented from moving when an "Event Touch" or
#      "Autostart" is scheduled to run (Before, the player could move out of
#      the way on the frame an "Event Touch" event collided with them. This
#      also prevents the player from moving when an "Autostart" event is active
#      that can be completed in one frame)
#
# ----------------------------------------------------------------------------

class Game_Interpreter
 
  # Keep Waiting for Message at the beginning of each event:
  # 2 : Keep Always (No Change)
  # 1 : Keep For Cutscene Events (Action Key, Player/Event Touch, Autostart)
  # 0 : Remove
  START_OF_EVENT_MESSAGE_WAIT = 1
 
  # Keep the extra one frame Wait at the end of each Event:
  # 2 : Keep Always (No Change)
  # 1 : Keep For Cutscene Events (Action Key, Player/Event Touch, Autostart)
  # 0 : Remove
  END_OF_EVENT_WAIT = 1
 
end

# ----------------------------------------------------------------------------
#  END OF CONFIGURATION
# ============================================================================

class Scene_Base
 
  alias_method(:main_afterRegisterActiveScene, :main)
  def main
    SceneManager.active_scene = self
    main_afterRegisterActiveScene
  end
end


module SceneManager
 
  class << self
    attr_writer :active_scene
  end
 
  def self.scene_changing?
    !@active_scene || @active_scene.scene_changing?
  end
end


class Game_Player
 
  #--------------------------------------------------------------------------
  # * Processing of Movement via Input from Directional Buttons
  # Block Player Movement when an event is scheduled to trigger.
  #--------------------------------------------------------------------------
  alias_method(:move_by_input_withoutEventStartingCheck, :move_by_input)
  def move_by_input
    move_by_input_withoutEventStartingCheck if !$game_map.any_event_starting?
  end
end


# Remember if no event was starting (might save 1 lookup per frame)
# (Optional, remove if problematic)

class Game_Map
 
  attr_writer :no_event_starting
 
  alias_method(:any_event_starting_withoutNoStartVar, :any_event_starting?)
  def any_event_starting?
    result = (!@no_event_starting && any_event_starting_withoutNoStartVar)
    @no_event_starting = true if !result
    return result
  end
end


class Game_Event
 
  alias_method(:start_withoutMapNoStartReset, :start)
  def start
    $game_map.no_event_starting = false
    start_withoutMapNoStartReset
    $game_map.no_event_starting = false
  end
end

# ---

class Game_Interpreter
 
  # --------------------------------------------------------------------------
  # Initialize New Variables
  # --------------------------------------------------------------------------
 
  alias_method(:clear_withoutWaitVariables, :clear)
  def clear
    @wait_count = 0         # Remaining Wait Frames
    @wait_mode = nil        # Wait For Completion Mode
    @wait_param = nil       # Wait For Completion Parameter
    @index_executed = false # The Current Index is considered executed
    clear_withoutWaitVariables
  end
 
  WaitModeStruct = Struct.new(:wait_count, :wait_mode, :wait_param, :idle_index)
 
  alias_method(:marshal_dump_withoutWaitVariables, :marshal_dump)
  def marshal_dump
    extra = WaitModeStruct.new(
      @wait_count,
      @wait_mode,
      @wait_param,
      (@index_executed ? nil : @index) # Save Current Index if not executed.
    )
    return marshal_dump_withoutWaitVariables + [extra]
  end
 
  alias_method(:marshal_load_withoutWaitVariables, :marshal_load)
  def marshal_load(object)
    extra = object.last
    if extra.is_a?(WaitModeStruct)
      marshal_load_withoutWaitVariables(object[0, object.length - 1])
      @wait_count = extra.wait_count
      @wait_mode  = extra.wait_mode
      @wait_param = extra.wait_param
      @index      = extra.idle_index if extra.idle_index
    else # Compatibility with older save states:
      marshal_load_withoutWaitVariables(object)
      @wait_count = 0
      @wait_mode  = nil
      @wait_param = nil
    end
    @index_started = false
  end
 
  #--------------------------------------------------------------------------
  # * Execute
  # Redefined: Update Start- and End Waits, track index started.
  #--------------------------------------------------------------------------
  def run
    wait_for_message if wait_option_enabled?(START_OF_EVENT_MESSAGE_WAIT)
    wait(@wait_count)
    process_wait_mode
    @index_executed = true
    while @list[@index] do
      execute_command
      @index += 1
    end
    Fiber.yield if wait_option_enabled?(END_OF_EVENT_WAIT)
    @fiber = nil
  end
 
  def wait_option_enabled?(option)
    return option == 2 || (option == 1 && self == $game_map.interpreter)
  end
 
  #--------------------------------------------------------------------------
  # * Event Command Execution
  # Redefined: Small Performance Update (Not necessary)
  #--------------------------------------------------------------------------
 
  COMMAND_NAME_TABLE = Hash.new { |h, k| h[k] = :"command_#{k}" }
 
  def execute_command
    command = @list[@index]
    @params = command.parameters
    @indent = command.indent
    method_name = COMMAND_NAME_TABLE[command.code]
    send(method_name) if respond_to?(method_name)
  end
 
  #--------------------------------------------------------------------------
  # * Wait
  # Redefined: Track Wait Counter for Marshal dump/load
  #--------------------------------------------------------------------------
  def wait(duration)
    @wait_count = duration
    while @wait_count > 0
      @wait_count -= 1
      Fiber.yield
    end
  end
 
  # --------------------------------------------------------------------------
  # Event Command Fixes:
  # --------------------------------------------------------------------------
 
  # Wait for clearance while executing the given block.
  # If the interpreter is dumped and loaded while waiting for clearance,
  # the current index is not skipped.
  def wait_for_clearance
    @index_executed = false
    yield
    @index_executed = true
  end
 
  # Wait for completion at the end of an event command.
  def wait_for_completion(wait_mode, wait_parameter = nil)
    @wait_mode = wait_mode
    @wait_param = wait_parameter
    process_wait_mode
  end
 
  def process_wait_mode
    case @wait_mode
    when :common_event     then @wait_param.run
    when :move_route       then Fiber.yield while @wait_param.move_route_forcing
    when :gather_followers then Fiber.yield until $game_player.followers.gather?
    when :transfer_player  then Fiber.yield while $game_player.transfer?
    when :show_animation   then Fiber.yield while @wait_param.animation_id > 0
    when :show_balloon     then Fiber.yield while @wait_param.balloon_id > 0
    end
    @wait_mode = nil
    @wait_param = nil
  end
 
  # Message Commands:
  # (No wait for completion since $game_message is usually not saved anyways)
 
  alias_method(:command_101_withoutClearance, :command_101)
  def command_101
    wait_for_clearance { wait_for_message }
    command_101_withoutClearance
  end
 
  alias_method(:command_102_withoutClearance, :command_102)
  def command_102
    wait_for_clearance { wait_for_message }
    command_102_withoutClearance
  end
 
  alias_method(:command_103_withoutClearance, :command_103)
  def command_103
    wait_for_clearance { wait_for_message }
    command_103_withoutClearance
  end
 
  alias_method(:command_104_withoutClearance, :command_104)
  def command_104
    wait_for_clearance { wait_for_message }
    command_104_withoutClearance
  end
 
  alias_method(:command_105_withoutClearance, :command_105)
  def command_105
    wait_for_clearance { Fiber.yield while $game_message.visible }
    command_105_withoutClearance
  end
 
  #--------------------------------------------------------------------------
  # * Break Loop
  # Redefined: Fix a bug that allowed jumping behind an inner loop
  #--------------------------------------------------------------------------
  def command_113
    loop_ends_needed = 1
    index_threshold = @list.length - 1
    while @index < index_threshold
      @index += 1
      if @list[@index].code == 413
        loop_ends_needed -= 1
        break if loop_ends_needed == 0
      elsif @list[@index].code == 112
        loop_ends_needed += 1
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # * Common Event
  # Redefined: Keep track of the child interpreter
  #--------------------------------------------------------------------------
  def command_117
    common_event = $data_common_events[@params[0]]
    if common_event
      child = Game_Interpreter.new(@depth + 1)
      child.setup(common_event.list, same_map? ? @event_id : 0)
      wait_for_completion(:common_event, child)
    end
  end
 
  #--------------------------------------------------------------------------
  # * Jump to Label
  # Alias: Reset Branch Data to prevent jumping into unrelated branches
  #--------------------------------------------------------------------------
  alias_method(:command_119_withoutBranchFix, :command_119)
  def command_119
    command_119_withoutBranchFix
    @branch.clear
  end
 
  #--------------------------------------------------------------------------
  # * Transfer Player
  # Redefined: Track Clearance and Completion Waiting
  #--------------------------------------------------------------------------
  def command_201
    return if $game_party.in_battle
    wait_for_clearance {
      Fiber.yield while $game_player.transfer? || $game_message.visible
    }
    setup_player_transfer
    wait_for_completion(:transfer_player)
  end
 
  def setup_player_transfer
    if @params[0] == 0  # Direct designation
      map_id = @params[1]
      x = @params[2]
      y = @params[3]
    else                # Designation with variables
      map_id = $game_variables[@params[1]]
      x = $game_variables[@params[2]]
      y = $game_variables[@params[3]]
    end
    $game_player.reserve_transfer(map_id, x, y, @params[4])
    $game_temp.fade_type = @params[5]
  end
 
  # Scroll Map:
 
  alias_method(:command_204_withoutClearance, :command_204)
  def command_204
    return if $game_party.in_battle
    wait_for_clearance { Fiber.yield while $game_map.scrolling? }
    command_204_withoutClearance
  end
 
  #--------------------------------------------------------------------------
  # * Set Move Route
  # Redefined: Track Move Route Waiting
  #--------------------------------------------------------------------------
  def command_205
    $game_map.refresh if $game_map.need_refresh
    character = get_character(@params[0])
    if character
      character.force_move_route(@params[1])
      wait_for_completion(:move_route, character) if @params[1].wait
    end
  end
 
  #--------------------------------------------------------------------------
  # * Show Animation
  # Redefined: Track Animation Showing
  #--------------------------------------------------------------------------
  def command_212
    character = get_character(@params[0])
    if character
      character.animation_id = @params[1]
      wait_for_completion(:show_animation, character) if @params[2]
    end
  end
 
  #--------------------------------------------------------------------------
  # * Show Balloon Icon
  # Redefined: Track Balloon Showing
  #--------------------------------------------------------------------------
  def command_213
    character = get_character(@params[0])
    if character
      character.balloon_id = @params[1]
      wait_for_completion(:show_balloon, character) if @params[2]
    end
  end
 
  #--------------------------------------------------------------------------
  # * Gather Followers
  # Redefined: Track Gathering Waiting
  #--------------------------------------------------------------------------
  def command_217
    return if $game_party.in_battle
    $game_player.followers.gather
    wait_for_completion(:gather_followers)
  end
 
  # Fadeout / Fadein Screen:
 
  alias_method(:command_221_withoutClearance, :command_221)
  def command_221
    wait_for_clearance { Fiber.yield while $game_message.visible }
    command_221_withoutClearance
  end
 
  alias_method(:command_222_withoutClearance, :command_222)
  def command_222
    wait_for_clearance { Fiber.yield while $game_message.visible }
    command_222_withoutClearance
  end
 
  # Battle/Shop/Name Input Processing:
 
  alias_method(:command_301_withoutClearance, :command_301)
  def command_301
    return if $game_party.in_battle
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_301_withoutClearance
  end
 
  alias_method(:command_302_withoutClearance, :command_302)
  def command_302
    return if $game_party.in_battle
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_302_withoutClearance
  end
 
  alias_method(:command_303_withoutClearance, :command_303)
  def command_303
    return if $game_party.in_battle
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_303_withoutClearance
  end
 
  #--------------------------------------------------------------------------
  # * Change HP
  # Redefined: Removed the unconditional Game Over.
  #--------------------------------------------------------------------------
  def command_311
    value = operate_value(@params[2], @params[3], @params[4])
    iterate_actor_var(@params[0], @params[1]) do |actor|
      next if actor.dead?
      actor.change_hp(value, @params[5])
      actor.perform_collapse_effect if actor.dead?
    end
  end
 
  #--------------------------------------------------------------------------
  # * Change Enemy HP
  # Redefined: Dont return if enemy is dead
  #--------------------------------------------------------------------------
  def command_331
    value = operate_value(@params[1], @params[2], @params[3])
    iterate_enemy_index(@params[0]) do |enemy|
      next if enemy.dead?
      enemy.change_hp(value, @params[4])
      enemy.perform_collapse_effect if enemy.dead?
    end
  end
 
  # Other Scene Calls:
 
  alias_method(:command_351_withoutClearance, :command_351)
  def command_351
    return if $game_party.in_battle
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_351_withoutClearance
  end
 
  alias_method(:command_352_withoutClearance, :command_352)
  def command_352
    return if $game_party.in_battle
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_352_withoutClearance
  end
 
  alias_method(:command_353_withoutClearance, :command_353)
  def command_353
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_353_withoutClearance
  end
 
  alias_method(:command_354_withoutClearance, :command_354)
  def command_354
    wait_for_clearance { Fiber.yield while SceneManager.scene_changing? }
    command_354_withoutClearance
  end
end

Edit: Woops

Original thread: https://forums.rpgmakerweb.com/threads/bug-fixes-list.8318/