• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • 如何取消专业模式运行时自动升级?

    Discussion in 'Honorbuddy 援助区' started by shopbot, Jul 19, 2014.

    1. shopbot

      shopbot New Member

      Joined:
      Jun 13, 2013
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      0
      身在天朝,最近全面屏蔽google的服务,所以每次升级多半都是失败,偶尔链接成功,升级会发生升级不完整的情况,导致下一次HB启动找不到专业模式的情况.:(

      所以我想索性就不要自动升级了...
       
    2. joe_ss

      joe_ss Moderator Moderator

      Joined:
      Jul 18, 2012
      Messages:
      823
      Likes Received:
      0
      Trophy Points:
      16
      professionalbuddy 下面有个svn文件 和SvnBase 文件你尝试一下删除这两个文件还能不能运行, 因为每个文件都是相互依存的 我不确定删除后你可以继续使用。 具体你可以再作者的帖子下面跟帖问一下
       
    3. shopbot

      shopbot New Member

      Joined:
      Jun 13, 2013
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      0
      就是不能和老外顺畅的交流才到这个区问的嘛..
       
    4. joe_ss

      joe_ss Moderator Moderator

      Joined:
      Jul 18, 2012
      Messages:
      823
      Likes Received:
      0
      Trophy Points:
      16
      因为这个模式我不是很了解。 也没有看过他的源代码(就算看也不知道看哪里,上万行的代码不好找),所以没办法帮到你。 抱歉。
       
    5. EricPhone

      EricPhone Moderator Moderator

      Joined:
      Feb 17, 2013
      Messages:
      5,665
      Likes Received:
      3
      Trophy Points:
      38
      因为国内网络无法连接google的相关网站,所以会导致升级不成功,或者无法连接,但googlecode的话偶尔是可以连接上的,所以会造成你上面的情况,你可以先将Bots\Professionbuddy\Updater.cs这个备份,然后可以将下面代码改一下应该就不会检查升级了
      Code:
      try
                  {
                      Professionbuddy.Log("Checking for new version");
                      int remoteRev = GetRevision();
                      if (GlobalPBSettings.Instance.CurrentRevision != remoteRev &&
                          Professionbuddy.Svn.Revision < remoteRev)
                      {
                          Professionbuddy.Log("A new version was found.Downloading Update");
                          DownloadFilesFromSvn(new WebClient(), PbSvnUrl);
                          Professionbuddy.Log("Download complete.");
                          GlobalPBSettings.Instance.CurrentRevision = remoteRev;
                          GlobalPBSettings.Instance.Save();
                          Logging.Write(Colors.DodgerBlue, "************* Change Log ****************");
                          Logging.Write(Colors.SkyBlue, GetChangeLog(remoteRev));
                          Logging.Write(Colors.DodgerBlue, "*****************************************");
                          Logging.Write(Colors.Red, "A new version of ProfessionBuddy was installed. Please restart Honorbuddy");
                      }
                      else
                      {
                          Professionbuddy.Log("No updates found");
                      }
                  }
      
      改成
      Code:
      try
                  {
                          Professionbuddy.Log("No updates found");
                  }
      
       
    6. shopbot

      shopbot New Member

      Joined:
      Jun 13, 2013
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      0
      谢谢,我试试看
       
    7. shopbot

      shopbot New Member

      Joined:
      Jun 13, 2013
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      0
      不能这么改,修改后直接就不能加载专业模式了.
       
    8. shopbot

      shopbot New Member

      Joined:
      Jun 13, 2013
      Messages:
      61
      Likes Received:
      0
      Trophy Points:
      0
      我在该bot专区找到答案了,谢谢两位版主
       

    Share This Page