MV Issue with YEP_PartySystem and total actors in party

I'm confident my issue is that a script somewhere it conflicting with it and overwriting the amount of party members, I just can't figure out where. I won't allow me to change it, first I thought I just wasn't able to exceed 4, but then I set it lower and it still stays at 4.

Is there any way to figure out how many scripts have written to a specific function since game start to narrow down which plugin is conflicting with this one? I also tried moving the plugin to the bottom as I thought this might override whatever it was conflicting with, but no luck.

It will display 5 members on the main menu, and if I go to formation I can select them and move them around, but if I enter the party menu it still acts like there's only 4, there are 3 followers (after party leader = 4), and 4 battlers.

[edit]
So, I did manage to find a function for $gameParty.changeBattleMax(X); which does work, at least, to adjust the menu and battle party size. Small success.

I had literally given up on ever finding the script that was conflicting with it and now I only have Yanfly Core and Party System enabled, and it doesn't work. The party menu does, but these options don't work at all. Is this a known bug?

[edit 2]
I created a new project, and it did work there.

[edit 3]
I figured it out, it only works on new games but will not work on loaded saves. At least I know where to start now.
I also tried moving the plugin to the bottom as I thought this might override whatever it was conflicting with, but no luck.
one thing to note, Yanfly's plugins have an intended order to be loaded in. if its not correct, then you can encounter many different problems. the order is as they appear on their website
1752912772184.png


I had literally given up on ever finding the script that was conflicting with it and now I only have Yanfly Core and Party System enabled, and it doesn't work
for future reference, you can use the devtools window to search for function definitions in your project. What you'd be looking for to see what determines the maximum number of battle members would beGame_Party.prototype.maxBattleMembers.Itd let you see if a plugin is specifically overwriting it when you click on them. all it takes is one plugin overwriting a function others use to break the other plugins if its loaded after them.
1752911493947.png


I figured it out, it only works on new games but will not work on loaded saves.
in general, you always should start tests on fresh saves. theres data plugins write into saves that they need that they only ever write as a new game begins. Loading old saves is an easy way to run into issues with the mismatched data. That being said, in the case of the party system it shouldnt have been an issue if you did use changeMaxMembers() afterwards.

I take it youve solved your own issue? or was there another? you made reference to stuff "working" and "not working" with specific windows, but its unclear which ones you meant and if theyre all set up the way you want them now.
for future reference, you can use the devtools window to search for function definitions in your project. What you'd be looking for to see what determines the maximum number of battle members would beGame_Party.prototype.maxBattleMembers.Itd let you see if a plugin is specifically overwriting it when you click on them. all it takes is one plugin overwriting a function others use to break the other plugins if its loaded after them.
View attachment 345388


in general, you always should start tests on fresh saves. theres data plugins write into saves that they need that they only ever write as a new game begins. Loading old saves is an easy way to run into issues with the mismatched data. That being said, in the case of the party system it shouldnt have been an issue if you did use changeMaxMembers() afterwards.

I take it youve solved your own issue? or was there another? you made reference to stuff "working" and "not working" with specific windows, but its unclear which ones you meant and if theyre all set up the way you want them now.
This is exactly what I was looking for, and some of that information I didn't know. The nature of the project I'm working on required me to keep pressing forward with saves but I didn't realize party adjustments like that were going to be as tedious. That's fine though, now I know.

I did find Game_Party.prototype.maxBattleMembers in the script so I started doing some modifications from there, but I couldn't find success in making YEP_PartySystem recognize there was 6 members outside of the main menu status screen. It would add the party members, but when entering Yanfly's custom party screen, it would still only show 4 members, and 4 followers. I couldn't find any way to force a previous save to recognize I'm looking for 6 now. It's okay, because I can speed run the save to the area I need it to be for what I'm doing, as this is the last major script I needed, it's just tedious because I need to change the start map for the time being to do balance testing to see if 6 party members is going to be the way to.

Thank you for that information though, extremely useful.
Yanfly's custom party screen
can you provide a screenshot of the menu in question? im not sure what that could be referring to other than yanfly's modified formation menu.

It's okay, because I can speed run the save to the area I need it to be for what I'm doing, as this is the last major script I needed, it's just tedious because I need to change the start map for the time being to do balance testing to see if 6 party members is going to be the way to.
if youre replaying everything for testing purposes then by all means test away. but if its just a specific point you need to get to then i suggest setting up a debug test room with events to set up your party in specific ways so you can just transfer to your areas in question. itll save you much time in the long run
can you provide a screenshot of the menu in question? im not sure what that could be referring to other than yanfly's modified formation menu.
It's literally that, that plugin comes with it's own custom menu for "Formation" but I had changed it to "Party." That scene allows you to add and remove party members, but in the top right corner depending on the settings it can show all your active party slots, so by default you will see 4. When I changed it to 6, it was still showing 4. Changing it to 6 and starting a new game made it work correctly, I just hadn't realized there was no way to set it midgame.

Different question, I didn't want to make a new thread for this. With a 6 party system, I'd like to have a 3x2 layout for battlers. 3 columns, 2 rows. I realize you can accomplish this with Yanfly's Row Formation plugin, but I don't really want to be able to assign anything other than moving them around. I just want it setup so that it's laid out like:
PartyMember1 PartyMember4
PartyMember2 PartyMember5
PartyMember3 PartyMember6

I've been digging through battle core because all I really want to do is say:
If actor === 1 && actor =< 3
Do a for loop for pos y and x

if actor => 4 && actor =< 6
Do a for loop for pos y and x + backrowxpos

I sort of got something I wanted, if anyone comes looking and is using YEP_BattleEngineCore, params:
Home Position X:
Code:
screenWidth - [364, 332, 300, 264, 232, 200][index]
Home Position Y:
Code:
(screenHeight / 2 - 50) + [100, 148, 196, 100, 148, 196][index]

There may be a better way to do this, but documentation for this sort of thing is so difficult to find, so here's a starting place at least.
When I changed it to 6, it was still showing 4. Changing it to 6 and starting a new game made it work correctly, I just hadn't realized there was no way to set it midgame.
part of my confusion was because that window does automatically adjust based on battle party size normally. the max displayed columns for that window is $gameParty.maxBattleMembers();,directly. If youve been using $gameParty.changeBattleMax();to change your party size, then that window should have been changing midgame as well unless you have another plugin interfering.

I've been digging through battle core because all I really want to do is say:
If actor === 1 && actor =< 3
Do a for loop for pos y and x

if actor => 4 && actor =< 6
Do a for loop for pos y and x + backrowxpos
your x position would use a division of the actor's index by 3 rounded down with Math.floor(), while your y would use a modulus of 3
part of my confusion was because that window does automatically adjust based on battle party size normally. the max displayed columns for that window is $gameParty.maxBattleMembers();,directly. If youve been using $gameParty.changeBattleMax();to change your party size, then that window should have been changing midgame as well unless you have another plugin interfering.


your x position would use a division of the actor's index by 3 rounded down with Math.floor(), while your y would use a modulus of 3
This is what I would have thought, but no dice. It's the only plugin involved, it just refuses to write correctly if it hasn't been started from a new game. I believe it's because some of the other functions don't have any type of update function after initialization, and there doesn't seem to be a way to call it as far as I can tell. I was going to try initializing midgame, but I have to rewrite a lot of it to do it correctly.

your x position would use a division of the actor's index by 3 rounded down with Math.floor(), while your y would use a modulus of 3.
I get the logic, I was struggling to figure out where to place it. Modifying the BEC plugin is working for now. I expected these YEP plugins to all just kind of work out of the box, but it's one thing after another with these.

I've added YEP_VictoryAftermath for the after battle status screen and that plugin is a mess too. There's a 50/50 chance it just fails to update and freezes for extended periods of time, I've googled it and I'm not the only one who's ran into this issue.

This is exhausting. 🤣

[edit]
Console doesn't throw any errors either, alt tabbing can fix it...sometimes.

[edit2]
Found the issue, on line 602, comment out:
Code:
// if (Graphics.frameCount % 4 !== 0) return;
it just refuses to write correctly if it hasn't been started from a new game.
so just for clarification, did the project not have the party system plugin installed beforehand and youve added it to an existing file? just glancing through the plugin, whenever it uses maxBattleMembers(), it initializes it with the plugin parameter's value if $gameParty._BattleMaxSize is explicitly undefined. AFAIK, it shouldnt be an issue with version 1.13

I just gave it a quick test and even then, changing the max party size midgame works and the formation menu reflects it. are you sure the command to change the battle party size is being ran at all? if you try to read $gameParty._BattleMaxSize via the console, use $gameParty.changeBattleMax(8)to change it to say 8 for testing's sake, and then reread $gameParty._BattleMaxSize, does it not change?

but also all this needing to handle old and new data is why its always recommended to start tests with new saves. Its one thing if youre specifically trying to test for some kind of continuity, but updating data and then continuing old files will more often than not just result in increasingly more issues when the data becomes relevant

Modifying the BEC plugin is working for now.
you didnt have to modify the plugin for it. theres plugin parameters for the actor positions. Granted, depending on your workflow its sometimes easier to sidestep parameters and put such code inside the plugin itself, but it wasnt necessary to.
----
Edit: i see the edit on your prior post now. yeah, thats perfectly fine. not quite how i would have thought to go about it, but completely functional.
I just gave it a quick test and even then, changing the max party size midgame works and the formation menu reflects it. are you sure the command to change the battle party size is being ran at all? if you try to read $gameParty._BattleMaxSize via the console, use $gameParty.changeBattleMax(8)to change it to say 8 for testing's sake, and then reread $gameParty._BattleMaxSize, does it not change?
Sorry, it does reflect the party screen correctly. It won't update the follower length though.
Sorry, it does reflect the party screen correctly. It won't update the follower length though.
you could just set the parameter for maximum followers to be 5 or some number higher to catch your absolute maximum. The actor followers wont show up if they arent in the battle party

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-yep_partysystem-and-total-actors-in-party.179017/