Skip Party Command

I'm looking for a way to disable the party command in the battles. I'm using a plugin by​

Zevia called SkipPartyMenu. The problem is that when the party command would normally come the game crashes with this error.​

PSE2.png
the only plugin that shows up in a search for what you mentioned is for MV. it wouldnt work in MZ if thats what youre using. the thread is in the MZ section, but your profile's preferred engine is set to MV and this is an MV plugin.

have you visited this thread?
I tried this script as a plugin from that thread earlier.
//=======================================================================
// Skips over the Party Command Window when first entering Battle
Scene_Battle.prototype.startPartyCommandSelection = function() {
this._statusWindow.deselect();
this._statusWindow.show();
this._statusWindow.open();
this._actorCommandWindow.setup(null);
this._actorCommandWindow.close();
this._partyCommandWindow.setup();
this.selectNextCommand(); // Automatically chooses "Fight" pushing you into the Actor Window
};
//=======================================================================
When too many actions were executed it crashed with this message.PSE3.png
Did you continue reading the thread?
What I'm trying to do in my game is make it where when you hit the cancel key (in battle) it cycles through the active party members and never goes to the party command. This script works exactly the way I want it.
//=======================================================================
// Skips over the Party Command Window when first entering Battle
Scene_Battle.prototype.startPartyCommandSelection = function() {
this._statusWindow.deselect();
this._statusWindow.show();
this._statusWindow.open();
this._actorCommandWindow.setup(null);
this._actorCommandWindow.close();
this._partyCommandWindow.setup();
this.selectNextCommand(); // Automatically chooses "Fight" pushing you into the Actor Window
};
//=======================================================================
The only problem is i get the range error crash screen i posted before when I do anything in battle.

Zer0Morph made this script but the thread is a little old. Otherwise I'd post it on that. What the person on that thread was doing wasn't what I'm trying to do.​

The game I'm working on has an active battle system with gauges, like in Final Fantasy 4. Here is a demo I released. https://psychoholic42.itch.io/souls-of-elemia
In case it helps, I linked a couple of plugins here:
There are multiple ways to design and code the appearance of "no party window". Removing it completely would require reprogramming the scene's flow, and patching any core or plugin methods that reference the now-absent window. By contrast, a typical solution is to just tell the window to auto-OK itself whenever it is given focus.

I've written plugins for this before, in case you want to try those (and haven't already):
If they don't work, you can try turning off all other plugins, save your project, then test again. If that helps, and you want help figuring out which plugin(s) are causing the problem, then you can share screenshots of the Plugin Manager so we can check for conflicts, load order issues, etc.
From what you've said, I'd suggest the TPB one. 👋

(Note: if you're actually using a different battle system, from a plugin, then none of the core-based solutions are guaranteed to work, since the plugin's battle flow might bypass core methods entirely. In that case you should share which plugins you are using, e.g. screenshots of your Plugin Manager, as well as relevant information about how you have them configured, e.g. battle system settings.)
In case it helps, I linked a couple of plugins here:

From what you've said, I'd suggest the TPB one. 👋

(Note: if you're actually using a different battle system, from a plugin, then none of the core-based solutions are guaranteed to work, since the plugin's battle flow might bypass core methods entirely. In that case you should share which plugins you are using, e.g. screenshots of your Plugin Manager, as well as relevant information about how you have them configured, e.g. battle system settings.)
I tried the TPB one but I still couldn't use cancel to cycle through the actors. I want to be able switch between the active party without going to the party command.

In case it helps, I linked a couple of plugins here:

From what you've said, I'd suggest the TPB one. 👋

(Note: if you're actually using a different battle system, from a plugin, then none of the core-based solutions are guaranteed to work, since the plugin's battle flow might bypass core methods entirely. In that case you should share which plugins you are using, e.g. screenshots of your Plugin Manager, as well as relevant information about how you have them configured, e.g. battle system settings.)
I turned off all my plugins and still wasn't able to switch between the active party with your TPB plugin.
I want to be able switch between the active party without going to the party command.
OK, try this one instead~
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc No party command (Fight, Escape) for TPB system.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/176490/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Patch - cycle actors, skipping party command.
void (alias => {
    BattleManager.selectPreviousCommand = function() {
        alias.apply(this, arguments);
        if (this._inputting && !this.actor())
            this.changeCurrentActor(true);
    };
})(BattleManager.selectPreviousCommand);

// Patch - reset flag to false to block turn-0 party command.
void (alias => {
    BattleManager.initMembers = function() {
        alias.apply(this, arguments);
        this._tpbNeedsPartyCommand = false;
    };
})(BattleManager.initMembers);

// Override - in TPB-Wait mode, allow multiple actors to be charged at once.
Game_Actor.prototype.shouldDelayTpbCharge = function() { return false; };
I did some very basic tests and it seemed OK for me. 👋
OK, try this one instead~
Spoiler: plugin code
JavaScript:
/*:
 * @target MZ
 * @plugindesc No party command (Fight, Escape) for TPB system.
 * @author Caethyril
 * @url https://forums.rpgmakerweb.com/threads/176490/
 * @help Free to use and/or modify for any project, no credit required.
 */
// Patch - cycle actors, skipping party command.
void (alias => {
    BattleManager.selectPreviousCommand = function() {
        alias.apply(this, arguments);
        if (this._inputting && !this.actor())
            this.changeCurrentActor(true);
    };
})(BattleManager.selectPreviousCommand);

// Patch - reset flag to false to block turn-0 party command.
void (alias => {
    BattleManager.initMembers = function() {
        alias.apply(this, arguments);
        this._tpbNeedsPartyCommand = false;
    };
})(BattleManager.initMembers);

// Override - in TPB-Wait mode, allow multiple actors to be charged at once.
Game_Actor.prototype.shouldDelayTpbCharge = function() { return false; };
I did some very basic tests and it seemed OK for me. 👋
Thank you! It works just the way I want it and doesn't crash. I will credit you in my game.

Original thread: https://forums.rpgmakerweb.com/threads/skip-party-command.176490/