• Visit Rebornbuddy
  • [Bot] PokehBuddy (Conversion of Plugin)

    Discussion in 'Botbases' started by sychotix, Dec 16, 2013.

    1. Prostak

      Prostak Member

      Joined:
      Mar 17, 2013
      Messages:
      249
      Likes Received:
      16
      Trophy Points:
      18
      This is a fix in WantSwapping() that so far works for me in Ringerx2 mode: no swapping in loop, no trying to load a dead pet:
      Changes are in bold and are Ringerx2 oriented. They may be helpful in other modes preventing loops and hangs but may break the desired strategy.

      Next thing that bothers me now (or should I say "next disaster"?) is: Favorites Only filter is not working in PBS. I've modified the code to execute it unconditionally, still I am getting all my pets in the result. I want to level like 10 more pets, but 60 are included in the levelling loop.
      Lua.DoString("C_PetJournal.SetFlagFilter(LE_PET_JOURNAL_FLAG_FAVORITES, true);");
      Has Blizzard changed flag value or something?
       
    2. hackersrage

      hackersrage Member Buddy Store Developer

      Joined:
      Nov 18, 2012
      Messages:
      342
      Likes Received:
      15
      Trophy Points:
      18
      I am unsure where to put that contribution. The latest version I posted has a brand spanky new UI. It doesn't have any of the rule-generation stuff aside from white/blacklist. I am unsure what exactly is needed from the Logic creation thing as over 50% of the buttons there crash the plugin (and have done this since day 1). Blizzard did change the way that pet swapping can occur though.
       
    3. Prostak

      Prostak Member

      Joined:
      Mar 17, 2013
      Messages:
      249
      Likes Received:
      16
      Trophy Points:
      18
      This is not a contribution yet. This is sort of recommendation to persons who are comfortable with changing cs code re "How to avoid swapout loops in Ringerx2 mode". Not a GUI-related problem.
       
    4. powstrike

      powstrike New Member

      Joined:
      Nov 11, 2012
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      Hi, excited that you are putting in all the effort to fix this and appreciate it. However I tried running it and the bot would not even start, did a fresh install of Honorbuddy v2.5.11936.755 and loaded guadah's pet profiles.
       
    5. hackersrage

      hackersrage Member Buddy Store Developer

      Joined:
      Nov 18, 2012
      Messages:
      342
      Likes Received:
      15
      Trophy Points:
      18
      I have it working now. To keep this thread shorter, I have moved this to it's own topic here >> [Botbase] PokehBuddy (Revised for WoD)

      PS: Testing for 5 minutes, I leveled 3 pets from level 1 to 5.
       
      Last edited: Nov 6, 2014
    6. Prostak

      Prostak Member

      Joined:
      Mar 17, 2013
      Messages:
      249
      Likes Received:
      16
      Trophy Points:
      18
      This (not loading a dead pet) appeared to be not true. One more fix is needed to avoid hangs on dead pets.
      In the file PokehBuddy.cs replace the function SelectNewAction with:
      Code:
              private Composite SelectNewAction()
              {
                  return new Styx.TreeSharp.Action(
                      ctx =>
                      {
      		    if( CanSelect(3) ) CombatCallPet(3);
      		    else if( CanSelect(2) ) CombatCallPet(2);
                          else CombatCallPet(1);
                          
                          return RunStatus.Success;
                      });
      
      
      Original logic had a bug and I see a little reason to fix it.
      The new logic is very simple, it implements a fixed swaping order: when a pet dies (in Ringerx2 mode done properly it should be Pet2), the code will try to load Pet3, if it is also dead it will try to load Pet2 - just in case, and only then - Pet1.
      In Ringerx2 mode I have 25 in slots 2 and 3 and am running them to death, no swapping.

      BTW in order to make your ringers fight to death as opposed to swapping out upon reaching health<30 your should replace
      SWAPOUT Health(THISPET) ISLESSTHAN 30
      with
      SWAPOUT Health(THISPET) ISLESSTHAN 0
      in like thousand different places, in both cs and xml files. Or you should change logic parser to ignore this line, whichever is easier.
       
    7. zennn

      zennn New Member

      Joined:
      Aug 12, 2012
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      Can anyone explain to me what ringerx2 mode is
       
      Last edited: Nov 18, 2014
    8. zennn

      zennn New Member

      Joined:
      Aug 12, 2012
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      Or Just pass me one of their working versions
       
    9. harrow90

      harrow90 New Member

      Joined:
      Mar 10, 2014
      Messages:
      14
      Likes Received:
      0
      Trophy Points:
      0
      For some reason I can't see it in the drop down menu in the honorbuddy client.. I've installed it via SVN in Honorbuddy/Bots/PokehBuddy - any idea what i've done wrong?
       
    10. zennn

      zennn New Member

      Joined:
      Aug 12, 2012
      Messages:
      33
      Likes Received:
      0
      Trophy Points:
      0
      Try de rar on the frontpagina , worked for me
       
    11. Petuldo

      Petuldo New Member

      Joined:
      Nov 1, 2014
      Messages:
      32
      Likes Received:
      0
      Trophy Points:
      0
      OK guys, I had 2 issues -
      #1 unnecessary (low health) swapping
      # 2 - not changing new pet after 1 dies

      This one works for me with Ringerx2 PetBattleSwapper, even with coding in pet CDs (3rd button)

      Try it and let me know

      JUST Unpack to HonorBuddy/Bots
       

      Attached Files:

    12. KopyHB

      KopyHB New Member

      Joined:
      Oct 24, 2014
      Messages:
      6
      Likes Received:
      0
      Trophy Points:
      0
      does not change from one pet to die (swaping pet)
       
    13. Vevio

      Vevio Member

      Joined:
      Dec 3, 2012
      Messages:
      91
      Likes Received:
      0
      Trophy Points:
      6
      I have done all the steps but i cant see the pokehbuddy selection in the honorbuddy drop down for bot base selection...
       
    14. Prostak

      Prostak Member

      Joined:
      Mar 17, 2013
      Messages:
      249
      Likes Received:
      16
      Trophy Points:
      18
    15. Vevio

      Vevio Member

      Joined:
      Dec 3, 2012
      Messages:
      91
      Likes Received:
      0
      Trophy Points:
      6
      I tried the linked bot but that doesn't seem to run the profile I want to use which appears to be made for this bot base . Anyone know why I'm unable to see the bot as a option in the drop down list
       
    16. Bahnas

      Bahnas New Member

      Joined:
      Mar 20, 2015
      Messages:
      9
      Likes Received:
      0
      Trophy Points:
      0
      I get this which causes me to not see the bot in the honorbuddy bot dropdown selector. Help pls. :( ps. did everything exactly like you said.

      Compiler Error: d:\Honorbuddy\Bots\AutoAngler2\Coroutines.Fishing.cs(88,56) : error CS0103: The name 'FilletFish' does not exist in the current context
       
    17. OWGrand

      OWGrand New Member

      Joined:
      Dec 11, 2012
      Messages:
      148
      Likes Received:
      1
      Trophy Points:
      0
      Could somebody say is any botbases for pets that work for non eng client? Want to level up my pets. Thanks!
       
    18. mcphaidin

      mcphaidin Member

      Joined:
      Sep 11, 2014
      Messages:
      44
      Likes Received:
      0
      Trophy Points:
      6
      This is my error

      Compiler Error: c:\Honorbuddy\Bots\PokehBuddy\PokehBuddy.cs(416,50) : error CS1501: No overload for method 'Dismount' takes 0 arguments
       
    19. Slifty

      Slifty Member

      Joined:
      Nov 19, 2011
      Messages:
      212
      Likes Received:
      1
      Trophy Points:
      18
      Fresh hb installation and svn folder

      Error:
      Code:
      Compiler Error: E:\Software\Honorbuddy\Bots\PokehBuddy\PokehBuddy.cs(416,71) : error CS7036: There is no argument given that corresponds to the required formal parameter 'reason' of 'Mount.Dismount(string)'
       
    20. antonov314

      antonov314 New Member

      Joined:
      Apr 16, 2012
      Messages:
      73
      Likes Received:
      1
      Trophy Points:
      0
      Go the same error :(
       

    Share This Page