YSA ATB + BATTLE SYMPHONY - ESCAPE ERROR

Hello,

I have noticed a bug/compability error with these two scripts.

When you select escape while the enemy hasn't finished his action,

the following error occurs:

NoMethod Error line 1636

undefined method "spriteset" for nil:NilClass

Here is the line in Symphony:

   def pose=(pose)

    @pose = pose

    return if self.actor? && !$game_party.battle_members.include?(self)

*    self.sprite.correct_change_pose if SceneManager.scene.spriteset *

  end

Any ideas on how to fix??
That's probably happening because Battle Symphony is attempting to animate someone while you're escaping.  The way the script works is by creating a list of actions to run.  If you escape battle before the list completes, the sprites that it was manipulating no longer exist because they get disposed.

If that ATB script lets you take turns during enemy turns, that's kind of the problem.

Here's what I would try: get rid of escape.  Turn escape into a Skill or Command Menu option so that actors must wait their turn for the ability to fire.  When the actor tries to escape, no enemies should be acting.

If that doesn't work because the time gauges are still going, you will have to implement a time freeze during ability usage.  Since Battle Symphony already uses tags, it should be simple to create a new tag that stops time.  Put that tag at the beginning of every ability and put a time starter tag at the end of every ability, that way no one should ever be taking a turn at the same time as someone else.  If you're very good at coding, you can also just implement the time freeze directly to happen at the start and end of every ability (probably during the setup and finalizing stages of Battle Symphony skills).
Is there a tag to stop time?

Or do I have to make it myself?

And if yes how do I do that?

I have an idea!

Is it possible to make a button trigger an escape attempt?

EDIT:

Would it be possible to make it impossible to select Escape while an action happens?

Or even better:

you press the escape button, characters start to run,enemies finish their actions,and if escape is successful,end battle.
I'm not certain, I'd have to look at the code in detail, but I think since escaping is not part of the normal menu commands, it happens at a different part of the process from everything else.  That's why I'm thinking you need to disable escape completely and replace it with a skill that does the same thing.  I think skills should work within the boundaries of Symphony and you wouldn't have this issue, but that's only a guess presently.  I've never had Symphony crash on me during a normal battle where I wasn't trying to escape (probably because the battle ended when all the enemies were already dead...).
Ok,I've tried doing it via an actor's skill and it still throws an error (different line though)

Also it looks really weird(and funny), the characters start dissapearing one by one.

But I guess you can edit that with symphony tags...

Oh it seems YSA ATB has an option to halt the time while the party command window is open...

Still throws an error if you open it when an enemy attacks and escape though!

I'll try rewriting process escape to see if i can come up with something....
Sorry, random question, but can Symphony and Yanfly Battle Engine be used together?
I am using them together right now and there is no problem!
Which do you have on top in your scripts? I get a stack error when I tried using them together last.
I have Yanfly on top...

Original thread: https://forums.rpgmakerweb.com/threads/ysa-atb-battle-symphony-escape-error.23247/