Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

VX Script Fixes (1 FIX)

I've found a pretty funny bug.
Start a timer, enter a battle, then enter the item, skill, actor target or enemy target screen and wait until the timer reaches zero.
What do we have there? A couple of battle windows on the map screen! Enterbrain forgot to dispose these windows in the 'terminate' method of Scene_Battle.
Here's the fix.
Code:
#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#------------------------------------------------------------------------------
#  Fixes a bug with windows not disposed when a timer reaches zero.
#==============================================================================

class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias dargor_vx_fix_battle_dispose_terminate terminate
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    dargor_vx_fix_battle_dispose_terminate
    @skill_window.dispose if @skill_window != nil
    @item_window.dispose if @item_window != nil
    @help_window.dispose if @help_window != nil
    @target_enemy_window.dispose if @target_enemy_window != nil
    @target_actor_window.dispose if @target_actor_window != nil
  end
end
 
Why was this thread un-stickied?  It seems, to me, that this should have remained as a stickied topic because it's quite important.  Anyway, I've archived the script fixes on my site, with credit to their makers, of course, in case anyone doesn't feel like looking through this thread.
 
I un-stickied this thread because we had like 9 sticked threads. I created 1 thread with the important script topics with links. It was just too many threads. We had 3 pointless thread topics with rules.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top