YEP_CoreEngine is unrelated: it modifies the error-reporting method to show the trace in-game, that's why it's showing there.
The error seems to be back to what it was in
post #5, which is promising. This error makes me think that the
BattleManager.startAction method is setting the current
_subject to
null, because this is the core method (rpg_managers.js) giving rise to the error (comments by me):
JavaScript:
BattleManager.processForcedAction = function() {
if (this._actionForcedBattler) { // if true, forced battler is not null
this._turnForced = true;
this._subject = this._actionForcedBattler; // so cannot be null here
this._actionForcedBattler = null;
this.startAction(); // so must be set null here
this._subject.removeCurrentAction(); // to cause that error here
}
};
You're manipulating the action via the
<Custom Action Start Effect> tag of Buffs & States Core, which hooks into
startAction. However, I don't see you doing anything obvious to change the battle manager subject in that notetag, and the code itself seems to be straight from
Yanfly's Paralyze Tips & Tricks article...
That said,
the STB plugin is unsupported. You could try testing:
- With only 3 plugins turned on (for the Paralyze notetag):
- YEP_BattleEngineCore, my fix, and YEP_BuffsStatesCore.
- With only 4 plugins turned on (STB system enabled):
- YEP_BattleEngineCore, my fix, YEP_X_BattleSysSTB, and YEP_BuffsStatesCore.
(Note that you can press Ctrl+A in the Plugin Manager to select all plugins, then right-click -> Turn OFF to turn them all off at once.
I suggest testing in a copy of your project, rather than the real thing. Alternatively you could try to reproduce the relevant setup in a new project, without all the extra plugins & content complicating things.)
- If it errors out even in case 1, then I'm not sure what's happening. 😅
- If it works in case 1 but not in case 2, I'd guess it's an issue with forced actions in STB?
- If it works in case 1 and case 2, check your other plugins. I'd start with battle-related stuff.
As always, remember to save your project to apply Plugin Manager changes before testing, and make sure you Yanfly's plugins are loaded in the recommended order, listed on Yanfly's site:
www.yanfly.moe
It's also possible you are using outdated or edited core scripts. More info below in case you want to check that~
Spoiler: info on how to check/update core scripts
- Choose Game -> Open Folder from the editor's menu bar;
- Open the
js subfolder there;
- Open e.g.
rpg_core.js in any text editor (Notepad is sufficient).
- You'll see something like this at the top, unless it's really old:
Code:
//=============================================================================
// rpg_core.js v1.6.2
//=============================================================================
Functionally, I don't think the core scripts have changed since v1.6.1? If you're using an older version, or if you have edited any core script files at any point, you can update your project by carefully following the instructions in this announcement:
6/21/2018 Everyone, please read the instructions carefully. The bugs that are being reported shouldn't happen if the correct files were even copied properly. Such examples like the "CTRL BUG" shouldn't happen if you copied index.html, package.json, the rpg*.js files and so on. I also received...
forums.rpgmakerweb.com
Maybe someone else has more ideas. Either way, good luck!
👋