auto-placing actors requires the use of <actor cell: x> where x is the actor id.
as for the code that actually auto-starts battle, its a bit more difficult.
WARNING: Before Doing ANY of this, backup your Config file. I won't take responsibility if you mess up your code.
Add this function:
BattleManagerTBS.checkAllyCells = function () {
var nbrFixedActors = this.allyStartCells().filter(function (cell) {
return cell._positioningData.fixed != null;
}).length;
if (this.allyEntities().length === (nbrFixedActors + $gameParty.members().length)
|| this.allyEntities().length === this.allyStartCells().length) {
LeUtilities.getScene()._windowPositioning.deactivate();
LeUtilities.getScene()._windowPositioning.deselect();
this.positioningPhaseEnd();
LeUtilities.getScene()._windowConfirm._handlers.ok();
}
};
This essentially is a rip of the code that checks all ally cells when you place an actor, but is a callable function that you can then call in the initail pre-positioning phase.
The only difference between this call and the original is that instead of having the 3 LeUtilities calls (2 before the bold, 1 after) it just has the in-bold.
Look for:
BattleManagerTBS.processPositioningPhase
Then you will see 2 function calls:
this.processActorsPrePositioning();
this.processEnemyPositioning();
Place the call right after the enemy positioning one.
View attachment 98011
THEN there's the issue with the BATTLE START image displaying
This will fix it:
After this line:
Lecode.S_TBS.battleStartSpriteDelay = Number(parameters["Battle Start Sprite Delay"] || 50); // (): Duration of the battle start sprite.
add these 2
Lecode.S_TBS.battleStartSpriteWidth = Number(parameters["Battle Start Sprite Width"] || 672); // (): Width of the battle start sprite.
Lecode.S_TBS.battleStartSpriteHeight = Number(parameters["Battle Start Sprite Height"] || 138); // (): Height of the battle start sprite.
By default the image display for these gets messed up using the above code to auto-start, this will fix that. You should set this height/width to the Height and width for the battle start graphic.
Then look for this function:
BattleManagerTBS.battleBeginning = function () {
Comment out these two lines with //
//this._startSprite.x = Graphics.width / 2 - this._startSprite.width / 2;
//this._startSprite.y = Graphics.height / 2 - this._startSprite.height / 2;
this._startSprite.width results in 0 for the above auto-start patch. so replace with this:
this._startSprite.x = Graphics.width / 2 - Lecode.S_TBS.battleStartSpriteWidth / 2;
this._startSprite.y = Graphics.height / 2 - Lecode.S_TBS.battleStartSpriteHeight / 2;
This will make it use your now pre-determined width/height for the battle start graphic.
I don't think I missed anything.