Animated Enemies MaxCall Error
RPG Maker MV SupportThen you confused the issue with your previous post. You said:
It is impossible for that notetag to play a specific role in reproducing the crash unless the plugin that uses it is turned on. Text just typed into the notes field does nothing.
So either:
- the crash occurs so long as you have the SRD timed attack plugins and the Sideview Frames and attack anything,
or
- the crash occurs when you have those on and you attack specific enemies, or use a specific skill, but there must be some other distinguishing factor - that notetag cannot matter if its plugin is turned off.
Then it's my fault for saying unnecessary information, since people often ask about the enemies's notetags. To that I apologize.
I happened to have a video demonstrating the error,
I don't usually bother with linked videos, but it does show a few important pieces of information.
1 - You're using Battle Test. Does the same error occur if you actually start a full play test, start a new game?
2 - It happens under specific conditions. The first enemy was attacked and had no error - it cannot simply be because of a plugin conflict or it would happen every time you used that skill.
So you should look into/post screenshots of your Attack skill from the database, any notetags in it, and the Enemy entry for the green mushroom.
Have you tested having different actors target different enemies? Does it always happen when you're hitting the last enemy on the screen? Does it always happen when the attacker is the same actor?
There's a lot of stuff going on there that I haven't seen you describe before.
1 - You're using Battle Test. Does the same error occur if you actually start a full play test, start a new game?
2 - It happens under specific conditions. The first enemy was attacked and had no error - it cannot simply be because of a plugin conflict or it would happen every time you used that skill.
So you should look into/post screenshots of your Attack skill from the database, any notetags in it, and the Enemy entry for the green mushroom.
Have you tested having different actors target different enemies? Does it always happen when you're hitting the last enemy on the screen? Does it always happen when the attacker is the same actor?
There's a lot of stuff going on there that I haven't seen you describe before.
1. Yes, I did a re-test starting a new game and yes it still appear
As of right now I'm testing all the one's you said and I notice something interesting. One of the party members constantly miss the attack against the green mushroom, and the error did not appear.
I tried multiple skills as well and different actor attacking it, including the green party member (This is the party member who always miss the attack), and it looks like as long as you deal damage to the enemy the error persist
- Does it always happen when you're hitting the last enemy on the screen?
If you're talking about the green mushroom, then yes. I tested the other enemies and the error only ever appear when I deal damage to the green mushroom
- Does it always happen when the attacker is the same actor? No, the error appeared when I used different actor as well.
In this case I meant "last remaining," e.g. "only" - if you kill the green mushroom first, then target whatever the other creature was (it's kind of hard to tell because of that weird-ass sliding back and forth your video does), does the error occur?
Or does it only happen IFF any attack successfully hits the green mushroom, regardless of other enemies being alive or not?
Is the actor in question supposed to miss the attack, like you programmed that in? Or is somehow the same actor always missing against the same enemy?
Or does it only happen IFF any attack successfully hits the green mushroom, regardless of other enemies being alive or not?
Is the actor in question supposed to miss the attack, like you programmed that in? Or is somehow the same actor always missing against the same enemy?
It only happen when any attack successfully hits the green mushroom, regardless of other enemies being alive or not
I did a previous test where I kill the other enemy, and then the green mushroom.
I did a previous test where I kill the other enemy, and then the green mushroom.
That's what you show in the video. I was asking if you're sure it happens when you do the reverse and attack the green first.
Oh, well that's also a yes.
Bump
What else have you tried? Have you made a different troop with the enemies in a different order to see whether it's specific to the green mushroom or specific to that troop index?
Have you tested on troops with different enemies?
Have you deleted and recreated that troop?
After re-arranging the troops and enemies, I tried changing the .png files in the enemies folder, the Troompa (Green Mushroom) seems to be affecting the maxcall error. I copied the brown mushroom enemy to test this, and when I change the enemies .png and remove their note tags the error appeared.
You should make sure all of the filenames in your project adhere to HTML naming conventions. That means no spaces or special characters - "Wildness Goomba" might load correctly on your computer during playtests but cause crashes for other people once you've exported the game.
I don't see how it's possible for the sprite of the battler to affect the damage function.
I don't see how it's possible for the sprite of the battler to affect the damage function.
It's as bizarre as it's sound. You can see around 2:00 I change the image to the slime layered under the "Wildness Goomba", I photoshopped it because when I look at the memory of said sprite it was 580B compared to the "Slime" 22,6 KB.
Does the file's memory data affect the export process and the maxcall as well?
You're confusing a few different things here.
The filesize of an image is how much space it takes up on your disc storage, not in memory.
Well...necessarily yes? Every file gets copied into your export folder, so the size of each file is a part of that copying (and encrypting, if you've selected that) process.
No. As this was described in the first reply to you, this is a code error wherein something is causing your damage function to try to call itself.
Okay, thanks for clearing that up.
Okay, so I''m re-testing again. An enemy called 'Banana', which is an enemy I used to test the PKD_VPlayer Plugin to see how it works, got the same error.
MaxCall error appeared on that as well, when previously the enemy is functioning.
I'm re-downloading the plugins again after this...
Yes, the error appeared the same like before, I attack the enemy with the GIF notetag, wait for damage and then MaxCall appeared.
MaxCall error appeared on that as well, when previously the enemy is functioning.
I'm re-downloading the plugins again after this...
Yes, the error appeared the same like before, I attack the enemy with the GIF notetag, wait for damage and then MaxCall appeared.
Re-downloading the plugin did not fix the error.
YEP_X_AnimatedSVEnemies.js:2791
YEP_X_AnimatedSVEnemies.js:2087
YEP_X_AnimatedSVEnemies.js:2092
YEP_X_AnimatedSVEnemies.js:2220 -> YEP_X_AnimatedSVEnemies.js:2221
Considered changing the code above to somewhat fix it like this (https://stackoverflow.com/questions/6095530/maximum-call-stack-size-exceeded-error), but there's usually a better way than that.
Also because it'll risk breaking the entire file.
YEP_X_AnimatedSVEnemies.js:2791
Code:
Yanfly.Util.getRandomElement = function(array) {
var value = array[Math.floor(Math.random() * array.length)];
return value;
};
YEP_X_AnimatedSVEnemies.js:2087
this._svBattlerName = Yanfly.Util.getRandomElement(array);YEP_X_AnimatedSVEnemies.js:2092
Game_Enemy.prototype.hasSVBattler = function() {
return this.svBattlerName() !== undefined;
};
YEP_X_AnimatedSVEnemies.js:2220 -> YEP_X_AnimatedSVEnemies.js:2221
Game_Enemy.prototype.performDamage = function() {
if (!this.hasSVBattler()) {
return Yanfly.SVE.Game_Enemy_performDamage.call(this);
}
Considered changing the code above to somewhat fix it like this (https://stackoverflow.com/questions/6095530/maximum-call-stack-size-exceeded-error), but there's usually a better way than that.
Also because it'll risk breaking the entire file.
Update: The 'Banana' error is fixed, I just needed to turn off both PKD and SV_AnimatedEnemies, exit the app, go back and test the battle, after that turn on Animated Enemies first, battle test then PKD_VPLayer.
Right now currently testing Green Mushroom, hope it works
Right now currently testing Green Mushroom, hope it works
Original thread: https://forums.rpgmakerweb.com/threads/animated-enemies-maxcall-error.162622/