Battle Party Problem

Im new to RPG Maker MV. I have made a room where I (Main Character) walk in, then another character (new party member) walks in, we talk then he gives me a dagger, and 8 other characters (enemies) surrounds us and a battle ensues. I have everything done, except for the party during the battle, which for some reason does not seem to work right. When the battle starts, two guards and my party come onto the screen. This is the problem: I only have two party members, but four people are attacking, and only one actor shows up.


Photo 1.PNG


I have created another mock battle in another room that has me walking and randomly gaining a character (Photo 2)


Photo 2.PNG


and then battling(Photo 3),


Photo 3.PNG


and that is correct: two characters both showing up. What am I doing wrong?


I also included the 'code' where the new member give me a dagger, joins the party, the guards move to surround us, and the battle begins (Photo 4).


Photo 4.PNG
Most probably you erased actors without removing them from the starting party in the system tabs. Make sure that there are no additional starting party members there and then test again.
I haven't erased any actors, and the only starting character that I have is Alistair, the main character.
Then you have a plugin that messes up your game, or some of your game files have been damaged.
Then you have a plugin that messes up your game

I haven't used a plugin.

some of your game files have been damaged.

How would I know, and how could I fix it.


Update:


I was able to get the sprite of the new character to be showing. But there are still 4 characters in battle.
Did you make your starting parting JUST the red guy? Is the battle on top an in game battle or just a test battle from the rpg maker program screen? If it's a test battle maybe you forgot to in add an deleted characters.. I had the same problem when I started on my first project. A team full of invisible nobodies. Make sure to delete any characters you don't use, not just clear them but delete the entire character, and make sure you starting party is just whoever you want. I'm not good at explaining these things. I haven't been on in a while. Sorry.
Update:


I have a save spot right before I first meet the new character. If I go to the Actors tab of the database, and limit it to 2 actors, and test the game from the save spot, I get the error, 'Type Error, Cannot read property 'isAppeared' of null'. However, If I run the game from the beginning with the actor limit set to two actor, it runs fine.
Is the battle on top an in game battle or just a test battle from the rpg maker program screen? If it's a test battle maybe you forgot to in add an deleted characters.

No, all of the photos that I posted were actual game tests, not just a test battle.
A savefile contains some data from the database - if you changed the database after saving (especially deleting actors that still existed in the savefile), then loading the old savefile can cause a lot of problems.


If it works when you play it with a new game, then you have no error in your game - you just did something that invalidated your savefile, and should erase that savefile.
How do I erase a savefile?
don't use it, overwrite it, or ignore it. It doesn't harm you unless you load it.

Original thread: https://forums.rpgmakerweb.com/threads/battle-party-problem.55542/