Main Menu
  • Welcome to The RPG Maker Resource Kit.

Integrated Reserve Party

Started by modern algebra, May 08, 2009, 01:51:15 AM

0 Members and 2 Guests are viewing this topic.

digdarkevil

Maybe It has been already answered.. but, do you know why I get this error ?
It happenned to me so often and I was not able to fix it.. help please  :'(

It work just fine but the scrolling wont work  :-\

modern algebra

I'm not sure what is going on there, but it seems like the problem is because whatever custom menu script you are using to make that data window is too big to accomodate the number of commands. I'm not sure that has anything to do with the reserve party script, but that might be because I am not sure what you are trying to show me with that screenshot.

digdarkevil

#102
I'm using those scripts
YERD_Scene_Menu_Redux
Reserve Party
Compatibility Patch
YERD_SceneStatusRedux
Compatibility Patch


Before I Inserted Them My Window Scrolled Down To Show The Other Commands But Now It Grows With The Number Of Commands  :-\

That Was My Menu Window, And Since I'm Using Menu Redux The Second Window For Time, Steps And Etc Is Over It..

modern algebra

Well, create a new project with all those scripts in it and the error recreated, and upload it for me. I will see if I can figure out what is going wrong.

digdarkevil


modern algebra

Alright, replace the Reserve Party Compatibility Patch that you have now with the following one:


#==============================================================================
# ** Window_ReDuxMenuStatus
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - refresh
#    modified super method - create_contents
#==============================================================================

class Window_ReDuxMenuStatus
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Create Window Contents
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def create_contents (*args)
    if @calling_from_refresh
      self.contents.clear
    else
      super (*args)
    end
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Refresh
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias adrbr_yanfly_irpsmrcomp_rfrsh_7ou9 refresh
  def refresh (reserve_input = false)
    $game_party.ma_draw_party_space = reserve_input
    $game_party.ma_return_reserve_members = true
    @calling_from_refresh = true
    # Run Original Method with Reserve Members
    adrbr_yanfly_irpsmrcomp_rfrsh_7ou9 ()
    @calling_from_refresh = false
    @calling_from_refresh
    # For all locked actors, draw an icon
    $game_party.ma_locked_actors.each { |actor_id|
      index = $game_actors[actor_id].index
      draw_icon (PARTY_CHANGE_LOCK_ICON_INDEX, self.contents.width - 32, index*96 + 8)
    }
    $game_party.ma_return_reserve_members = false
    $game_party.ma_draw_party_space = false
    @item_max = @scrn_item_max
  end
end

#==============================================================================
# ** Scene_Menu
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased method - create_command_window
#==============================================================================

class Scene_Menu
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Create Command Window
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mairp_yerdsmrcomp_crtcmmndwin_4jn2 create_command_window
  def create_command_window(*args)
    mairp_yerdsmrcomp_crtcmmndwin_4jn2(*args)
    @command_window.height = [@command_window.height,
      YE::REDUX::MENU::MAX_ROWS * 24 + 32].min
    @command_window.index = [@menu_index, @command_window.commands.size - 1].min
  end
end

digdarkevil

Great It Works !!
Thank You So Much  :D

modern algebra


digdarkevil

By the way, Awesome Scipt ! :D
This is exactly what I was look for :)