MV Primary Actor Changing?

So I can't find anything on this and I'm 100% certain it's caused by of one of the plugins I've installed. (I've only gotten Yanfly because of compatibility) I know this because in test runs BEFORE I installed the plugins it was working how I wanted it to.

But when I use the Change Party Member... event it replaces the Primary Actor with the selected party member. I've tried using the event twice to try and change it back to the preferred PA but that doesn't work. I didn't change the event at all other than that.
1.JPG

2.JPG


I want to know which plugin might be causing this and how I can fix it. Again this wasn't an issue before I installed the plugins because I playtest every event during and after development.

I would really appreciate any help.
I want to know which plugin might be causing this and how I can fix it.
I don't know what exact plugins you're running, so I can't say which one is the issue.
However, it's fairly simple to figure this out on your own, if a bit tedious. In your plugin manager, you can disable one plugin at a time, save changes, then test your event and see if it works as intended. Eventually you'll narrow it down to the problem plugin, assuming a plugin is causing such issue, which would make it a lot easier to sort out the exact source of the problem.
I don't know what exact plugins you're running, so I can't say which one is the issue.
However, it's fairly simple to figure this out on your own, if a bit tedious. In your plugin manager, you can disable one plugin at a time, save changes, then test your event and see if it works as intended. Eventually you'll narrow it down to the problem plugin, assuming a plugin is causing such issue, which would make it a lot easier to sort out the exact source of the problem.
I have all of the Yanfly plugins, which is the biggest problem. I have a general idea of which plugins it *might* be but I've been trying to figure out which one it might be without having to do that.
So I figured out which plugin it was, and it was the one I thought it was, (Party System) but I don't know how to fix the issue at all.
I'd start with the simplest question. Does your project NEED the party system plugin, or is any other plugin yoiu are using dependent on it? If not, then simply remove that plugin and move on from there. Also ask yourself the same question for all the plugins.

I was monkeying around with the Yanfly library a while back, and while it is cool to have access to all that added functionality, since I wasn't really needing a great deal of it for what I was trying to do, it didn't make sense to keep them all installed.

If you've already answered this question for yourself, then I apologize.

Also, check your load order and make sure that the party system is where it should be.

I kind of like how the VisuStella library for MZ simplifies the explanation load priority, classing them each in one of five groups, with lower number groups having higher priority. With group 1 (the core plugin)at the top and Group 5 at the bottom, as long as they are all in the right group, it'll work.. No more this one has to be under that one and that one under this one and so on.
check your load order and make sure that the party system is where it should be
I went through the site's reccommended load order and triple checked everything was in the right place. It is, and the Party System while not inherently *needed* I do prefer it visually and it is also required for one of the plugins that I also prefer.

Even if I didn't want it right now, I might want it in the future for something specific and I would need to know how to fix it then too.
So presuming that by "primary actor" you mean the actor in the front of the party...something else is funky/wrong on your end. I use the Party System plugin (along with a decent number of other things) and the Change Party Member event command does not do that for me.

Also, what exactly do you mean by replaces? Do you mean visually, that the newly-added actor is in the front of the party and the old leader is behind, or do you mean that the old leader is entirely gone from the party?

Either way, this is not expected behavior. You say you've checked that the order of your Yanfly plugins is correct - you should start checking your non-Yanfly plugins, disabling them one at a time to see if you can find a conflict.

You could also try the functionality built into the Party System to lock your first actor in the party...there's both a plugin parameter for it and a plugin command you can call. But this is a workaround, and if there's a conflict between two of your plugins it may cause problems in other places as well.
So presuming that by "primary actor" you mean the actor in the front of the party...something else is funky/wrong on your end. I use the Party System plugin (along with a decent number of other things) and the Change Party Member event command does not do that for me.

Also, what exactly do you mean by replaces? Do you mean visually, that the newly-added actor is in the front of the party and the old leader is behind, or do you mean that the old leader is entirely gone from the party?

Either way, this is not expected behavior. You say you've checked that the order of your Yanfly plugins is correct - you should start checking your non-Yanfly plugins, disabling them one at a time to see if you can find a conflict.

You could also try the functionality built into the Party System to lock your first actor in the party...there's both a plugin parameter for it and a plugin command you can call. But this is a workaround, and if there's a conflict between two of your plugins it may cause problems in other places as well.
Point 1 - Yea, primary actor being at the front. The newly added actor is now the leader. This is not what I want

Point 2 - I don't have any other plugins installed, I've only added Yanfly for that particular reason

Point 3 - I've actually tried this workaround (especially since I have a 'main character' thing going on it doesn't actually change my plans) but that doesn't work either, once the new party member joins, they shunt the old party member to second place.
I don't know what to tell you...as I've said, I use the plugin and that has never happened for me.

Is your project updated to the current version of MV (open the Game.rpgproject file in a text editor and check it says 1.6.2)? Are all of the plugins updated to their current versions? If you turn off every plugin but the Party System, what happens?
Hi, I don't know if it will be possible to analyze all the Plugins to find the cause of the problem, it's most likely a compatibility issue, I made a mini-plugin that replaces the add and remove group member function, maybe it's a alternative solution:

SimplePartyManager.js
JavaScript:
/*:
 * @author DevWithCoffee
 * @plugindesc Simple - Party Manager
 *
 * @help
 * Call Script Command:
 * actorManager(ActorID, Add/Remove)
 * ActorID = Number on Database
 * true = Add member
 * false = Remove member if in group
 */
function actorManager(id,b){
    /*Add Member*/
    if(!$gameParty._actors.includes(id) && b == true){
        $gameParty._actors.push(id);
    }
 
    /*Remove Member*/
    if($gameParty._actors.includes(id) && b == false){
        $gameParty._actors.splice($gameParty._actors.indexOf(id),1);
    }
    $gamePlayer.refresh();
}

Sorry about my English.

Good luck.

Original thread: https://forums.rpgmakerweb.com/threads/primary-actor-changing.139774/