Lecode Tactical Battle System 0.77.2B

I can upload the project. So far it has just one map.

I don't know how to do a stack trace.

When running a play test, the developer's console should open.

upload_2018-4-18_8-31-28.png
Actually, you need to press F8 to open the console.
Actually, you need to press F8 to open the console.
I'd probably know that if my console didn't open automatically.
Here's my project so far:

http://www.mediafire.com/file/d4aof8afrsvlo0r/combat_test_temp_01.zip

Combat is supposed to start when you click on the guy with blue hair and a bubble over his head.

I was able to look at the stack trace, but am not familiar enough with the scripts to understand it.
Part of the problem is that I was mixing up two different versions of the plugin. I have decided to instead base things off only Chaosicaa's LeTBS 0.77.2B demo.

However, I am still unable to start combat. The problem has something to do with the placement of enemy sprites, I think. I'm not sure how to copy the error log to the forum.

Here's the updated project:

http://www.mediafire.com/file/nin90n3cwb3dky8/combat_test_temp_02.zip
Part of the problem is that I was mixing up two different versions of the plugin. I have decided to instead base things off only Chaosicaa's LeTBS 0.77.2B demo.

However, I am still unable to start combat. The problem has something to do with the placement of enemy sprites, I think. I'm not sure how to copy the error log to the forum.

Here's the updated project:

http://www.mediafire.com/file/nin90n3cwb3dky8/combat_test_temp_02.zip


You need only screenshot it

I'l look in the morning
Part of the problem is that I was mixing up two different versions of the plugin. I have decided to instead base things off only Chaosicaa's LeTBS 0.77.2B demo.

However, I am still unable to start combat. The problem has something to do with the placement of enemy sprites, I think. I'm not sure how to copy the error log to the forum.

Here's the updated project:

http://www.mediafire.com/file/nin90n3cwb3dky8/combat_test_temp_02.zip

So here's how it is.

In your plugin configuration, you "Placed" animation is 249, your "collapse" animation is 250, but your project only goes up to 120
I set placed to 120 and collapse to 119 for now. It's up to you to fix those.

You're also missing the System/window2.png from the demo (I copied this to the files you sent)

You're also missing ALL your animation files.
(Unless you stripped them all out to make your project smaller for testing)

Download Lecode's demo and replace your animations.

You also need to fix your sprites.

upload_2018-4-19_7-31-41.png


You can't make it use the use_chara for sprites that ARENT 48x48
You need to use the _idle, 3

upload_2018-4-19_7-40-57.png


I decided to fix the sprites.

But because of your events (Crashed car) players can't move past it or select enemies beyond it.
You may want to create a second map, remove the events you don't need in the battle map, then transfer the player there, call battle (same event)
Then use a win/loss branch -> loss = game over win = transfer player back to Main map.

upload_2018-4-19_7-40-38.png



What I meant by win/loss branch
You can also record the player's x/y/map id before hand and transfer the player to the exact spot they were in (Perfect for random encounters)
upload_2018-4-19_7-46-35.png



Here's a zip file of your project that I fixed for you.
https://www.dropbox.com/s/lj7ppawmppfqer7/combat_test.zip?dl=0
(I use FlipelyFlips large troops modified by me to fix a crash in their code) so this map will literally be

Any chance you could share that with the fix? I'd like to do something similar to what you've done but can't write any scripts.

Though if it's easy and simple enough I could fix it on my own.

Thanks~
Any chance you could share that with the fix? I'd like to do something similar to what you've done but can't write any scripts.

Though if it's easy and simple enough I could fix it on my own.

Thanks~

Basically just comment out or delete this block shown here:
and replace with this._enemies.push(enemy);

If you're not comfortable editing the JS, here's a link to my modified version:
https://www.dropbox.com/s/psfdkp3t8m8z8n3/FFP_MultipleTroops.js?dl=0

upload_2018-4-20_7-9-1.png
So still having issues where with

sequence(dead): dead_vanish
causes the enemy to disappear but any enemy that lands on their square is immune to damage.

v77
Greetings I would like to ask if anyone is getting same error as me when trying to run battle.

TypeError
Cannot read property 'apply' of undefined

I set up all LeTBS plugins in same order like in documentation on site, made plugin command LeTBS before battle process, created map with cells and specific event notes(i mean <Actor Cell>, <Enemy Cell>), even created whole new project and added just LeTBS plugins and things from LeTBS folder("demo") error was still there.

Then I tried to download recommended demo uploaded by Chaosicaa and got this error instead. TypeError: Cannot read property 'select' of undefined

idk if that will help but there is screen of both console errors(from property select error console I assume that I made something wrong with starting cells).
I currently use 1.5.1 rpg maker MV version.
Greetings I would like to ask if anyone is getting same error as me when trying to run battle.

TypeError
Cannot read property 'apply' of undefined

I set up all LeTBS plugins in same order like in documentation on site, made plugin command LeTBS before battle process, created map with cells and specific event notes(i mean <Actor Cell>, <Enemy Cell>), even created whole new project and added just LeTBS plugins and things from LeTBS folder("demo") error was still there.

Then I tried to download recommended demo uploaded by Chaosicaa and got this error instead. TypeError: Cannot read property 'select' of undefined

idk if that will help but there is screen of both console errors(from property select error console I assume that I made something wrong with starting cells).
I currently use 1.5.1 rpg maker MV version.
Looks like you don' have the placement animations set up properly

Look in letbs.js

You'e like the 30th person to ask this lol
@Pharonix

Thanks a lot!

I think I may have found a bug. Happens sometimes, not always, when I place my third unit on the field.

Spoiler: image
Untitled.png
Untitled.png
[/url][/IMG]
Performance optimization I
Check this out guys.

I set up all LeTBS plugins in same order like in documentation on site
Hello, you should rather download the demo uploaded by Chaosicaa that I linked on the first page, then use the same order there. The doc is frankly outdated.
@Pharonix Thanks for taking an interest in my project!!

So here's how it is.

In your plugin configuration, you "Placed" animation is 249, your "collapse" animation is 250, but your project only goes up to 120
I set placed to 120 and collapse to 119 for now. It's up to you to fix those.

Could you explain this in more detail? I don't know what the "placed" and "collapse" animations are.

[Edit: I see what you mean now. You made a good choice using 119 and 120. They look pretty good.]

You're also missing the System/window2.png from the demo (I copied this to the files you sent)

Thanks!

You're also missing ALL your animation files.
(Unless you stripped them all out to make your project smaller for testing)

Yes, I am trying to make a minimal installation at the moment.

Download Lecode's demo and replace your animations.

Isn't Lecode's demo very, very outdated? I have been using Chaosicaa's LeTBS 0.77.2B demo.

You also need to fix your sprites.

View attachment 87752

You can't make it use the use_chara for sprites that ARENT 48x48
You need to use the _idle, 3

View attachment 87754

Thanks!

[Edit: How do I set up enemies (not just characters!) whose sprites are larger than 48x48? Also, how does the game know to choose "_idle, 3" when I haven't yet specified an enemy battler sprite?]

[Edit: I was able to figure this out on my own.]

I decided to fix the sprites.

But because of your events (Crashed car) players can't move past it or select enemies beyond it.

I tested this and was also unable to move past the car, but I think it was due to too many corpses lying in the way. I will test again later.

[Edit: The problem is indeed the corpses lying on the ground. Is there a way to disable the generation of corpses? I would rather the bodies just disappear completely.]

You may want to create a second map, remove the events you don't need in the battle map, then transfer the player there, call battle (same event)
Then use a win/loss branch -> loss = game over win = transfer player back to Main map.

View attachment 87753


What I meant by win/loss branch
You can also record the player's x/y/map id before hand and transfer the player to the exact spot they were in (Perfect for random encounters)
View attachment 87755

LOL! You are *looking* at the battle map. The main map is much bigger!

But this brings up some important issues:

* The parallax background does not seem to be properly attached to the map during a battle. It does not scroll with the rest of the scene.
* All the sprite events (lamps, fire hydrant, car, houses, etc.) are missing during a battle!

Is there any way to fix this?


Here's a zip file of your project that I fixed for you.
https://www.dropbox.com/s/lj7ppawmppfqer7/combat_test.zip?dl=0

Thanks so much! It was very helpful.
@Pharonix @Lecode

Thanks a lot for the help.

EDIT: Holyy I am so dumb. Was wondering how LeTBS automaticly know which map is battle map and how I can make more battle maps and I figured out I need to add transfer to specific map before battle. Lecode you need to make special easy step-by-step documentation for ppl like me :-D
so i was trying to modify my sort order for combat using this (b._battler.agi+(Math.randomInt(b._battler.luk)) - (a._battler.agi+(Math.randomInt(a._battler.luk)) but i get an error "Unexpected end of input"



Edit: Derp nvm lol
Would it not be possible to display icons in the enemy text?

EDIT: Using Victor Engine I was able to do this, Then I removed the following:

Line 77 from FlipelyFlip's Large troops,
Lines 5266,10406,10415 from RPG_Objects
Removing these 4 lines removed the "A", "B", "C" etc from the enemy names.


upload_2018-4-22_16-5-24.png
I have several questions/issues regarding TBS, and was wondering if any of you could comment on or address them:
  1. Corpses seem to block line-of-sight of magic attacks. Can this be turned off?
  2. Can I get rid of corpses entirely? How do I do this?
  3. All other map events on my map (buildings, lamps, fire hydrants, cars, etc.) disappear during battle. I need them to always be visible!
  4. The image I use for the map's ground level also disappears. I am using the Bind Pictures To Map plugin.
  5. I want to use action points instead of whatever is being used currently. I want to be able to use the same pool of action points for whatever actions I choose, including movement. I want to also be able to see the number of action points remaining in the GUI. Is this possible?
  6. I want the turn order boxes at the top of the screen to show faces instead of battlers, since my battlers are bigger than 48x48 pixels. Can this be done?
  7. Not sure what to do with respect to "_dead" sprites. My characters are taller than 48x48 pixels, and will require more space when lying on the ground than is currently afforded (unless I can think of a clever alternative). Currently, I just place an icon of a skull and bones on the map where they die.
  8. It can be hard to select a target using the mouse, because the game scrolls the map when clicking on an enemy. I think this only happens with double clicks. E.g. the map scrolls between the first and second mouse click, so the second click is always a miss.
  9. The GUI on the far left side of the screen obscures characters if they are also on the far left side of the screen. (One solution might be to add empty space around the sides of the map, so that the game window can scroll farther in every direction.)
Thanks!
Good questions. I hope you get answers to them as they would help me as well.

To answer number 7.
If you are using larger sprites then you can't use the UseRTP plugin. You need to create a separate sprite sheet in the battlers folder for each of the animations you are using. For example you will need _atk, _move, _dead and ect.


If I could add one question to yours.

10. Is it possible to make corpses block movement but not block line of site similar to how the region ID 249 works?

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