ページ 11

[臨時解決]SRD Summon Core使用中にエラーが発生したので質問します

Posted: 2021年2月26日(金) 18:15
by kar'
おはようございます
いつも助けてもらっています。
SRD Summon Coreを使って召喚技術を作って実験中ですが、
召喚物が戦闘不能になる場合、次のようなエラーが表示されます。
K-352.jpg
K-351.jpg
K-350.jpg
現在、YEP_BattleEngineCore、CTB、YEP_X_AnimatedSVENemiesの戦いでメインとして使用され、SRD SummonCoreは上記のプラグインより下に置いています。
この間までは確かに正常に作動したが原因が分からないです。
最近追加したプラグインいくつかをOFFに試験しましたが、同様でした。
どの部分が問題になるのか、また解決策があれば教えてください。

Re: SRD Summon Core使用中にエラーが発生したので質問します

Posted: 2021年2月26日(金) 20:51
by kar'
海外フォーラムを検索中、以下のようにコードを修正するのを発見し、メモします。
一応テストしてみた結果作動しています。
YEP_X_Animated SVENemies.js の2773行を以下のように修正

コード: 全て選択

Sprite_Animation.prototype.updateSvePosition = function() {
  if (this._target.parent._battler && this._target.parent._battler.isEnemy() && typeof this._target.parent._mainSprite != 'undefined'){
    if (this._animation.position !== 3) {
      if (this._animation.position === 0) {
        this.y += this._target.parent._mainSprite.height - this._target.parent.texture.height;
      } else if (this._animation.position === 1) {
        this.y += (this._target.parent._mainSprite.height - this._target.parent.texture.height) / 2;
      }
    }
  }
};