• Visit Rebornbuddy
  • HB ARCHIVES: ProfessionBuddy--DO NOT DELETE

    Discussion in 'Archives' started by highvoltz, Jul 18, 2012.

    1. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      If you are close HB before the PB auto-update finishes then the PB install will become corrupted. If you still have problems after letting auto-update complete then do a svn checkout instead. Details on how to do a svn checkout can be found on the first post.
       
    2. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      This is now fixed.
       
    3. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      The MaxBuyout/MinBuyout properties are not dynamically evaluated because the dynamic expression generator backend has problems with strings so no, this won't work.
      Edited: there's no way I could make your example work either, not with the way dynamic expressions are evaluated.
       
      Last edited: Jul 24, 2014
    4. Infernik

      Infernik Member

      Joined:
      Dec 23, 2010
      Messages:
      295
      Likes Received:
      3
      Trophy Points:
      18
      PB editor is still very bugged :C It doesn't save any changes you do nested objects in copied if\while loop, you have to do copy them, close editor, open it and only then it will start saving changes.
       
    5. turya

      turya Member

      Joined:
      Jul 2, 2010
      Messages:
      70
      Likes Received:
      0
      Trophy Points:
      6
      it's a pity, have to do by trial and many lines of code would be: ( ty for answer :)
       
    6. bl4ck

      bl4ck Member

      Joined:
      Aug 18, 2011
      Messages:
      976
      Likes Received:
      6
      Trophy Points:
      18
      thank you.
       
    7. BaturalNoobs

      BaturalNoobs Member

      Joined:
      Feb 10, 2012
      Messages:
      511
      Likes Received:
      4
      Trophy Points:
      18
      Hi Highvoltz,

      First off, thank you so much for PB. It's an awesome botbase and I am blown away by everything it can do.

      I've noticed a consistent bug with the HasMats condition. The !HasMats condition is evaluating to true when it's actually false. Additionally, the true HasMats condition is being ignored.

      For example, I have a profile that will cast my daily Blacksmithing profession cooldowns: Lightning Steel Ingot and Balanced Trillium Ingot. PB incorrectly executes the !HasMats condition, which is actually false because I have tons of Ghost Iron and Trillium bars in my bags, and skipping the true HasMats condition section. I've also encountered this bug with other daily profession cooldowns, including Jewelcrafting, Alchemy and Tailoring (I have logs for those as well).

      Here's the most recent Blacksmithing example:

      PHP:
      [08:19:01.986 N]WarningI dont have Ghost Iron Bars!
      [08:
      19:01.992 N]WarningI dont have Trillium Bars!
      ...and the relevant profile section (happy to PM you the entire profile):

      PHP:
      <If Condition="!RecipeIsOnCD(138646)" IgnoreCanRun="True">
          <If 
      Condition="HasMats(138646) &amp;&amp; Me.FreeBagSlots &gt;= 1" IgnoreCanRun="False">
              <
      CallSubRoutine SubRoutineName="GoToAnvil" />
              <
      CustomAction Code="Log(Colors.CornflowerBlue,&quot;[PB] Lightning Steel Ingot.&quot;);" />
              <
      CastSpellAction Entry="138646" Repeat="1" RepeatType="Specific" CastOnItem="False" ItemId="0" ItemType="Chest" />
              <
      WaitAction Condition="false" Timeout="2500" />
          </If>
          <If 
      Condition="!HasMats(138646)" IgnoreCanRun="False">
              <
      CustomAction Code="Log(Colors.Red,&quot;Warning: &quot;,Colors.CornflowerBlue,&quot;I don't have Ghost Iron Bars!&quot;);" />
          </If>
      </If>
      <If 
      Condition="!RecipeIsOnCD(143255)" IgnoreCanRun="True">
          <If 
      Condition="HasMats(143255) &amp;&amp; Me.FreeBagSlots &gt;= 1" IgnoreCanRun="False">
              <
      CallSubRoutine SubRoutineName="GoToAnvil" />
              <
      CustomAction Code="Log(Colors.CornflowerBlue,&quot;[PB] Balanced Trillium Ingot.&quot;);" />
              <
      CastSpellAction Entry="143255" Repeat="1" RepeatType="Specific" CastOnItem="False" ItemId="0" ItemType="Chest" />
              <
      WaitAction Condition="false" Timeout="2500" />
          </If>
          <If 
      Condition="!HasMats(143255)" IgnoreCanRun="False">
              <
      CustomAction Code="Log(Colors.Red,&quot;Warning: &quot;,Colors.CornflowerBlue,&quot;I don't have Trillium Bars!&quot;);" />
          </If>
      </If>
      Here's the full log:

      View attachment 7664 2014-07-21 08.18.txt

      I have tested this for a couple weeks and found the only consistent way to get the above profile working is to remove all of the HasMats and !HasMats conditions. Any chance you can take a look at this when you have time?
       
    8. ColWhackaMole

      ColWhackaMole New Member

      Joined:
      May 5, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      1
      I'm trying to integrate different composites into PB. When I do, PB removes itself from the HB bot drop down menu. Any idea how I could replace certain composites with different ones and get PB still to work? Thanks in advanced. Have a good one.
       
    9. ColWhackaMole

      ColWhackaMole New Member

      Joined:
      May 5, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      1
      So I saw composites were moved to components but i'm still having trouble integrating an older profile and composites into the new PB. any one have any suggestions or can help me? thanks. have a good one.
       
    10. HBL0V3

      HBL0V3 New Member

      Joined:
      Oct 6, 2012
      Messages:
      117
      Likes Received:
      0
      Trophy Points:
      0
      Almost a year old bug that still hasnt been fixed :( When leveling a profession the bot needs to be restarted everytime it trains because it wont detect the new skills. How am I the only one to complain? wow.
       
    11. SmokeBomb

      SmokeBomb New Member

      Joined:
      Jun 27, 2013
      Messages:
      11
      Likes Received:
      0
      Trophy Points:
      0
      Hey guys, I have a problem with this BOT.
      It works normally but the char is getting in away mode, and in that way he is just sitting and lifting, and continues to prospect.
      The char is repeating it, prospecting, sitting and lifting with the flag away.

      Can anyone help me?
       
    12. bennyquest

      bennyquest Community Developer

      Joined:
      Dec 6, 2010
      Messages:
      2,644
      Likes Received:
      22
      Trophy Points:
      38
      maybe because it does not affect everyone? I know my profiles continue on and do not have an issue after training.
       
    13. HBL0V3

      HBL0V3 New Member

      Joined:
      Oct 6, 2012
      Messages:
      117
      Likes Received:
      0
      Trophy Points:
      0
      It does effect everyone, it looks like it only applies for certain professions. And btw you have to close hb completely and restart for it to detect the new skills, stop/start doesnt work.
       
    14. bennyquest

      bennyquest Community Developer

      Joined:
      Dec 6, 2010
      Messages:
      2,644
      Likes Received:
      22
      Trophy Points:
      38
      not the way mine are coded this issue never arises....might be how the profiles you use are coded maybe?
       
    15. HBL0V3

      HBL0V3 New Member

      Joined:
      Oct 6, 2012
      Messages:
      117
      Likes Received:
      0
      Trophy Points:
      0
      Did you have a profile for every profession or just engineering and leatherworking? I don't see any other profiles from you. I'm having trouble with a blacksmithing profile. It doesn't make sense why I have to close HB to get it to work. I'm using RefreshDataStore(); also but it doesn't help.
       
    16. ColWhackaMole

      ColWhackaMole New Member

      Joined:
      May 5, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      1
      Have any of you experienced PB removing itself from the bot drop down menu in HB in the past?
       
    17. HBainokea

      HBainokea New Member

      Joined:
      Jan 27, 2012
      Messages:
      7
      Likes Received:
      0
      Trophy Points:
      0
      I noticed this today when I did a fresh install of HB. I had to delete bots/professionbuddy and download it fresh from the SVN.
       
    18. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      I see from log that your bot is withdrawing the materials from bank. You will probably need to add a small delay after withdrawing items from bank and before checking 'HasMats', otherwise HasMat might be evaluated before the material actually show up in bags.
       
    19. BaturalNoobs

      BaturalNoobs Member

      Joined:
      Feb 10, 2012
      Messages:
      511
      Likes Received:
      4
      Trophy Points:
      18
      I don't think that's the issue. The profile gets mats from the bank on the second floor, runs a WaitAction, runs a GoToAnvil condition that moves it downstairs to the anvil, and then runs the HasMats conditions. I've tested this for over three weeks, with and without mats in bags, and the HasMats issue occurs regardless.

      Additionally, this bug affects most profession CDs like Serpent's Heart, Lightning Steel Ingot and Balanced Trillium Ingot but does not affect Jard's Peculiar Energy Source.
       
    20. Nexus129

      Nexus129 New Member

      Joined:
      Dec 3, 2011
      Messages:
      81
      Likes Received:
      1
      Trophy Points:
      0
      Hello,

      i have two questions regarding professionbuddy.
      I have been looking into pb the last few days to figure out why most classes like CancelAuctionAction wont accept variables instead of the goldvalue.
      It seems like the problem wasnt that goldeditor/goldconverter were unable to accept the variable containing the coppervalue instead of the "5g55s55c" string since i didnt even get that far.
      Since not even ItemID accepts anything but a string as the ItemID i came to the following question:

      1.Is the reason behind classes being unable to use real variables a problem with the way Professionbuddy is parsing the profiles or by the way the classes themself are written?

      2.Could it be, that its impossible because profiles use a certain syntax and the only way you got it to work in any way is by using your metaprops to circumvent those restrictions?
      with friendly greetings
      Andre G.
       
      Last edited: Aug 3, 2014

    Share This Page