RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[SOLVED]GDS Picture Menu error

0 Members and 1 Guest are viewing this topic.

*
A-pow 2015
Rep:
Level 81
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.How can I help you? :Da^2 + b^2 = c^2Secret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
I get a script error whenever I set GDS's picture menu's BGM option to false and exit the menu.



Line 77 of BattleManager:

    @map_bgm.replay unless $BTEST


Script:
Code: [Select]
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Picture Menu V1.0
#
# By: ?GDS?
#
# Site: ***************
# Requires: n/a
# Lag : low
#==============================================================================
# ? Updates
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# 2012.21.06 - Script start and finish
#
#==============================================================================
# ? Introduction
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# use pictures, and sound to make your menu better looking
#==============================================================================
#==============================================================================
# ? Licence
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# do whatever you wnat with if, just dont forget to credit me
#
#==============================================================================
#==============================================================================
# ¥ Config
#==============================================================================
module GDS_MENU
  #============================================================================#
  # put here the name of the files to be used as background
  # Same file cam be used multiple times
  # put the files on Graphics/System
  #============================================================================#
 
  BASIC_MENU_NAME  =   "menu"       #|1º menu image
                                    #|
  ITEM_MENU_NAME   = "menu_item"    #|Item menu image
                                    #|
  SKILL_MENU_NAME  = "menu_skill"   #|skills menu image
                                    #|
  EQUIP_MENU_NAME  = "menu_equip"   #|equip window image
                                    #|
  STATUS_MENU_NAME = "menu_status"  #|status menu image
                                    #|
  FILE_MENU_NAME   = "menu_status"  #|Save/load image
                                    #|
  END_MENU_NAME    = "menu_status"  #|shutdoen menu image
                                                                     
  #============================================================================#
  # Music
  #============================================================================#
 
  MENU_MUSIC = false #<= true changes the music during menu only
                     #   false default ACE method
  MUSIC_NAME = "menu" #<= nmusic name, must be on audio/BGM
 
  #============================================================================#
  # Opacity for all window
  # recomended not to change
  #============================================================================#
  MENU_OPACITY        = 0
  MENU_gold_OPACITY   = 0
  MENU_status_OPACITY = 0
  ITEM_OPACITY        = 0
  SKILL_OPACITY       = 0
  EQUIP_OPACITY       = 0
  STATUS_OPACITY      = 0
  FILE_OPACITY        = 0
  END_OPACITY         = 120
end
#==============================================================================
# End of configuration
#==============================================================================
#==============================================================================
# ** Scene_MenuBase
#------------------------------------------------------------------------------
#  This class performs basic processing related to the menu screen.
#==============================================================================
class Scene_MenuBase < Scene_Base
  #--------------------------------------------------------------------------
  # * overwrite method
  # * Free Background
  #--------------------------------------------------------------------------
  def dispose_backgroundsss
    @menubg.dispose
  end
    def dispose_background
    @background_sprite.dispose
  end
end
class Scene_Menu < Scene_MenuBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * rewrite method
  # * Start Processing
  # * return_scene
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    if MENU_MUSIC == true and @marker == nil
      BattleManager::save_bgm_and_bgs
      RPG::BGM.stop
      RPG::BGS.stop
      RPG::SE.stop
      RPG::BGM.new(MUSIC_NAME).play
      @marker = 1
    end
  end
  def return_scene
    @marker = nil
    SceneManager.return
    BattleManager::replay_bgm_and_bgs
  end
  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
  def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",BASIC_MENU_NAME)
    @background_sprite.z = -10
  end
  #--------------------------------------------------------------------------
  # * alias method method
  # * create_command_window
  # * create_gold_window
  #--------------------------------------------------------------------------
  alias create_command_window_GDS create_command_window
  alias create_gold_window_GDS create_gold_window
  alias create_status_window_GDS create_status_window
  def create_command_window
    create_command_window_GDS
    @command_window.opacity = MENU_OPACITY
  end
 
  def create_gold_window
    create_gold_window_GDS
    @gold_window.opacity = MENU_gold_OPACITY
  end
 
   def create_status_window
    create_status_window_GDS
    @status_window.opacity = MENU_status_OPACITY
  end
 
 
end
#==============================================================================
# ** Scene_Item
#------------------------------------------------------------------------------
#  This class performs the item screen processing.
#==============================================================================
class Scene_Item < Scene_ItemBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * alias method
  # * start
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    @category_window.opacity = ITEM_OPACITY
    @item_window.opacity = ITEM_OPACITY
    @help_window.opacity = ITEM_OPACITY
  end
  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
   def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",ITEM_MENU_NAME)
    @background_sprite.z = -10
  end
end
#==============================================================================
# ** Scene_Skill
#------------------------------------------------------------------------------
#  This class performs skill screen processing. Skills are handled as items for
# the sake of process sharing.
#==============================================================================
class Scene_Skill < Scene_ItemBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * alias method
  # * Start Processing
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    @help_window.opacity = SKILL_OPACITY
    @command_window.opacity = SKILL_OPACITY
    @status_window.opacity = SKILL_OPACITY
    @item_window.opacity = SKILL_OPACITY
  end
 
  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
   def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",SKILL_MENU_NAME)
    @background_sprite.z = -10
  end
end
#==============================================================================
# ** Scene_Equip
#------------------------------------------------------------------------------
#  This class performs the equipment screen processing.
#==============================================================================

class Scene_Equip < Scene_MenuBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * alias method
  # * Start Processing
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    @help_window.opacity = EQUIP_OPACITY
    @status_window.opacity = EQUIP_OPACITY
    @command_window.opacity = EQUIP_OPACITY
    @slot_window.opacity = EQUIP_OPACITY
    @item_window.opacity = EQUIP_OPACITY
  end
  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
   def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",EQUIP_MENU_NAME)
    @background_sprite.z = -10
  end
 
end
#==============================================================================
# ** Scene_Status
#------------------------------------------------------------------------------
#  This class performs the status screen processing.
#==============================================================================
class Scene_Status < Scene_MenuBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * alias method
  # * Start Processing
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    @status_window.opacity = STATUS_OPACITY
  end
  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
   def create_background
    @background_sprite= Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",STATUS_MENU_NAME)
    @background_sprite.z = -10
  end
end
#==============================================================================
# ** Scene_End
#------------------------------------------------------------------------------
#  This class performs game over screen processing.
#==============================================================================
class Scene_End < Scene_MenuBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * alias method
  # * Start Processing
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    @command_window.opacity = END_OPACITY
  end

  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
   def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",END_MENU_NAME)
    @background_sprite.z = -10
  end
end
#==============================================================================
# ** Scene_File
#------------------------------------------------------------------------------
#  This class performs common processing for the save screen and load screen.
#==============================================================================
class Scene_File < Scene_MenuBase
  include GDS_MENU
  #--------------------------------------------------------------------------
  # * alias method
  # * Start Processing
  #--------------------------------------------------------------------------
  alias start_GDS start
  def start
    start_GDS
    @help_window.opacity = FILE_OPACITY

  end
  #--------------------------------------------------------------------------
  # * rewrite method
  # * create_background
  #--------------------------------------------------------------------------
   def create_background
    @background_sprite = Sprite.new
    @background_sprite.bitmap = Cache.load_bitmap("Graphics/System/",FILE_MENU_NAME)
    @background_sprite.z = -10
  end
end

I tested it by itself, so it's not a conflict with another script.
« Last Edit: August 11, 2012, 05:49:06 AM by Acolyte »

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
Go to line 113 of GDS Picture Menu, and change it to:
Code: [Select]
    BattleManager::replay_bgm_and_bgs if MENU_MUSIC
it's like a metaphor or something i don't know

*
A-pow 2015
Rep:
Level 81
2014 Best RPG Maker User - GraphicsFor frequently finding and reporting spam and spam bots2013 Most Unsung MemberSecret Santa 2013 ParticipantFor taking arms in the name of your breakfast.How can I help you? :Da^2 + b^2 = c^2Secret Santa 2012 ParticipantSilver - GIAW 10Silver - GIAW 9Bronze - GIAW HalloweenGold - Game In A Week VII
thank you pacman ilu :*

*****
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Most Missed Member2014 Zero to Hero2014 Best IRC Quote2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
np bb xoxoxo
it's like a metaphor or something i don't know