Greetings,
I am having an issue related to the battle scene, and it is a very strange one. I've been unable to locate any past discussions on this topic and after several hours of testing and scouring JavaScript I realize I am stumped, so I thought I might post here to see if anyone else has ever encountered this bug.
When playtesting or playing a deployed version of a project I am working on, occasionally after a victorious battle, a specific character will not display her victory pose. Instead, she just continues standing there in her idle stance. This only every happens with this one character. Also, there is a slight screen flash/glitch when this bug occurs.
I am unable to consistently replicate this bug so I cannot pinpoint exactly what is causing it. I am, however, inconsistently able to get this bug to occur when she slays the final enemy in a battle encounter. This is one thing the bug has in common in all appearances: the victory pose bug will only occur if the specific character deals the final attack that ends the encounter.
As for plugins, I am using about two dozen overall, but for the sake of expediency, I can say only 3 have anything to do with the battle scene: Visustella Core Engine, Visustella Battle Core, and a very simple plugin I wrote myself that eliminates the whitening flash effect on enemy battlers.
So, has anyone out there ever ran into this bug before in a project they were working on? Or does anyone have some advice that may assist in fixing this issue? Any help would be greatly appreciated.
Thank you in advance,
-Niniann
Edit: My running theory at the moment is that MZ is failing to load this character's victory pose animation, which is related to the screen tear/glitch that occurs when this bug happens. I think perhaps that this problem could be solved if I add in some time for the game to process whatever it's doing, and then load and display the victory pose animations.
Can anyone point me in the right direction to implementing this wait time? I've tried adding in a this.wait within a couple functions via a new plugin but this always results in a crash due to "this.wait is not a function"
An example of what I've tried:
-New plugin with the following code-
JavaScript:
Game_Actor.prototype.performVictory = function() {
this.setActionState("done");
this.wait(60)
this.requestMotion("victory");
};
Result: Crash after a battle with the game displaying "this.wait is not a function"
I am having an issue related to the battle scene, and it is a very strange one. I've been unable to locate any past discussions on this topic and after several hours of testing and scouring JavaScript I realize I am stumped, so I thought I might post here to see if anyone else has ever encountered this bug.
When playtesting or playing a deployed version of a project I am working on, occasionally after a victorious battle, a specific character will not display her victory pose. Instead, she just continues standing there in her idle stance. This only every happens with this one character. Also, there is a slight screen flash/glitch when this bug occurs.
I am unable to consistently replicate this bug so I cannot pinpoint exactly what is causing it. I am, however, inconsistently able to get this bug to occur when she slays the final enemy in a battle encounter. This is one thing the bug has in common in all appearances: the victory pose bug will only occur if the specific character deals the final attack that ends the encounter.
As for plugins, I am using about two dozen overall, but for the sake of expediency, I can say only 3 have anything to do with the battle scene: Visustella Core Engine, Visustella Battle Core, and a very simple plugin I wrote myself that eliminates the whitening flash effect on enemy battlers.
So, has anyone out there ever ran into this bug before in a project they were working on? Or does anyone have some advice that may assist in fixing this issue? Any help would be greatly appreciated.
Thank you in advance,
-Niniann
Edit: My running theory at the moment is that MZ is failing to load this character's victory pose animation, which is related to the screen tear/glitch that occurs when this bug happens. I think perhaps that this problem could be solved if I add in some time for the game to process whatever it's doing, and then load and display the victory pose animations.
Can anyone point me in the right direction to implementing this wait time? I've tried adding in a this.wait within a couple functions via a new plugin but this always results in a crash due to "this.wait is not a function"
An example of what I've tried:
-New plugin with the following code-
JavaScript:
Game_Actor.prototype.performVictory = function() {
this.setActionState("done");
this.wait(60)
this.requestMotion("victory");
};
Result: Crash after a battle with the game displaying "this.wait is not a function"