Enemy transform crash

upload_2019-6-23_12-42-5.png

I don't know what does wrong... Please, help.
provide some more info, are you plugin in order?
are the notetags or other command correct?

tell us more for a better solution.
I simply inscribed in the course of the battle the turning of one enemy into another, when his HP ended. And at this moment this miracle pops up.
provide some more info, are you plugin in order?
are the notetags or other command correct?

tell us more for a better solution.


F40-cHHhuVc.jpg
gQZ05wi9uMU.jpg
Se4EL_rPDfE.jpg
can you show its notetag or events where it is placed?
can you show its notetag or events where it is placed?

Sorry, everything is in Russian, but I will try.

1. Message
2. Animation
3. 20 frames waiting
4. Transformation
5. Attack

At point 4, crash occurs

upload_2019-6-23_13-4-34.png
1) your yanfly plugins are in the wrong order.
please check http://yanfly.moe/yep/ and make sure your plugins are in exactly that order (top to bottom) or you will get random errors sooner or later

2) yanfly's battle requires additional data for each battler, and that data is set on battlestart.
transforming any battler has a chance of erasing that additional data because the default engine does not know it.
that is why summoning or transforming often needs specific plugins to work with non-default battle systems.

I do not know if 2 is the case here, but please check yanfly's plugins for anything he has on summoning or transforming.
1) your yanfly plugins are in the wrong order.
please check http://yanfly.moe/yep/ and make sure your plugins are in exactly that order (top to bottom) or you will get random errors sooner or later

2) yanfly's battle requires additional data for each battler, and that data is set on battlestart.
transforming any battler has a chance of erasing that additional data because the default engine does not know it.
that is why summoning or transforming often needs specific plugins to work with non-default battle systems.

I do not know if 2 is the case here, but please check yanfly's plugins for anything he has on summoning or transforming.
No, I do not see in my list of plugins something related to transformations. Disabling the plugin, which adds animation to enemies, cures an error, but it is too useful. .
1) your yanfly plugins are in the wrong order.
please check http://yanfly.moe/yep/ and make sure your plugins are in exactly that order (top to bottom) or you will get random errors sooner or later

2) yanfly's battle requires additional data for each battler, and that data is set on battlestart.
transforming any battler has a chance of erasing that additional data because the default engine does not know it.
that is why summoning or transforming often needs specific plugins to work with non-default battle systems.

I do not know if 2 is the case here, but please check yanfly's plugins for anything he has on summoning or transforming.
Turning off Visual State FX also treats this bug ... And what to do ..?
@EgorFlame87 Avoid double posting which is against the rules, edit the post for additional information.

As for the problem, I have not much knowledge on the plugins while i dont use it.
Maybe check out the plugins video's and see if you missed something.
The code in question:
Code:
Sprite_Enemy.prototype.setTransform = function(battler) {
    this._shadowSprite.opacity = 0;
    this._weaponSprite.opacity = 0;
    this._mainSprite.opacity = 0;
    this._stateSprite.opacity = 0;
    if (battler.svBattlerName()) {
      this.createShadowSprite();
      this.createWeaponSprite();
      this.createMainSprite();
      this.createStateSprite();
      this._shadowSprite.opacity = 255;
      this._weaponSprite.opacity = 255;
      this._mainSprite.opacity = 255;
      this._stateSprite.opacity = 255;
    }
};

More particularly, the line in question that causes the crash is
this._stateSprite.opacity = 0;

My wild guess would be that once the enemy dies, its state sprite plugin makes the state sprite disappear. But I'm not sure, I did not study the code too deep.

Either way, you can make a simple plugin with
Code:
Sprite_Enemy.prototype.setTransform = function(battler) {
    this._shadowSprite.opacity = 0;
    this._weaponSprite.opacity = 0;
    this._mainSprite.opacity = 0;
    if (this._stateSprite) this._stateSprite.opacity = 0;
    if (battler.svBattlerName()) {
      this.createShadowSprite();
      this.createWeaponSprite();
      this.createMainSprite();
      this.createStateSprite();
      this._shadowSprite.opacity = 255;
      this._weaponSprite.opacity = 255;
      this._mainSprite.opacity = 255;
      this._stateSprite.opacity = 255;
    }
};
and put it underneath the Yanfly's plugin, but I don't know what the consequences of this will be.

Original thread: https://forums.rpgmakerweb.com/threads/enemy-transform-crash.110306/