Galv Character effect crashes when I remove all party members but one.

Here is a link to the script https://galvs-scripts.com/galvs-character-effects/ Would appreciate any help I can get. Galv script crashes.PNG

I've moved this thread to RGSsx Script Support. Thank you.

What method are you using to remove the characters, If I try with Galv's demo and yanfly's party system, there is no problem.
Perhaps there is a script causing a problem?
If you are already using the backtracer, you should give us a Screenshot of its console output like said in the error message...

That said, this error is most likely because there is something left of the removed actors in the data. How and where die you remove the actors? If you simply delete them in the database, that is not enough...
I'm not using yanfly party system. I think this is what you mean console.PNG
And I'm using this to remove characters. I'm just trying to make a solo mission. And have them regroup afterward. I'm not using the database. remove characters.PNG
Does that error happen if you start a new game and go to that event, or only if you load an old saved game and then activate the event?

Nil-errors like that means that the script is missing data declarations, and that usually only happens if either several scripts are incompatible to each other (unlikely here because the other scripts would have been listed on the console) or if a script was added to an older (and now incompatible) savefiles.
When I load a old game. But it still crashes when I start a new game as well.
This error pointed in this line
Code:
@reflect = actor.reflect
This error may happen when there is no party member left as "actor" would be nil. Besides, if you remove all party members, it will go to gameover screen in the first place, so removing all party member should not be done. Are you trying to switch into a different party?
I do keep one actor in the party. I'm not trying to switch party. I only have 4 members in my party. I know about the 'Galv crashes when there are no members in the party bug.' So I avoid doing that.
Hmm... I can't think of other possibilities. There're some things need to test like the formation of your actors, what if you remove only one, two, removing the leader first, etc. Will it yield the error? Or it would only happen if you remove the actors in a certain pattern. But even with that, I don't think it will help.

Anyway, while I don't think it will help nor identifying what was the cause, but maybe try to apply this patch?
Code:
class Game_Player
  def refresh
    galv_reflect_gp_refresh
    unless actor
      @reflect = false
      if SceneManager.scene_is?(Scene_Map)
        SceneManager.scene.spriteset.refresh_effects
      end
      return
    end
    @reflect = actor.reflect
    @reflect_sprite = actor.reflect_sprite
    @icon = actor.icon
    if SceneManager.scene_is?(Scene_Map)
      SceneManager.scene.spriteset.refresh_effects
    end
  end
end
Nope.Didn't work. Think I'll just delete it altogether.Too much trouble. The patch just shows all party members are missing.
Then most probably that is the cause - either because the actor you believe to be left in the party is removed by something else, or because that actor is not correctly initialised and causes the engine problems due to that.
The patch just shows all party members are missing.
Maybe, they ARE missing in the first place. How can you be sure if there is one left?
Regardless, I'm curious if you remove the script, there won't be further issues. Let me know
Nevermind. I'm so dumb. I found an event that I completely forgot about that removed all the members of the party but one. And with the other one I used it removed them all. It works fine now. It was not where I usually placed the events. So I didn't notice it.

Original thread: https://forums.rpgmakerweb.com/threads/galv-character-effect-crashes-when-i-remove-all-party-members-but-one.92053/