• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • E大,Trinity插件更新到2.19后修改文件,无法加载?

    Discussion in 'Demonbuddy 援助区' started by woadam2, Sep 15, 2014.

    1. woadam2

      woadam2 New Member

      Joined:
      Jul 21, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      如题,DB升级到最新378版本,插件更新到2.19后,发现DH箭塔流修改.CS文件后,Trinity插件就无法加载了,Trinity2.13版本是可以的,反复搞了一晚上了还是不行啊
       
    2. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      请上传完整出错日志
      和你修复了哪段代码
       
    3. woadam2

      woadam2 New Member

      Joined:
      Jul 21, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      是Trinity整个插件不加载了,没有日志了啊,跟本挂不了,我修改了能源判断的代码,如下:
      // Elemental Arrow
      if (!UseOOCBuff && !IsCurrentlyAvoiding && Hotbar.Contains(SNOPower.DemonHunter_ElementalArrow) &&
      SNOPowerUseTimer(SNOPower.DemonHunter_ElementalArrow) && !Player.IsIncapacitated &&
      ((Player.PrimaryResource >= 200 && !Player.WaitingForReserveEnergy) || Player.PrimaryResource >= 200 || hasKridershot))
      {
      return new TrinityPower(SNOPower.DemonHunter_ElementalArrow, 65f, Vector3.Zero, -1, CurrentTarget.ACDGuid, 0, 1);
      }
      Player.PrimaryResource >= 45 修改为 Player.PrimaryResource >= 200 ,整个Trinity插件就不会加载,必须重新安装Trinity才能成功加载。DB我是在Runtime Error
      DH箭塔流就是修改了能源判断,让特定技能不射,在2.13版本可以的,但是更新到2.19后就会出现上面的情况
       
    4. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      不加载也会有出错日志,你上传才能判断
       
    5. woadam2

      woadam2 New Member

      Joined:
      Jul 21, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      Last edited: Sep 18, 2014
    6. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      你修改就在2.1.19的原版上改,你别把你以前的代码复制过去,这样当然不行了,2.1.19都已经跟之前的代码不一样了,2.1.19没有hasKridershot这个判定了,你还把以前的复制过去当然会出错了
      以后改东西不要老把旧的一整段复制过去新的
      你找到新的代码看以前是怎么改的,就将新的跟着以前的改,例如只改Player.PrimaryResource >= 10这个10改成200,就行了
       
    7. woadam2

      woadam2 New Member

      Joined:
      Jul 21, 2014
      Messages:
      16
      Likes Received:
      0
      Trophy Points:
      0
      Player.PrimaryResou rce >= 10 现在文件上直接修改的确好了,但是这样的修改方法,刚才实验几个技能都不能适用.>=本身能源上限就不会适用装备的技能吗?Player.PrimaryResou rce >= 200,技能都不成功
       
    8. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      你要看条件判定了 && 是与逻辑必须几样同时达到才会使用, ||是或逻辑其中一样达到就会使用
       
    9. dong1003360

      dong1003360 New Member

      Joined:
      Mar 5, 2014
      Messages:
      2
      Likes Received:
      0
      Trophy Points:
      0
      请问有圣教军最新的推马流设置文件吗,或者说一下怎么修改代码可以用的,一个怪的时候总是普通攻击
       

    Share This Page