Lecode Tactical Battle System 0.77.2B

Chaosicaa, any updates on the progress of v0.8?

I am curious about this as well. Its been at least a month since your last post. Is v0.8 very playable or does it have some issues?
How big of a difference, performance wise, is this version compared to the older one? Is it worth waiting a long time for or should we just go with the older version?
I am curious about this as well. Its been at least a month since your last post. Is v0.8 very playable or does it have some issues?
How big of a difference, performance wise, is this version compared to the older one? Is it worth waiting a long time for or should we just go with the older version?

Old version still works beautifully
.8 is supposed to be more asynchronous or so i have heard.

My game will likely be released on 0.72
But will have been heavily modified by me.
But battles still run great.

Its an amazing system
I wouldn't say it works beautifully, it has its share of bugs. I do agree it is still an amazing system considering that it is one of only two TBS
scripts for MV out there. I was working with the 0.76 version until Lecode announced 0.8. Since then I have been putting my project on hold.

So the thing I need to know is Chaosicaa able to play test the battles now or is he still waiting on Lecode to fix that silly bug? If he is still waiting then I might as well continue on the old version.
I wouldn't say it works beautifully, it has its share of bugs. I do agree it is still an amazing system considering that it is one of only two TBS
scripts for MV out there. I was working with the 0.76 version until Lecode announced 0.8. Since then I have been putting my project on hold.

So the thing I need to know is Chaosicaa able to play test the battles now or is he still waiting on Lecode to fix that silly bug? If he is still waiting then I might as well continue on the old version.

If you plan on doing .8 then wait.
Im likely gonna release on 77a, siince i have hundreds of enemies i need to reconfigure for 0.8
I am curious about this as well. Its been at least a month since your last post. Is v0.8 very playable or does it have some issues?
How big of a difference, performance wise, is this version compared to the older one? Is it worth waiting a long time for or should we just go with the older version?
I feel u, I'm in the same boat. Torn between waiting for v0.8 or not. It's not like I'd be finished w/ my project any time soon so I'd have to upgrade and probably reconfigure things when v0.8 releases anyways.
Sorry if this has been asked before is it possible to use parallax maps with this? i'm having some trouble using mine I can't see my character and it looks like almost 4 of the same map on one screen
Been fiddling around with this system, its pretty cool.
But I can't seem to figure out what determines the Turn Order.
Changing the AGI stat doesn't seem to have an effect, and I don't see anything to do with the Turn Order listed on the documentation (checked the Timeline Control section too, nothing there either).

Does anyone know how to edit the "Turns" so that ALL of your allies must be moved before the enemies will start moving?
I feel u, I'm in the same boat. Torn between waiting for v0.8 or not. It's not like I'd be finished w/ my project any time soon so I'd have to upgrade and probably reconfigure things when v0.8 releases anyways.
There is actually nothing wrong with using the current version, although 0.8's new GUI and battle control are attractive. I'll most likely not move to 0.8 due to the movement of sequences from the Config File to Notetags.

Sorry if this has been asked before is it possible to use parallax maps with this? i'm having some trouble using mine I can't see my character and it looks like almost 4 of the same map on one screen
The TBS should work with parallax maps. This seems like a parallax problem. Are you using any parallax plugins?

Been fiddling around with this system, its pretty cool.
But I can't seem to figure out what determines the Turn Order.
Changing the AGI stat doesn't seem to have an effect, and I don't see anything to do with the Turn Order listed on the documentation (checked the Timeline Control section too, nothing there either).

Does anyone know how to edit the "Turns" so that ALL of your allies must be moved before the enemies will start moving?
Pharonix actually figured out how to do exactly what you are asking for a few posts back. You can look at his postings to see the solution. Not quite sure if he actually shared it.
Thanks for the help, I did figure out how to do it 😀

I do have a couple more quick questions though,

Firstly, Is there a way to entirely remove the menu where you deploy your units? If you use <Actor Cell: #> on all your actors, you can't actually click through the menu and therefore can never start the battle 😮

Secondly, Is there a setting somewhere to remove the Direction feature, so that actors are just always facing the front (unless they're moving)? This would also mean that - once movement had been confirmed - that the option to choose your direction could be removed entirely.
Basically I'm looking for a way to remove the direction system as a whole 🙂
Thanks for the help, I did figure out how to do it 😀

I do have a couple more quick questions though,

Firstly, Is there a way to entirely remove the menu where you deploy your units? If you use <Actor Cell: #> on all your actors, you can't actually click through the menu and therefore can never start the battle 😮

Secondly, Is there a setting somewhere to remove the Direction feature, so that actors are just always facing the front (unless they're moving)? This would also mean that - once movement had been confirmed - that the option to choose your direction could be removed entirely.
Basically I'm looking for a way to remove the direction system as a whole 🙂
Pharonix figured out how to do the first thing you said a few posts even further back. The guy has spent a lot of hours on this. 😀

Unfortunately, the second thing you want doesn't have a setting and might prove difficult to do because of how command phases work.
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.

Thanks so much for this! Not sure if it should be, but after doing this fix the Battle Start image isn't displaying at all, it just jumps straight to Actor 1's turn after warping everyone in. I'm pretty sure I followed all your instructions accurately... any ideas?
Thanks so much for this! Not sure if it should be, but after doing this fix the Battle Start image isn't displaying at all, it just jumps straight to Actor 1's turn after warping everyone in. I'm pretty sure I followed all your instructions accurately... any ideas?

Send me your Javascript file.
I'll double check it.

Realized I forgot to mention 2 parameters that need to be added:


Place these 2
*
* @param Battle Start Sprite Width
* @desc Width of the battle start sprite.
* @Default 672
*
* @param Battle Start Sprite Height
* @desc Height of the battle start sprite.
* @Default 138

Below

* @param Battle Start Sprite Delay
* @desc Duration of the battle start sprite.
* @Default 50
==================

And:

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.

Below

Lecode.S_TBS.battleStartSpriteDelay = Number(parameters["Battle Start Sprite Delay"] || 50) ; // (): Duration of the battle start sprite.

[I edited my original Post]
Help!! How to make confuse(Attack allies) status??
Help!! How to make confuse(Attack allies) status??

I had to reprogram alot of stuff to do that.

Its in a post a ways back.
If you dont know javascript, i suggest waiting until lecode patches it for real
I had to reprogram alot of stuff to do that.

Its in a post a ways back.
If you dont know javascript, i suggest waiting until lecode patches it for real

Thanks. I know the basics of JavaScript. and have JavaScripters. If I can't read this script... I think I'll ask my friends for help.
I know there are a thousand other posts here.. but having some difficulty with 0.77.2B. The error I'm getting is "cannot read property '_battler' of undefined", which seems to be coming from an empty enemies array... attachments below.. let me know if anyone has a clue what im missing...
I know there are a thousand other posts here.. but having some difficulty with 0.77.2B. The error I'm getting is "cannot read property '_battler' of undefined", which seems to be coming from an empty enemies array... attachments below.. let me know if anyone has a clue what im missing...
If you don't have designated enemies at the battle start with the Defeat All win condition. Random enemies will not satisfy that condition on their own because the array is empty at the beginning of combat. Not sure if you consider this a bug or not, but that's the explanation for the problem I was having.
Now I'm getting RangeError - Maximum call stack size exceeded. Was able to replicate it inside the demo project as well. Happens as soon as the battle start title is done. Seems to be on the final method call of the Beginning Phase End function in ProcessBattle() (The input handler tbs call)... stack trace included. Anyone have any ideas?
Now I'm getting RangeError - Maximum call stack size exceeded. Was able to replicate it inside the demo project as well. Happens as soon as the battle start title is done. Seems to be on the final method call of the Beginning Phase End function in ProcessBattle() (The input handler tbs call)... stack trace included. Anyone have any ideas?
It apparently only happens if the battle is rendered on the same map that called it. so i can work around just fine.. not sure if this is considered a bug or not or if this is a known limitation, but there it is.
It apparently only happens if the battle is rendered on the same map that called it. so i can work around just fine.. not sure if this is considered a bug or not or if this is a known limitation, but there it is.

Not sure if that error is the one I think it is.
But..
If you send me the map file I will be happy to take a look at it.


Few things to look for:

1). inaccessible events. Make sure every event on a map where you call a battle has at least an empty event page as page 1. The system has some issues when other events with switch conditions aren't allowed to be rendered, yet the LeTBS looks for them. So make sure their first page is empty.

2). Watch out for parallel / Autorun events. If you call a battle in an auto-run, make sure to call either
a). erase event ( for collision encounters)
b). increase self/non-self switches/variables, this is to ensure the event doesn't keep running. If an event is autorun and only has "Battle Processing" it will exceed the maximum stack.

Original thread: https://forums.rpgmakerweb.com/threads/lecode-tactical-battle-system-0-77-2b.71572/