MV VE_BattleCommandWindow error- "is not a function"

Hey, I'm working ona game (obviously lol) and when I went to do do more work on it today, suddenyl I was met with an error suring battle sequences. Below is the error messege and my plugin list. I think it's mainly an error due to the VE_BattleCommandWindow plugin, as the error stops whenever I switch it off.

I've tested around different orders but nothing had changed, I checked to see if the yanfly plugins had any interference with it but, nope, the error still occured, just without any mentions of the Yanfly plugins in the error message.

What's especially strange is that, this error appeared completely randomly. Before this, battles had worked perfectly and I hadn't made any major changes. I'm not sure what could have spurred this change.

I even went in a blank project, added the command window plugin with the same settings as it had in my current project, and that worked fine. I'm really lost. Thank you.

error1.PNG
error2.PNG
error3.PNG

(without yanfly)
Even when you have Yanfly plugins turned off, you should do what the screen tells you to and press F8. Go to the Console tab and that's the same error trace that the Yanfly debug gives you.

I expect the problem is from you having yet another plugin that messes with the battle windows right beneath it - that BattleWindowsCustomize with no author attached to it.

That's probably overwriting the code in the BattleCommandWindow that's redefining what kind of window the party command window is.
EDIT: I downloaded a copy of the plugin and I think I know what's going on. The "is not a function" error means that it's expecting your party command window to be based on its own custom made window, but it's not. Turan is right that you have a plugin incompatibility.

If you pasted this code into the console and share the results here, we'll be very close to finding out the plugin causing our problems:

Scene_Battle.prototype.createPartyCommandWindow
if you do that, this is what it should look like
1703897529802.png
Even when you have Yanfly plugins turned off, you should do what the screen tells you to and press F8. Go to the Console tab and that's the same error trace that the Yanfly debug gives you.

I expect the problem is from you having yet another plugin that messes with the battle windows right beneath it - that BattleWindowsCustomize with no author attached to it.

That's probably overwriting the code in the BattleCommandWindow that's redefining what kind of window the party command window is.
Thank you for your comment, this was in the code console of the error:
error4.PNG
Though I don't think that matters now, you were exactly spot on- I placed the BattleWindowsCustomisation above the Victor engines and it fixed it! I never suspected that as an issue, as it never was one before- but I guess something changed or I swapped it unnknowingly. Thank you so much 🤘
EDIT: I downloaded a copy of the plugin and I think I know what's going on. The "is not a function" error means that it's expecting your party command window to be based on its own custom made window, but it's not. Turan is right that you have a plugin incompatibility.

If you pasted this code into the console and share the results here, we'll be very close to finding out the plugin causing our problems:

Scene_Battle.prototype.createPartyCommandWindow
if you do that, this is what it should look like
View attachment 290064
It was an error of plugin order I believe, but thank you for your comment, I'll be sure to look out for such things for future errors
I placed the BattleWindowsCustomisation above the Victor engines and it fixed it!
Just to make sure you understand, that means both plugins are trying to overwrite the same portion of code from the default engine.

Victor's version overwrites the code outright, it doesn't alias anything - so whatever the other plugin was trying to do there isn't happening at all.

That means that you now have functionality from that plugin which is broken.

I suggest you take another look at those plugins, because it seems very odd that you'd need Victor plugins that customize the battle status window, party command window, and actor command window, and then need another plugin that modifies the same things.

If you have those three plugins because there is, in fact, something specific each of them does which isn't covered by the others, you may need to look into someone helping you write a compatibility patch because right now you have to choose between which ones are completely functional.
Just to make sure you understand, that means both plugins are trying to overwrite the same portion of code from the default engine.

Victor's version overwrites the code outright, it doesn't alias anything - so whatever the other plugin was trying to do there isn't happening at all.

That means that you now have functionality from that plugin which is broken.

I suggest you take another look at those plugins, because it seems very odd that you'd need Victor plugins that customize the battle status window, party command window, and actor command window, and then need another plugin that modifies the same things.

If you have those three plugins because there is, in fact, something specific each of them does which isn't covered by the others, you may need to look into someone helping you write a compatibility patch because right now you have to choose between which ones are completely functional.
Aaah, yh, I get what you're saying!! Tbh, the plugin that has been causing the problem was doing something (specifically positioning the attack, item and skill drop-down menus) but i don't really need it, in that, it doesn't do anything Victor's plugin can't, it's just easier to use (basically plug-n-play).
I think, for the sake of preventing any future issues from occuring, I'll remove it and just work with Victor and Yanflys battle window plug-in's for now (I'm not exactly making anything exquisite so I shouldn't require much more anyways), and save myself the headache of asking for a patch lol.

Again thanks a lot for your explanation, I'll be keeping all of that in mind when working with plugins now

Original thread: https://forums.rpgmakerweb.com/threads/ve_battlecommandwindow-error-is-not-a-function.164269/