Lecode Tactical Battle System 0.77.2B

Yes. Live updates are previews for the next version.

@MinesharkGaming & @Ronivan please look in LeTBS.js for these lines:
Code:
BattleManagerTBS.prepareEntityFlags = function () {
    .....
};
(Line 1743~)
Replace them with:
Code:
BattleManagerTBS.prepareEntityFlags = function () {
    $gameMap.events().forEach(function (event) {
        if (event && event.event()) {
            for (var i = 0; i < event.list().length; i++) {
                var command = event.list()[i];
                if (command && command.code == 108) {
                    var comments = command.parameters;
                    for (var j = 0; j < comments.length; j++) {
                        var comment = comments[j];
                        if (comment.match(/<LeTBS>\s?Flag\s?:\s?(.+)/i)) {
                            this._startupFlags[event.x] = {};
                            this._startupFlags[event.x][event.y] = RegExp.$1;
                        }
                    }
                }
            }
        }
    }.bind(this));
};

Let me know if the issue is fixed.


What do you mean ? Can you show some pictures ?

Thanks for the help, but I managed to fix the bug myself by changing up the item giving event. Anyways, thanks so much!
79e650a0a6.png


In the animation editor the image is normal, but in game it's strange. It lacks color, or opacity.

^^ Thanks

In the animation menu, click the "Batch" button and hit the "Blend" drop down menu, and choose normal.
In the animation menu, click the "Batch" button and hit the "Blend" drop down menu, and choose normal.

Oh. Thanks ^^' My bad it was not LeCode ^^' Sorry
I was wondering if there was a way to make it so your whole team goes first then the enemy's team? So basically, I was wondering if you could make it turn-based (except your whole team goes on your turn and vice-versa).
I know I've been posting a lot of "bugs" but... I have another one...
Screenshot_1.png
Screenshot_4.png

Any ideas on how to fix it?

Edit: I was just being dumb, I forgot to put the actor and ememy cells.
Hey, I was just trying out the demo (it's very nice, and I look forward to further updates), when it crashed while I was running the autobattle mode, with the error "LeUtilities.getMinInArrayBy(...) is undefined"

Code:
BattleManagerTBS.getCellTowardParty@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:4452:12
TBSAiManager.prototype.updateMoveActionsBuilding@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:4694:30
TBSAiManager.prototype.updateActionConstruction@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:5056:9
TBSAiManager.prototype.update@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:5027:29
BattleManagerTBS.updateBattleProcessing@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:2554:9
BattleManagerTBS.updatePhase@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:1885:13
BattleManagerTBS.update@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:1761:5
Scene_Battle.prototype.update@https://lecodemv.github.io/leTBS/miniDemo/js/plugins/LeTBS.js:932:9
SceneManager.updateScene@https://lecodemv.github.io/leTBS/miniDemo/js/rpg_managers.js:1829:13
SceneManager.updateMain@https://lecodemv.github.io/leTBS/miniDemo/js/rpg_managers.js:1790:13
SceneManager.update@https://lecodemv.github.io/leTBS/miniDemo/js/rpg_managers.js:1714:9
  rpg_managers.js:1756:9
   SceneManager.catchException https://lecodemv.github.io/leTBS/miniDemo/js/rpg_managers.js:1756:9
   SceneManager.update https://lecodemv.github.io/leTBS/miniDemo/js/rpg_managers.js:1717:9
Screenshot included here
I also got a bug report (I think)! When I enable auto-battle in the demo, at some point after a few turns the battlers just stop doing anything altogether.

Oh and a thing I realized only after ages, it might be helpful to people to know it: While in auto-battle mode, you have to hold the button you use to turn it off. (Define the button in the auto-battle plugin's settings.) I kept just tapping it like a fool and wondered why it didn't work.
how resolved this problem?
x3tudl.png
how resolved this problem?

looks like a simple plugin order error
A few bugs/possible fixes/edits required i have come across...

1. if you have more players in a party than spots in the map, it places extra player in top left corner of map, then errors out(as pictures below)
Spoiler: picture


2. even if you put in for it to use default sprites, you still need to create dummy sprites with the same character name(doesnt matter what pic is shown in the png)

Spoiler: picture



3. Auto battle crashes when enemy/hero's decide to go to the same tile

Spoiler: picture


4. I want to remove location facing so you dont get to choose what way theyre facing. removed many lines from the config but still doesnt stop it.
any easy idea?

5. when clicking auto battle, how to cancel it mid-game?

6. how to change the look/design or the character select menu for the battle?

and finally

7. how to start the battle without filling all the character boxes? say for example i have 4 characters, but only want 2 to battle. i cannot start without all tiles filled
how resolved this problem?
x3tudl.png

looks like just a simple plugin order error. moving the order of ur plugins should fix it
Any plans on letting people costumize the UI? Or does it exist already and I'm just to blind to see it? x)
Do you have plans to make it a bit more friendly for Touch Input? Im making a kinda simple Game with it and try to port this to mobile devices..
but right now controlling the characters via Touch feels clunky as hell .. just want to know since I'm mor eor less working on a workaround for that problem and thats some time i could spend otherwise if you already thought of that x)
Any plans on letting people costumize the UI? Or does it exist already and I'm just to blind to see it? x)
Do you have plans to make it a bit more friendly for Touch Input? Im making a kinda simple Game with it and try to port this to mobile devices..
but right now controlling the characters via Touch feels clunky as hell .. just want to know since I'm mor eor less working on a workaround for that problem and thats some time i could spend otherwise if you already thought of that x)

I use touch on mine and it works perfectly fine with Galvs Touch Plugin
So I have another issue...
Screenshot_1.png
Screenshot_2.png

Any more wonderful ideas to fix this?
Am I missing an actor or a file?
looks like just a simple plugin order error. moving the order of ur plugins should fix it
how?

Galv's will work with it (as per inbox) amd also u can change the sizes of the windows and texts in thr letbs.js file
So I have another issue...
View attachment 66358 View attachment 66359
Any more wonderful ideas to fix this?
Am I missing an actor or a file?

What were u trying to do? Put the player on the map? Select a position? Or something else? I cannot replicate any of the errors than what ive posted above. Yours seems to be using the incorrect <Actor Cell> number maybe?
I was in trouble with the display of the command window so I will report it.

If the battle map is quite large, it seems that the command window can not be displayed properly.
(This map is 50 x 50 tiles.)

I expect it to be caused by a specification that restricts the command window from going out of the screen.

Thank you for developing this plugin.

Spoiler
スクリーンショット 2017-06-12 15.11.36.jpg
Hi, i just tried downloading the plugin and when i try to lauch a battle i get an error "cannot read property 'fixed' of undefined. it also happens on the online demo.
Hi, i just tried downloading the plugin and when i try to lauch a battle i get an error "cannot read property 'fixed' of undefined. it also happens on the online demo.

I seem to get those errors too when A] At the start of an enemy's turn (maybe they picked a tile that's already occupied or something?) or B] I accidentally click a green deployment tile right after setting down an actor on the map.

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