MZ comes with a plugin that allows players to change equipment during battle, but this is not compatible with Visustella's battlecore plugin. It gives me an error that says "something is not a function". If I use it in a new project, then it works just fine. Is there any way to make it work, or do I need to contact Visustella directly and ask for a compatibility patch?
MZ Battle Equip plugin doesn't work.
Javascript/Plugin SupportBump. Anyone can help?
Can you post a screenshot of the Console tab that shows the error?
@Shaz Here you go.
Code:
rmmz_managers.js:2030 TypeError: this[_0x68823a(...)] is not a function
at Scene_Battle.Scene_MenuBase.mainAreaHeight (VisuMZ_0_CoreEngine.js:6319)
at Scene_Battle.equipStatusWindowRect (ChangeEquipOnBattleMZ.js:139)
at Scene_Battle.createEquipStatusWindow (ChangeEquipOnBattleMZ.js:129)
at Scene_Battle.createAllWindows (ChangeEquipOnBattleMZ.js:123)
at Scene_Battle.createDisplayObjects (rmmz_scenes.js:3114)
at Scene_Battle.createDisplayObjects (NRP_VisualTurn.js:625)
at Scene_Battle.create (rmmz_scenes.js:2948)
at Scene_Battle.create (MPP_EncounterEffect.js:1708)
at Function.SceneManager.changeScene (rmmz_managers.js:2084)
at Function.SceneManager.updateMain (rmmz_managers.js:2056)
Did you try changing the order of the plugins?
@Shaz Yes. Tried to put it on top. Still got the same error.
@Shaz Bump. :v
Since it is a compatibility issue; I would probably try to reach out to Team Visustella and request support or if compatability is a possibility -- they have been extremely helpful whenever I needed to contact them.
Sent an email, explained the problem, and asked if they can make a compatibility patch, and they referred me to the troubleshooting guide. Which I already went through... I replied by asking if they can help me fix it or not. Not looking good...
I think it's safe to say that if we have any compatibility issues, don't count on VS to help.
Welp. Any programmers out there willing to help me? XD
I think you would have to be the plugin's creator seeking a compatibility patch in order to get some help. I don't think they want to deal with third parties if they can avoid it.
Bump. I'll try to contact the plugin creator in the Japanese forum. But given how VS's plugins are, is it possible to make any compatibility patch at all?
I honestly don't know. I certainly hope so.
I already posted on the Japanese forum. No response from the creator yet, even though he's active over there. It's not the end of the world. I have a good workaround. But the plugin is just more convenient, that's all.
But yeah, I can totally see why some people would be frustrated with VS doing this, lol. =w=
But yeah, I can totally see why some people would be frustrated with VS doing this, lol. =w=
The error doesn't happen because of Visustella's BattleCore plugin, it's happening in the Visustella's Core plugin.
It seems that Visustella has rewritten the method mainAreaHeight from Scene_MenuBase class. The original one as is in core MZ javascript is a calculation based in the Graphics boxheight, the button area height and the helpAreaheight; this last one in turn is the result of calculating the windowHeight based on number of lines and if it is selectable or not. In other words mainAreaHeight originally was suppoused to return a number value.
Because of the way Visustella's plugins are obscured, I can't say with accuracy if the error is because of the rewritting of the method (unlikely otherwise many more errors will happen) or because of some other method that is called within that has been rewritten and that one is causing the error. This last seems to be more the case.
I have to ask, which version of Visustella's Core and Battlecore are you using? I've tried to look for _0x68823a in the code I have from version 1.32 and I can't find it. If I can determine what is _0x68823a (method, object, function call) maybe I can figure it out,but I can't make any promises, patching a plugin to Visustella without Visustella's unobscured code is like trying to drive someone else's car blinfolded on a highway on the oposite lane and try to make it home alive and unscathed.
It seems that Visustella has rewritten the method mainAreaHeight from Scene_MenuBase class. The original one as is in core MZ javascript is a calculation based in the Graphics boxheight, the button area height and the helpAreaheight; this last one in turn is the result of calculating the windowHeight based on number of lines and if it is selectable or not. In other words mainAreaHeight originally was suppoused to return a number value.
Because of the way Visustella's plugins are obscured, I can't say with accuracy if the error is because of the rewritting of the method (unlikely otherwise many more errors will happen) or because of some other method that is called within that has been rewritten and that one is causing the error. This last seems to be more the case.
I have to ask, which version of Visustella's Core and Battlecore are you using? I've tried to look for _0x68823a in the code I have from version 1.32 and I can't find it. If I can determine what is _0x68823a (method, object, function call) maybe I can figure it out,but I can't make any promises, patching a plugin to Visustella without Visustella's unobscured code is like trying to drive someone else's car blinfolded on a highway on the oposite lane and try to make it home alive and unscathed.
@Winshifter Ah, yeah. I mixed up those two. They are both version 1.19. I haven't updated to the new ones yet. Not like that'll make any difference, I guess.
Feel free to take a shot at it, though. ^_^
Feel free to take a shot at it, though. ^_^
Ok, just a couple more questions. When does the error shows up? In the battle scene? while selecting an item in the battle scene? or in any other particular scene (menu,equip,item,map)? Do I need a particular setting or setup?
@Winshifter As soon as I enter battle, that error occurs. Probably because the equip command is not supposed to be there. You'll just need those two plugins together, I think.
You never updated to the new versions? If nothing else, it's worth doing so and giving it a shot to see if it works right then.
@Sword_of_Dusk I just didn't feel the need to since the changes were minimal. I just tested the newest version now, and it still didn't work. The error message is slightly different, but that's it, lol. XD
Nevertheless, the workaround I am working on is going well, and I probably won't need this at all. Well, I hope. But let's see what Win can come up with. It might be helpful to other people, who knows? =w=
Nevertheless, the workaround I am working on is going well, and I probably won't need this at all. Well, I hope. But let's see what Win can come up with. It might be helpful to other people, who knows? =w=
Original thread: https://forums.rpgmakerweb.com/threads/battle-equip-plugin-doesnt-work.134676/