• Visit Rebornbuddy
  • ZapRecorder2 - Updated for HB3

    Discussion in 'Development' started by speshulk926, Sep 22, 2016.

    1. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      Hey all, I had someone ask me to update the ZapRecorder2 with HB3 changes. Here it is. All I did was fix errors from the original post below. It was only tested by 1 person, so let me know if you see any major issues and I will try to fix. If the original author wants to update his original thread with the updates, I will close this one down. I have bumped the version to 2.0.1 so you can verify you have the right files.

      Original post: https://www.thebuddyforum.com/honor...plugin-zaprecorder2-profile-recorder-gb2.html
       

      Attached Files:

      jotd and starlite68 like this.
    2. LogiNeko

      LogiNeko Member

      Joined:
      Jul 5, 2014
      Messages:
      63
      Likes Received:
      3
      Trophy Points:
      8
      works great :D
       
    3. nemesis610

      nemesis610 Member

      Joined:
      Aug 2, 2012
      Messages:
      35
      Likes Received:
      0
      Trophy Points:
      6
      thank you very much
       
    4. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      no problem.
       
    5. xmxg0906

      xmxg0906 New Member

      Joined:
      Jun 3, 2016
      Messages:
      9
      Likes Received:
      0
      Trophy Points:
      0
      I cannot use mounts help

      I cannot use mounts help
       

      Attached Files:

    6. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      I don't know what that means.
       
    7. xmxg0906

      xmxg0906 New Member

      Joined:
      Jun 3, 2016
      Messages:
      9
      Likes Received:
      0
      Trophy Points:
      0
      [15:04:06.969 D] Clearing POI - Reason Finished looting
      [15:04:07.037 D] Cleared POI
      [15:04:08.966 D] Changed POI to: Type: Hotspot, Loc: <1120.026, 2765.101, 68.91136>, NavType: Run
      [15:04:09.033 D] Moving to Type: Hotspot, Loc: <1158.383, 2777.176, 75.86626>, NavType: Run from <1119.682, 2765.684, 68.94675>
      [15:04:14.845 D] Changed POI to: Type: Hotspot, Loc: <1158.383, 2777.176, 75.86626>, NavType: Run
      [15:04:14.910 D] Moving to Type: Hotspot, Loc: <1193.113, 2796.572, 83.27157>, NavType: Run from <1157.967, 2776.714, 75.7569>
      [15:04:17.129 N] Stopping the bot!


      When the looking done,I cannot use mounts.
       
    8. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      Is that while you are recording? I don't know how this works, I just updated it to work with HB3. Are you certain it is not an HB issue?
       
    9. Zimetix

      Zimetix New Member

      Joined:
      Nov 6, 2011
      Messages:
      35
      Likes Received:
      1
      Trophy Points:
      0
      @xmxg0906:its a HB issue...
      post it on the HP support (with log)

      @speshulk926:thx, <3 it
       
    10. Zoomland

      Zoomland New Member

      Joined:
      Jun 18, 2014
      Messages:
      183
      Likes Received:
      5
      Trophy Points:
      0
      doenst show the plugin: ZapRecorder2 on the Pluginlist in HB
       
    11. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      If no log file, nothing I can do. May be related to something else not related to this.
       
    12. glideruser

      glideruser Member

      Joined:
      Oct 11, 2016
      Messages:
      66
      Likes Received:
      0
      Trophy Points:
      6
      just used it fine
       
    13. mudplayerx

      mudplayerx New Member

      Joined:
      Jan 29, 2012
      Messages:
      149
      Likes Received:
      1
      Trophy Points:
      0
      How do you add Graveyard hotspots? Is it as simple as dying, and adding more hotspots as you walk to corpse?
       
    14. VanRookie

      VanRookie Member

      Joined:
      Sep 7, 2016
      Messages:
      30
      Likes Received:
      0
      Trophy Points:
      6
    15. speshulk926

      speshulk926 Community Developer

      Joined:
      Dec 8, 2014
      Messages:
      911
      Likes Received:
      17
      Trophy Points:
      18
      Initialize() doesn't exist in this version. Likely you don't have this version installed or it didn't overwrite the files you had.

      Since you didn't provide a full log though, nothing I can do. Can't guess past what I see in that screenshot.

      The ZapPlugin.cs should look like this inside. "Initialize()" or "Dispose()" is no longer in HB3, so I know for a fact you have the wrong one.

      Code:
      using System;
      using System.Collections.Generic;
      using System.Linq;
      using System.Text;
      using Styx;
      using Styx.Plugins;
      using Styx.Common;
      using Styx.WoWInternals;
      
      using BadWolf;
      
      using System.Windows.Media;
      
      namespace ZapRecorder2
      {
          public class ZapPlugin : HBPlugin
          {
              public override string Author { get { return "BadWolf (originally by Zapman)"; } }
              public override Version Version { get { return new Version(2, 0, 1); } }
              public override string Name { get { return "ZapRecorder2"; } }
              public override bool WantButton { get { return true; } }
              public override string ButtonText { get { return "Show Recorder"; } }
      
              public bool hasBeenInitialized = false;
              public bool mainFormLoaded = false;
              public ZapMainForm mainForm;
              public static bool isHidden = false;
      
              private BadWolf_Updater Updater;
      
              
              public override void OnEnable()
              {
                  if (hasBeenInitialized)
                  {
                      return;
                  }
      
                  hasBeenInitialized = true;
                  
                  
                  Logging.Write(Colors.Teal, "Loaded ZapRecorder2 by BadWolf v" + Version.ToString());
                  
                  
                  try
                  {
                      Updater = new BadWolf_Updater("https://zaprecorder2.googlecode.com/svn/trunk/","ZapRecorder");
      
                      if (Updater.UpdateAvailable())
                      {
                          Logging.Write("[ZapRecorder2] Update to $" + Updater.GetNewestRev().ToString() + " is available! You are on $" + Updater.CurrentRev.ToString());
                          Logging.Write("[Zaprecorder2] Starting update process");
                          if (Updater.Update())
                          {
                              Logging.Write("[ZapRecorder2] is now up to date! Please reload HB");
                          }
                          else
                          {
                              Logging.Write("[ZapRecorder2] Encountered an error trying to auto-update. Please update manually");
                          }
                      }
                      else
                      {
                          Logging.Write("ZapRecorder2 is at Rev $" + Updater.CurrentRev.ToString() + " and up to date!");
      
                          
                      }
                  }
                  catch
                  {
                      Logging.Write(Colors.Teal,"Unable to run ZapRecorder2 update process");
                  }
             } 
      
              public override void Pulse()
              {
      
              }
      
      
              
              public override void OnButtonPress()
              {
                  if (!ZapPlugin.isHidden)
                  {
                      // First time button press, create form.
                      if (!mainFormLoaded)
                      {
                          //We need to create a new form
                          mainForm = new ZapMainForm();
                          mainForm.Show();
                          mainFormLoaded = true;
      
                          
                      }
                  }
                  else
                  {
                      // Reload existing form
                      mainForm.Show();
                  }
              }
          }
      }
      
      
       
      Last edited: Oct 17, 2016
    16. 1993Racer

      1993Racer Member

      Joined:
      Jul 8, 2012
      Messages:
      496
      Likes Received:
      3
      Trophy Points:
      18
      love you man! thx
       
    17. s0ll

      s0ll New Member

      Joined:
      Oct 2, 2016
      Messages:
      21
      Likes Received:
      0
      Trophy Points:
      0
      hi..... wanna ask how can i make the GB2 profile to kill mobs and loot them while the bot doing herbalism? (as u know in Legion herbs summons a mob and it gives u more herb if u kill the mob and loot it)
      also---> is there any way to kill the mobs who sum after mining a nod and also mining the mob too?
       
    18. tictoc

      tictoc Member Buddy Store Developer

      Joined:
      Sep 21, 2012
      Messages:
      380
      Likes Received:
      5
      Trophy Points:
      18
      I have developed a plugin which supports that. Take a look at my signature and use the trial to test it.
       

    Share This Page