Yanfly's Musicmenu plugin not working.

● ARCHIVED · READ-ONLY
Started by GoldenGemGames 10 posts View original ↗
  1. I can enter it with a plugin command but it doesn't appear in the menu. Here is where i placed the plugin 20180905_160745.jpg
  2. This looks like a bug/miscommunication in the plugin. In the directions, Yanfly mentions an "Auto Add Menu" parameter, but such a parameter does not actually exist in the plugin.

    You have a few options:

    1.)
    Report this as a bug to Yanfly's Patreon page (you must be a member to participate).

    2.)
    There is a workaround described in the directions to use the Yanfly Main Menu Manager. You would have to add this plugin and restructure your menu to work with that.

    3.)
    You can paste the following code at the bottom of the Music Menu plugin. Note there are some lines for you can change.

    Paste at the bottom of Music Menu plugin
    Code:
    // Addition to Music Menu plugin to add to the main menu
    (function() {
    
      // You can change this. Keep it inside quotes!
      var COMMAND_NAME = "Music Menu";
      // You can change this. It's the order it will appear in the menu.
      // The number 4 means it will be the 4th item in the list
      var ORDER = 4;
     
      // Don't change anything below this line.
     
      if (!Window_Command.prototype.addCommandAt) {
      Window_Command.prototype.addCommandAt = function(index, name, symbol, en, ext) {
          if (en === undefined) enabled = true;
          if (ext === undefined) ext = null;
          var obj = { name: name, symbol: symbol, enabled: en, ext: ext};
          this._list.splice(index, 0, obj);
      };
      }
     
      Window_MenuCommand.prototype.addMusicCommand = function() {
          this.addCommandAt(ORDER+1, COMMAND_NAME, 'music', true);
      };
     
      var _makeCommandList = Window_MenuCommand.prototype.makeCommandList;
      Window_MenuCommand.prototype.makeCommandList = function() {
         _makeCommandList.call(this);
         this.addMusicCommand();
      };
    
      var _createCommandWindow = Scene_Menu.prototype.createCommandWindow;
      Scene_Menu.prototype.createCommandWindow = function() {
        _createCommandWindow.call(this);
        this._commandWindow.setHandler('music', this.commandMusicMenu.bind(this));
      };
     
    })();

    MusicMenuMainMenu.png

    Afterword
    According to Yanfly's website,
    It is highly recommended that you place these plugins in the order shown below.
    Even though it's not the cause, you should rearrange all YEP plugins anyway to match the order from the website to reduce future issues. (also you can take screenshots with Alt + PrintScn so you don't have to use your phone and so it's much clearer).
  3. I've moved this thread to Plug_in Support. Thank you.

  4. bgillisp said:
    [move]Plug_in Support[/move]
    Do you paste it in parameters or help?
  5. Aloe Guvner said:
    This looks like a bug/miscommunication in the plugin. In the directions, Yanfly mentions an "Auto Add Menu" parameter, but such a parameter does not actually exist in the plugin.

    You have a few options:

    1.)
    Report this as a bug to Yanfly's Patreon page (you must be a member to participate).

    2.)
    There is a workaround described in the directions to use the Yanfly Main Menu Manager. You would have to add this plugin and restructure your menu to work with that.

    3.)
    You can paste the following code at the bottom of the Music Menu plugin. Note there are some lines for you can change.

    Paste at the bottom of Music Menu plugin
    Code:
    // Addition to Music Menu plugin to add to the main menu
    (function() {
    
      // You can change this. Keep it inside quotes!
      var COMMAND_NAME = "Music Menu";
      // You can change this. It's the order it will appear in the menu.
      // The number 4 means it will be the 4th item in the list
      var ORDER = 4;
     
      // Don't change anything below this line.
     
      if (!Window_Command.prototype.addCommandAt) {
      Window_Command.prototype.addCommandAt = function(index, name, symbol, en, ext) {
          if (en === undefined) enabled = true;
          if (ext === undefined) ext = null;
          var obj = { name: name, symbol: symbol, enabled: en, ext: ext};
          this._list.splice(index, 0, obj);
      };
      }
     
      Window_MenuCommand.prototype.addMusicCommand = function() {
          this.addCommandAt(ORDER+1, COMMAND_NAME, 'music', true);
      };
     
      var _makeCommandList = Window_MenuCommand.prototype.makeCommandList;
      Window_MenuCommand.prototype.makeCommandList = function() {
         _makeCommandList.call(this);
         this.addMusicCommand();
      };
    
      var _createCommandWindow = Scene_Menu.prototype.createCommandWindow;
      Scene_Menu.prototype.createCommandWindow = function() {
        _createCommandWindow.call(this);
        this._commandWindow.setHandler('music', this.commandMusicMenu.bind(this));
      };
     
    })();

    View attachment 97743

    Afterword
    According to Yanfly's website,

    Even though it's not the cause, you should rearrange all YEP plugins anyway to match the order from the website to reduce future issues. (also you can take screenshots with Alt + PrintScn so you don't have to use your phone and so it's much clearer).
    So does it go in parameters? Nowhere in the plugin setting are there any code..
  6. GoldenGemGames said:
    So does it go in parameters? Nowhere in the plugin setting are there any code..
    Nevermind you go to the js folder and do it.
  7. For option #3 you can paste the code at the bottom of the Music Menu plugin. Just open up the plugin with any text editor and paste in the code at the bottom, and save the file.
  8. Aloe Guvner said:
    For option #3 you can paste the code at the bottom of the Music Menu plugin. Just open up the plugin with any text editor and paste in the code at the bottom, and save the file.
    It works! Thanks guys.
  9. GoldenGemGames, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


    In fact you triple posted. In the future, if you want to add something to your last post, please use the 'Edit' button. You can also quote multiple users by using the Multiquote/+Quote button.

    If your problem is solved, please report your post and we can close this thread for you :)