Change Battle Equip with MOG_Hunter HUD (Yanfly/Mog_Hunter Plugin)

Hello


I would like to combine "YEP_X_ChangeBattleEquip" Plugin with MOG_Hunter's Battle HUD plugin.


I found out that the problem occurs with the "MOG_BattleCommands" and "YEP_X_ChangeBattleEquip". Since I'm not familiar with programming I don't know what I have to delete or write into the code to make it work.


What I figured out:


- If YEP_EquipCore and its extension is below MOG_BattleCommands the "Equip" command won't be visible, although a picture is assigned to the command


- An error occurs when you go to the invisible command: "TypeError: Cannot read property 'width' of undefined"


- YEP_BattleEngineCore; YEP_EquipCore; YEP_X_ChangeBattleEquip have to be above MOG_BattleCommands in order to make the Command "Equip" visible (with the assigned picture Com_Equip)


- After this setup, the equip menu will open but when you close this window an error occurs: "Type Error: Cannot read property '0' of undefined" (I don't know, but I don't think that will help...)


Here are the two codes:


YEP_X_ChangeBattleEquip:


http://yanfly.moe/plugins/en/YEP_X_ChangeBattleEquip.js


MOG_BattleCommands: (Attached)


I would highly appreciate help and hope this is somehow solvable.


Thank you for reading. 🙂

Problem.JPG

View attachment MOG_BattleCommands.js

Original thread: https://forums.rpgmakerweb.com/threads/change-battle-equip-with-mog_hunter-hud-yanfly-mog_hunter-plugin.63774/