Additional Actors Problem

Hi there i'm hoping someone can help me out on here.


I'm using both: 


Yanfly's Battle Engine Core : http://yanfly.moe/2015/10/10/yep-3-battle-engine-core/


Yanfly's Party System :          http://yanfly.moe/2015/11/20/yep-29-party-system/


I have the amount of actors set to 4 (as my game requires). I want to add a extra actor during battle.


If I use the add actor command within a common event + skill. nothing happens. 


If i use the annotated plugin command within the common event: ChangePartyMax 5 


It then adds the extra actors portrait. but once the round of turns end. It returns the error within the screenshot.


If anyone knows a way round this, or some kind of solution I would be very grateful. I just need to be put out of my misery after battling with this for a while.

Spoiler
Error.png
Here for a bump. Still stuck on answer. 
The reason this occurs is because what you're attempting to do is outside the plug-in's functionality. It simply wasn't designed to work like that.


There is, however, a workaround that I don't know that you'll like, but if you're really desperate for it to work:
 


After the Plug-In Command to change the max party members, use the script call "SceneManager.push(Scene_Party);"


Once the player exits this scene, it will (sort of, and for lack of a better term) "refresh" the battle setup, placing the 5 character into the battle properly.


Dependent on what you're trying to achieve here (I assume Summoning?), you can lock the actor, and it will keep that actor in the party, that way the player can't just swap out the actor you're swapping in.
The reason this occurs is because what you're attempting to do is outside the plug-in's functionality. It simply wasn't designed to work like that.


There is, however, a workaround that I don't know that you'll like, but if you're really desperate for it to work:
 


After the Plug-In Command to change the max party members, use the script call "SceneManager.push(Scene_Party);"


Once the player exits this scene, it will (sort of, and for lack of a better term) "refresh" the battle setup, placing the 5 character into the battle properly.


Dependent on what you're trying to achieve here (I assume Summoning?), you can lock the actor, and it will keep that actor in the party, that way the player can't just swap out the actor you're swapping in.

I'm afraid SceneManager.push(Scene_Party); does nothing to fix the problem still get same error
Hmm...I got it to pass the situation for me...


Regardless, the RMMV system (let alone Yanfly's Plug-Ins) were not (to my knowledge) designed for this.


Sorry. :rsad:
The problem is a bit deeper than most people believe.


Most battlesystems have a problem with adding more actors, because usually they generate the extra data needed for an actor on battlestart only. If an actor is added later, that extra data is missing and sooner or later will result in undefined errors.


To solve this, the function for adding the actor also needs to create the data needed by the battlesystem - which is why you almost always need a summoning script, and those summoning scripts are usually only compatible to the default and the battlesystem the scripter himself uses.


I suggest looking if Yanfly already wrote a summoning script for his battlesystem - you'll need that, the commands from the party plugin most likely will not work during battle, only outside battlescreen.

Original thread: https://forums.rpgmakerweb.com/threads/additional-actors-problem.63057/