conflict between SkipPartyCommand and Yanfly ATB/CTB

I have been dedesigning the battle menu UI so I'd like to remove the partycommand window and put the escape command directly in the actorcommand window.

I was able to do that with some amateur edits to the script. Luckily now there is a plugin for this:
https://soulxregalia.wordpress.com/2015/11/21/rmv-skip-party-command/

With this you no longer need the partycommand window, everything is in the actorcommand window. (Note that this is different from the SkipPartyCommand option that comes with Yanfly BattleCore plugin. Yanfly's only hides the partycommand at the beginning of battle, you can still access it by pressing Esc.)

However, this edit is not compatible with ATB or CTB system by Yanfly. I have not tried to test others.

Everything is good if the escape is successful.

But the battle will get stuck if I failed to escape. The sprites will still update with idle animation, But looks like there is no further battle action going on (no atb gauge update, etc).

This only occurs for atb and ctb, but the default dtb system does not have this issue.

I’m not familiar with the whole structure of the battle turn updates. This has been bothering me for a long time and I don’t get a clue to solve this, because the codes for escape actions look not much different from the default codes.

Does anyone have any idea that which part of the script might be the problem? Thanks in advance!
someone helped me solve the issue, the key is that a separate escape command needs to be defined for the actor

see the "commandEscapeActor" added here. tested and it works fine 🙂

Code:
Scene_Battle.prototype.createActorCommandWindow = function() {  this._actorCommandWindow = new Window_ActorCommand();  this._actorCommandWindow.setHandler('attack', this.commandAttack.bind(this));  this._actorCommandWindow.setHandler('skill', this.commandSkill.bind(this));  this._actorCommandWindow.setHandler('guard', this.commandGuard.bind(this));  this._actorCommandWindow.setHandler('item', this.commandItem.bind(this));  //    this._actorCommandWindow.setHandler('cancel', this.selectPreviousCommand.bind(this));  this._actorCommandWindow.setHandler('escape', this.commandEscapeActor.bind(this));  this.addWindow(this._actorCommandWindow);  this._actorCommandWindow.opacity = 150; }; Scene_Battle.prototype.commandEscapeActor = function() {  var actorIndex = BattleManager._actorIndex;  BattleManager.selectNextCommand();  BattleManager._actorIndex = actorIndex;  this.commandEscape();}

Original thread: https://forums.rpgmakerweb.com/threads/conflict-between-skippartycommand-and-yanfly-atb-ctb.52423/