In case it happens to anyone:
The Maximum call stack size exceeded means a Javascript function is trying to call itself without a sign to stop (also known as infinite recursion in programming). In rare cases it occurs from wrong plugin order, but it's much more likely when there are compatibility issues... And there are indeed compatibility issues here.
If we take a look inside Yanfly's animated SV enemies, we can see this snippet:
Code:
Yanfly.SVE.Game_Enemy_performDamage = Game_Enemy.prototype.performDamage;
Game_Enemy.prototype.performDamage = function() {
if (!this.hasSVBattler()) {
return Yanfly.SVE.Game_Enemy_performDamage.call(this);
}
Game_Battler.prototype.performDamage.call(this);
if (this.isSpriteVisible()) {
this.requestMotion(this.damageMotion());
} else {
$gameScreen.startShake(5, 5, 10);
}
SoundManager.playEnemyDamage();
};
In DreamX's plugin there is this snippet:
Code:
Yanfly.SVE.Game_Enemy_performDamage = Game_Enemy.prototype.performDamage;
Game_Enemy.prototype.performDamage = function () {
if (!this.hasSVBattler()) {
return Yanfly.SVE.Game_Enemy_performDamage.call(this);
}
Game_Battler.prototype.performDamage.call(this);
if (this.isSpriteVisible()) {
this.requestMotion(this.damageMotion());
// new
var frames = this.DXNumFrames();
var frameSpeed = this.battler().motionSpeed();
var waitTime = (frames * frameSpeed) - 12;
if (waitTime > 0) {
BattleManager._logWindow._waitCount += waitTime;
}
} else {
$gameScreen.startShake(5, 5, 10);
}
SoundManager.playEnemyDamage();
};
Both have identical alias. I think it was an oversight from DreamX when he copypasted the function. But it essentially means that since we have one alias two times, when that alias gets called, it enters the infinite recursion and crashes.
Also, this only happens if an enemy is attacked while he's not an SV battler.
To fix the issue, open the DreamX's plugin and replace all occurences of
Yanfly.SVE
with
DreamX.SideviewFrames
You're welcome.