Lecode Tactical Battle System 0.77.2B

@Pharonix

Oh dear...thank you for that. However, I DO intend to use the AGI formula in my game, specifically for making it so that if the character's AGI is 5 or more higher than the target, they can attack twice. If I made all enemies AGI '1' and, presumably, any player AGI 2 or above, it would make all allies go first, but I could not do the calculation then. Additionally, since it's 'Type B'...can you select which ally gets to take action during their 'phase' with this Enemy AGI 1 method? Or do you have to play through them in a static order? Thank you for your quick reply, by the way.
@Pharonix

Oh dear...thank you for that. However, I DO intend to use the AGI formula in my game, specifically for making it so that if the character's AGI is 5 or more higher than the target, they can attack twice. If I made all enemies AGI '1' and, presumably, any player AGI 2 or above, it would make all allies go first, but I could not do the calculation then. Additionally, since it's 'Type B'...can you select which ally gets to take action during their 'phase' with this Enemy AGI 1 method? Or do you have to play through them in a static order? Thank you for your quick reply, by the way.

Yes, there is a static turn order - only the character whos turn is up is able to act.
What you are trying to do would require Lecode to add a completely new type of turn order.

EDIT: Well with extra turn, turn accel/decel, its as static as it gets. Buff/Debuffs to AGI are also considered I think.
this happens sometimes when I enter a fight is the arising of this is random, how can I solve?
upload_2018-1-12_16-55-26.png

plugins that I use
upload_2018-1-12_16-58-20.png
this happens sometimes when I enter a fight is the arising of this is random, how can I solve?
View attachment 80214
plugins that I use
View attachment 80215
can you send the stack trace.
What LETBS version are you on?
Hello, im currently trying to implement this battle system in my project and im having this error as soon as the player gets transfered to the battle scene. Ive been following the documentation but i dont really know what the problem might be. Also im using the same database the demo project uses.
7pKE4HE.png

de060fed-4b06-4433-8d35-9d4da637dd37
@Pharonix
Understood. I don't wanna bother him with the request, if he ever adds it in after 1.0 that would be great but there are other things to prioritize that I understand, thank you for the swift replies.

@Amarok
You're using the same database, but are you using the same map in that case? If it's something new that you made, the fact that position is undefined means it's either not tied to an actor cell to place your actors in. Confirm the map has events properly labeled as starting positions for the actors or maybe explain more about the map you're using for battle itself?
@Sissel Cabanela after reading your post i tried using the same maps of the demo aswell, now im getting this error:
ATqBdwq.png
can you send the stack trace.
What LETBS version are you on?

the version I use is 0.77.1, sorry but I do not know what it is "stack trace"
@Sissel Cabanela after reading your post i tried using the same maps of the demo aswell, now im getting this error:
ATqBdwq.png

What in tarnation. Not getting that error myself. Are you getting it as soon as you start battle? If you can, can you upload it somewhere? Since someone helped me, I'm willing to put in some time to try to investigate this for you, granted, I'm not AMAZINGLY experienced, but I can try.
What in tarnation. Not getting that error myself. Are you getting it as soon as you start battle? If you can, can you upload it somewhere? Since someone helped me, I'm willing to put in some time to try to investigate this for you, granted, I'm not AMAZINGLY experienced, but I can try.
That is definitely occuring during start.
According to that stack trace, it's occuring during the positioning phase.
upload_2018-1-12_23-48-2.png



What version of the demo are you using (LETBS version)
I've been slowly updating my project getting ready for 77.2/78 (Whichever Lecode decides on).

Its possible he has missing animations (Placement animation)
if you go from 77 to 77.1, the defaults for these animations Change a bit.
@Sissel Cabanela @Pharonix thanks for the help! i kept trying to pin point where the problem was exactly, so i removed all plugins and even copied all the data from the demo project to my own, and it worked finally. But after putting some of the essential plugins my project uses i started to get other errors like "Cannot read property X" or the game just freezing on start up, so my guess is that maybe LTBS is not compatible with some of the other plugins i use. So i will try again building in a new fresh project seeing wich exact plugins are incompatible and wich ones can also be removed.
@Sissel Cabanela @Pharonix thanks for the help! i kept trying to pin point where the problem was exactly, so i removed all plugins and even copied all the data from the demo project to my own, and it worked finally. But after putting some of the essential plugins my project uses i started to get other errors like "Cannot read property X" or the game just freezing on start up, so my guess is that maybe LTBS is not compatible with some of the other plugins i use. So i will try again building in a new fresh project seeing wich exact plugins are incompatible and wich ones can also be removed.
Hm. It could also be the order in which the plugins are inserted that is causing incompatibilities. Depending on what type of plugins you are using, for instance, those that affect battle itself, may need to go under the LeTBS. Do you have any other battle related plugins?
@Sissel Cabanela i removed the battle plugins except those of yanfly mentioned in the documentation, and seems like those were fine. So far i found one of the errors was caused by a mouse plugin (to make events clickable, etc) that seems incompatible with LTBS and it really sucks because my game depends on this plugin, so im currently looking for an alternative
@Amarok
Can you link the plugin you use for the event interaction? Also did you try it on both sides of the plugin list?
@Sissel Cabanela this is the plugin im using: http://mvplugins.tordamian.com/plugins/mouse-system-ex/
Also yeah i tried it before and after LTBS plugins but that doesnt seem to do anything.

EDIT: Finally i managed to get the battle system running in my project! though i had to rewrite the whole project with the files from the demo then add my own plugins again.

I also had to use this plugin by Hudell for clickable events: https://github.com/Hudell/mv-plugins/blob/master/OrangeInstantTriggerMouseEvents.js

Now the only problem is that certain graphical plugins dont show the images or ask for them even though the archives are on the game folder. Any way to solve that?
That's...strange. And mildly vague. Your files are compressed/archived?
this happens sometimes when I enter a fight is the arising of this is random, how can I solve?
View attachment 80214
plugins that I use
View attachment 80215
Sorry, but could you help me with this? I'm releasing a version of my game and need to fix it quickly
upload_2018-1-13_21-47-4.png
Sorry, but could you help me with this? I'm releasing a version of my game and need to fix it quicklyView attachment 80280
Of the plugins listed, at a glance it would seem like either the Tween/TweenJS_MVPatch is causing an issue to how the layout of LeTBS works. There's a low chance it's the Yanfly Mini-Label if you're trying to use it on an in-battle event as well, BUT I'm only saying that because I haven't tested it myself. First attempted to disable the Tween plugins and that, see if you get the same error. Also, remember to have a proper order of plugins.
That's...strange. And mildly vague. Your files are compressed/archived?

No the files are uncompressed pngs in their respective folders, ive noticed it only happens with Moghunter plugins, the rest seem to do fine.
In one particular case the plugin actually worked as i could see the effect (a particle) but the game still kept asking for the file.
My only guess is that maybe something broke when i replaced all the archives from my project with those of the demo.
Its a minor issue though, and i might just remove those plugins before touching something and risking breaking something else.
Of the plugins listed, at a glance it would seem like either the Tween/TweenJS_MVPatch is causing an issue to how the layout of LeTBS works. There's a low chance it's the Yanfly Mini-Label if you're trying to use it on an in-battle event as well, BUT I'm only saying that because I haven't tested it myself. First attempted to disable the Tween plugins and that, see if you get the same error. Also, remember to have a proper order of plugins.
This is my order, right?
upload_2018-1-14_17-11-22.png

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