Party Issue: number is not a function

I have tried also disabling the party system plugin and it still produces the same error.

I am using Yanfly Party system, although I do not think that is what is causing the error I just wanted to clarify.

The reason I do not believe that the error is caused by the party system is because 1 it still does it if I turn the plugin off, and 2 if I call the Plugin Command OpenPartyMenu it will load the Formation menu but it errors out on the regular menu.

The way I want my game to work is I will only have 4 followers and 4 battle members, but using the Yanfly Party system a player should be able to switch between active and inactive party members.

The problem, as soon as the 5th character is added to the party (whom does not show as a follower) and I hit 'ESC' to bring up the menu I get the error "number is not a function"

I have pulled up the console and here is the entire error

TypeError: number is not a function at Window_MenuCommand.isFormationEnabled (rpg_windows.js:1660) at Window_MenuCommand.addFormationCommand (rpg_windows.js:1607) at Window_MenuCommand.makeCommandList (rpg_windows.js:1582) at Window_MenuCommand.Window_Command.initialize (rpg_windows.js:1295) at Window_MenuCommand.initialize (rpg_windows.js:1562) at new Window_MenuCommand (rpg_windows.js:1555) at Scene_Menu.createCommandWindow (rpg_scenes.js:780) at Scene_Menu.create (rpg_scenes.js:769) at Function.SceneManager.changeScene (rpg_managers.js:1654) at Function.SceneManager.updateMain (rpg_managers.js:1640)None of these seem to be coming from the Yanfly Party System plugin, but I do not know much about the structuring of how to JS is complied for the game maker etc.

So what am I doing wrong? Why is it not allowing me to implement the 5th party member without the error? Is there a way to add the character to a list of select-able characters in the Party System (Yanfly says nothing about this in the help file or website so if there is I have no idea how to do it)

Any help would be greatly appreciated, thank you so much.
I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.


The problem is the check for the formation screen - do you have any other plugin that affects formations?


What happens if you disable formation access by event command and then try to call the menu?
I have no other plugin that effects the formation screen, I have checked them all I have deactivated all plugins and tried and it still does it, I also turned off the formation in the system settings and still got the issue. I have tried all normal trouble shooting methods to figure out what's wrong but I am getting no where as the issue keeps happening no matter what I do.

Thank you for moving the thread, but the only reason I did not post it here in the first place is because I honestly think it's a problem with the program itself not a plugin issue.
It cannot be a problem with the program itself, or others would have reported that problem.


And the error message itself says that something changed the type formats - that cannot happen without cause, and it would never have worked if it were in the original engine.


You can simply test that by making a new project - there yu won't have the bug.


One question: how do you download the scripts?


Do you use download links or do you mark and copy them from the websites? Because such errors can also happen if any plugin (not only the one for that function) misses an end or a closure in the last line (due to not being copied).
Figured out the issue, it was the conditional branch I was using, I was trying to check if there was already 4 members in the party via script, and was doing it wrong, but for those who don't know how to properly check how many characters are in your current party the script line you want to use is

$gameParty.size() == 4

 

you can replace that number with however many you are wanting to check for.

Original thread: https://forums.rpgmakerweb.com/threads/party-issue-number-is-not-a-function.54143/