Lecode Tactical Battle System 0.77.2B

EDIT: Oopies...unintentional double post.

ReferenceError: param is not defined
    at TBSAiManager.commandMoveForActionP2 (LeTBS.js:3974)
    at TBSAiManager.updateCommandMoveForAction (LeTBS.js:4155)
    at TBSAiManager.updateRunningCommand (LeTBS.js:4097)
    at TBSAiManager.update (LeTBS.js:3731)
    at Function.BattleManagerTBS.updateBattleProcessing (LeTBS.js:2005)
    at Function.BattleManagerTBS.updatePhase (LeTBS.js:1441)
    at Function.BattleManagerTBS.update (LeTBS.js:1335)
    at Scene_Battle.update (LeTBS.js:687)
    at Function.SceneManager.updateScene (rpg_managers.js:1788)
    at Function.SceneManager.updateMain (rpg_managers.js:1754)

I fixed it. It appeared once I updated my files to the lastest MV version. 🙂.
Looks very cool! I am having an issue though. When the enemy is about to make their first move, the game just freezes..The console says "out_of_range" or something like that. 
Looks very cool! I am having an issue though. When the enemy is about to make their first move, the game just freezes..The console says "out_of_range" or something like that. 

It's because the AI is processing. On very powerful computer the freeze won't even happens.


But I accelerated a lot the AI in 0.6. It's the experimental AI I was talking about.


If it's still not enough, I'll make the AI asynchronous.
I have a very fast computer but it still freezes. My game has quite a lot of scripts though. 


Here's a video of what it does. Your demo works fine though on my machine:
https://dl.dropboxusercontent.com/u/5405489/Star-Shift-Battle-Slow.mp4
I have a very fast computer but it still freezes. My game has quite a lot of scripts though. 


Here's a video of what it does. Your demo works fine though on my machine:
https://dl.dropboxusercontent.com/u/5405489/Star-Shift-Battle-Slow.mp4

Ho. Yup this isn't normal.


Paste your LeTBS.js code on pastebin. I'll add the 0.6 AI version to it.


Let's make some tests.
Here's the link:

http://pastebin.com/L57nnQUa
Try this: http://pastebin.com/CWVYqKn9.


If it's still slow paste here the TBS tag of your skills usable by this enemy.
I am basically just trying to a regular attack,I have "attack" set up as default skill for the ship. 

It freezes right after "X Enemy emerges" dialog. But again it's not really freezing, it does eventually make the move, but it's like 30 seconds per move. and the error of 

If an enemy is using the default attack does the skill still need some sort of tag?

the out_of_range error happens after the long 30 second pause between moves. 


Screenshot_9.png
The out_of_range thing isn't an error actually. It means that the enemy can't find any valide targets. Your actors are out of range. It's normal.


If the 0.6 AI version doesn't help so it's probably an incompatibility issue.

if an enemy is using the default attack does the skill still need some sort of tag?

No.
Knowing that this is being worked on just actually triggered an ASMR feeling in me!
Thanks for clearing up the skill tags for me, I understand now. 🙂


I still get the error about param being undefined though. I updated my client to the latest version and downloaded the plugin again (I was initially getting an error about easystar being undefined, looks like the easystar plugin is missing from the current version of the .zip and git repo? I just grabbed the plugin from my previous attempt.) In this project, all I have done is;


Create project;


install plugins in specified order;


create two events, ally 1 and enemy 1 & event to activate LeTBS;


create the rabbit troop & encounter to have 1 rabbit;


Start game, get into battle and all is well until randomly the game will crash and I will get the previously mentioned error. 


I downloaded your demo and that works fine so I'll see if I can figure out what's causing the crash for me that the demo resolves. I'm sure it'll be me doing something stupid. 


 ¯\_(ツ)_/¯


---


Setting the plugins up the same way they are set up in the demo appears to resolve the issue for me. At least that's what I think has resolved the issue. 
I still get the error about param being undefined though. I updated my client to the latest version and downloaded the plugin again (I was initially getting an error about easystar being undefined, looks like the easystar plugin is missing from the current version of the .zip and git repo? I just grabbed the plugin from my previous attempt.) In this project, all I have done is;

It's normal I haven't released the 0.6 version yet. I'm still working on it. Sorry for the confusion.

Knowing that this is being worked on just actually triggered an ASMR feeling in me!

What is ASMR ?
Ah, that makes sense - looking forward to 0.6 🙂


You mentioned somewhere that you were going to be looking into having AP to use skills (similar to Dofus) which I assume would reset at the start of each turn - I've been trying to get this working using MP or TP but resetting their values at the start of a characters turn in battle is puzzling me just now. Are you still planning to implement this kind of resource and if so, how far down the list is it? 😛  


Cheers
Ok I think I figured out the issue...The maps I was trying this on were massive...So I'm guessing the AI was trying to calculate for a map that was like 1000 x 1000 (a whole solar system). 

When I made the battle take place in a smaller map, it worked normally. 

But now I have a new error. It seems that I can move just fine now, but then when I try to attack or if the enemy tries to attack me, then it says "param is Undefined".

 


Screenshot_12.png


Thanks for the help by the way! I've always wanted to make a tactical space RPG aspect in my game. 
All working now. Thank You! It turned out to be a plugin conflict with Galv's basic event shadows plugin. 
You mentioned somewhere that you were going to be looking into having AP to use skills (similar to Dofus) which I assume would reset at the start of each turn - I've been trying to get this working using MP or TP but resetting their values at the start of a characters turn in battle is puzzling me just now. Are you still planning to implement this kind of resource and if so, how far down the list is it?

Hell yes I'll implement it. Probably for 0.7 or 0.8.

Ok I think I figured out the issue...The maps I was trying this on were massive...So I'm guessing the AI was trying to calculate for a map that was like 1000 x 1000 (a whole solar system).

I see. But I'm surprised the size of the map has so much impact on the AI. It calculate its next move based on its move point and the scope of its skills.


So, the more your enemy has move points and skills with large scope, the more it'll take time to calculate.


I'll search for what in the process involves so much the size of the map.

But now I have a new error. It seems that I can move just fine now, but then when I try to attack or if the enemy tries to attack me, then it says "param is Undefined".

It's the same error Caidran noticed. It's fixed on 0.6.


But it's strange how this error seems to disappear for whatever reasons. I didn't notice it untill I migrated to 1.3.4 version of MV.
I am experiencing an issue as well.

error.png
All I have to say is thanks again man! You've created the first tactical battle system for RPG Maker that I've seen that isn't a cluster to make it happen. Thanks so much!

Here's a preview of what I've got going on now. Thanks again:
https://dl.dropboxusercontent.com/u/5405489/Preview-space-battle.mp4
I'm not too good with editing sprite sheets, I want to make dead player sprite sheet from some web sources I've found, but I've no idea how to separate them correctly. I understand how they should be on the sheet, but not familiar with ripping/combining. Is there a particular program you use for this? 
I am experiencing an issue as well.

Tell me more. How it happens ? What have you done exactly ? Is it on the demo or on another project ?

All I have to say is thanks again man! You've created the first tactical battle system for RPG Maker that I've seen that isn't a cluster to make it happen. Thanks so much!

Here's a preview of what I've got going on now. Thanks again:
https://dl.dropboxusercontent.com/u/5405489/Preview-space-battle.mp4

Great ! Glad you like it.

I'm not too good with editing sprite sheets, I want to make dead player sprite sheet from some web sources I've found, but I've no idea how to separate them correctly. I understand how they should be on the sheet, but not familiar with ripping/combining. Is there a particular program you use for this? 

The number of frames of the spritesheet doesn't matter (since you can configure it in the configuration plugin) but it should have 4 lines, like normal charset (one for each direction 2 4 6 8). Of course each cell should have the same width and height (like normal charset again). As for the program, I'm using Photofiltre Studio...I don't have photoshop and I'm using it since RM XP. If you still can't manage to make it feel free to send me the ressources, I can combine them for you.

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