Yanfly Battle Engine Core and Target Core issue

When I have only Yanfly's Battle Engine Core plugin and Target Core plugin on, my enemies will attack the first turn but not do any damage, then I get a Type Error saying "undefined is not a function". Can anyone explain why this may be happening? I'm not sure what would be causing this, especially since these two plugins are meant to work together. I also haven't changed any of the base code.
Please play until you get the error, then hit F8 to bring up the developer tools, and take a screenshot of the console window. That will have more information about the error.

I had a quick look and couldn't see any info about it, but does the Battle Engine Core require the Core Engine? Do you have them in the correct order (Battle Engine Core first, Target Core after)? Do they have the correct file names?

It is possible that you've just got some note tags set up incorrectly as well. Hard to know until you let us know what's in the console.
When I have only Yanfly's Battle Engine Core plugin and Target Core plugin on,
does this sentence mean that you previously had other plugins and only turned them off?
If so, does the error happen after a new game or after loading a saved game?

Turning on or off a plugin is the same as installing it or not, and each such change requires you to start a new game (with only very simple plugins excepted from this).
That is because savefiles are usually only compatible to the exact plugin configuration they were saved with, and loading a savefile under a different plugin configuration is the most common cause for "undefined"-type errors.
Please play until you get the error, then hit F8 to bring up the developer tools, and take a screenshot of the console window. That will have more information about the error.

I had a quick look and couldn't see any info about it, but does the Battle Engine Core require the Core Engine? Do you have them in the correct order (Battle Engine Core first, Target Core after)? Do they have the correct file names?

It is possible that you've just got some note tags set up incorrectly as well. Hard to know until you let us know what's in the console.

view


I have the plugins ordered correctly, and I have both because they're required for the X_SelectionControl Plugin I want to use. I've checked all note tags that I can think of that would interfere with anything and made sure they're correct. Also, I took the screenshot after a Troop test, not the game itself.
does this sentence mean that you previously had other plugins and only turned them off?
If so, does the error happen after a new game or after loading a saved game?

Turning on or off a plugin is the same as installing it or not, and each such change requires you to start a new game (with only very simple plugins excepted from this).
That is because savefiles are usually only compatible to the exact plugin configuration they were saved with, and loading a savefile under a different plugin configuration is the most common cause for "undefined"-type errors.

Yes, I turned on and off all my plugins one by one to figure out which one(s) had the problem, and the error only occurs when both these two are on. And it's actually during the Troop test, in addition to happening during the game itself.

I've moved this thread to Plug-in Support. Thank you.

two problems can be identified from your screenshot:

1) you need to rename your folders in a way that they conform to networking rules.
In this specific case you need to remove all spaces from all foldernames
Just check your error messages: whereever a symbol in the filenames is replaced by a %-number combination (like the spaces being replaced with %20) that indicates a problem for the browser with file handling.
And that can cause problems

2) I haven't seen those missing map file errors in ages - I think your project's corefiles are too old or incomplete, you should update your project.
Please tell us which version of the editor are you using, and which version of the core is in your project?
Open the projects rpg_core.js file with a text editor to get its version, and check the editor in the about window.
two problems can be identified from your screenshot:

1) you need to rename your folders in a way that they conform to networking rules.
In this specific case you need to remove all spaces from all foldernames
Just check your error messages: whereever a symbol in the filenames is replaced by a %-number combination (like the spaces being replaced with %20) that indicates a problem for the browser with file handling.
And that can cause problems

2) I haven't seen those missing map file errors in ages - I think your project's corefiles are too old or incomplete, you should update your project.
Please tell us which version of the editor are you using, and which version of the core is in your project?
Open the projects rpg_core.js file with a text editor to get its version, and check the editor in the about window.

I removed all spaces in all folders, and the editor is version 1.5.2 and the rpg_core is 1.6.0. Is that why I'm having issues?
Are you saying the issue happens when you play the game properly, as well as during the battle test? Some plugins don't work in battle test (or event test) because they load their settings as part of normal database loading, which does not get run during battle test or event test.


Strange that your core files are more recent than your editor. Though ... 1.6.0 had a lot of issues. I'm guessing you updated to 1.6.0 and started your project, then had issues that caused you to roll back to 1.5.2 but you only rolled back the editor and not your project. I suggest you either roll your project back to 1.5.2 as well, or update your editor (and project) to 1.6.1. The instructions are in the update thread. Easiest way might be to start a brand new project in your current (1.5.2) editor, reinstall the plugins, then copy over your data folder and any folders containing custom resources. That'll at least remove 1.6.0 as the potential culprit.
@Shaz 1.6.0 is older than 1.5.2
Because of the bugs in 1.6.0 the update to 1.5.2 was created later to incorporate the stable parts of 1.6.0 without the big core change that caused the bugs.

@drumblepie you should update both your editor and your project to 1.6.1 which is the latest stable version.
@Andar - completely forgot that! Silly of me to expect newer versions to have higher numbers 😀
@Shaz 1.6.0 is older than 1.5.2
Because of the bugs in 1.6.0 the update to 1.5.2 was created later to incorporate the stable parts of 1.6.0 without the big core change that caused the bugs.

@drumblepie you should update both your editor and your project to 1.6.1 which is the latest stable version.
I updated my editor but I don't really know how to update the project itself; my project is still 1.6.0 according to my rpg_core js file.

Also the Battle Engine Core plugin still causes the bug, but now the error message says "BattleManager.isTurnBased is not a function"

Console screenshot:
view
check this forum for the latest update announcement topic.
It should be 1.6.1 and contain instructions for updating projects.
Okay everyone I updated to 1.6.1 AND found that Yanfly had an update for the Battle Engine Core Plugin. I updated both and now everything works (not sure which did the trick), but I'm all set now. Moral of the story, make sure everything is up to date! (Unless it's version 1.6.0, haha 😅)

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-engine-core-and-target-core-issue.102672/