MZ Problem with ChangeEquipOnBattleMZ.js

Hi! I'm having difficulty getting ChangeEquipOnBattleMZ.js isn't working with my project, it's one of the official DLC plugins, through my research it functions alongside plugins like VS Core and VS Battle Core, but something is causing it to crash.

I've been told that it's trying to call a function that doesn't exist -but I don't know what that function is.
There are only two parameters in this plugin which is command name and consume turn y/n?

what.png



Can anyone help?
It's producing that error after going through the VisuStella Items and Equip Core, so...have you tried disabling that plugin?

You say your research shows the two are compatible, but they may not be.
Well with the limited research I found on search results regarding this plugin, majority are in japanese and google translate isn't always reliable, other sources are people back in MZ's early days but not much else, I disabled Items and equip core and it produces this crash which makes 0 sense to me 😮
It doesn't make sense because it's referring to obfuscated code.

As you can see, it's still going through a VisuStella plugin before ending up with the error:
1721922128837.png


So, like, the same thing I already said. Disable any VisuStella plugins you see in the list. Hell, it should only take you a few seconds to disable all other plugins except this one, make sure it works just by itself.

You don't need help with this basic troubleshooting 😛
OK so I ran some vigorous tests where I disabled many plugins and enabled covering as many possible variables at fault and it seems that the VS plugin's are at fault. Without Core operational nothing else will work along with so there's something wrong with this plugin conflicting with it from what I gather, at this stage I don't know what to do to get it to work :/

I cannot find alternative plugins besides two other weapon swap plugins but they do not operate the way I want for my project :/
what.png

I should have done this before, but here's also what the console is saying, probably something to do with obfuscation? I cannot believe a small plugin like can give me so much grief.
Hi there!

Like @ATT_Turan said, you should first try to make the plugin work without any other plugin. Once you done that, you can start to enable one plugin, test again. It still working? So the compatibility problem is not on the last activated plugin.
Repeat the process until the plugin stop working again. The last activated plugin before the error, is the one causing the compatibility.

If it is a Visustella one, you will need to ask them for a compatibility. From what I heard, they probably won't do it, but hey, maybe the times they did no one said so.

Or try waiting for someone try find this problem and fix. But, since it is a obfuscated plugin, the chances are real low...

Another thing will see if Visustella cannot reproduce this plugin featuire with their plugins on some note tag/plugin parameter using javascript.

I cannot believe a small plugin like can give me so much grief.
- The problem is not on the small plugin. Sometimes, things just don't work together. When there is a compatibility issue between two plugins, the problem is the compatibility between those two, how they interact with each other. Is not a problem on one or another.
here's also what the console is saying
No, it's not. You're pretty clearly on the Sources tab.
1721938747118.png


You had been showing the Console in your first two screenshots of the error traces.

Without Core operational nothing else will work along with so there's something wrong with this plugin conflicting with it from what I gather, at this stage I don't know what to do to get it to work :/
As Eli said, you can follow VisuStella's instructions for reporting a bug/compatibility. My second-hand experience with their compatibility requests has universally been "no," but they might consider it for a plugin that's packaged with MZ.

Aside from that...no one can really tell you what to do. You either don't have that feature in your game, or you replace one of the plugins - the equip change or the VisuStella - with a different one that works the way you want.
I've been showing the console screen up until only the last time I posted because it was the only screen that provides something different to look at considering that the thing keeps referring to the line 2332.
I have little understanding what any of this code jargon means, I've been disabling every plugin and re enabling them with each play test and I keep getting the same problem

Out of curiosity I made a new project with only VS core, VS batle core and the changequiponbattle mz plugin (just like I've done during numerous tests on my regular project) and same result, the dlc plugin on it's own works but with those two it produces the same crash.

Update:
So just my luck, it appears VS team don't want to do any compatibility patching, so this essentially boiled down to a waste of time.
I've been showing the console screen up until only the last time I posted because it was the only screen that provides something different to look at considering that the thing keeps referring to the line 2332.
My point is, you said
I should have done this before, but here's also what the console is saying
when in fact that is not the console, and what you had been doing before was the console. It was the opposite of what you said. 😛

It's also not useful - anyone could open up that code file and go to that line, it's the generic call to report errors. That's why I was telling you to do your own troubleshooting to figure out if it was a plugin conflict, because the error was generic and not helpful.

So just my luck, it appears VS team don't want to do any compatibility patching
Unfortunately, as I said, that's been my experience.

Good luck.
Because i'm after this mechanic still, if a new plugin was made with the same purpose would it still crash if it was to go through the same sort of code to achieve it? Or is there a structural way it can actually be different from the official plugin to avoid conflicts?

Curious because obviously when something is obfuscated nothing cant really be done about it.
in order to make a new plugin, the author would still need to know what the obfuscated one is doing. it would have to be written in a way to handle what the obfuscated one does.
If the obfuscated one is doing something with the data that causes other plugins to produce crashes, then the only people in a position to reasonably do anything about it are authors of the obfuscated one.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-changeequiponbattlemz-js.170611/