• Visit Rebornbuddy
  • [PLUG-IN] PetArea is loading for me now but with an issue... can anyone help sort it?

    Discussion in 'Honorbuddy Support' started by qzmicro, Dec 8, 2014.

    1. qzmicro

      qzmicro Member

      Joined:
      Oct 18, 2014
      Messages:
      46
      Likes Received:
      0
      Trophy Points:
      6
      Hi everyone,

      I was trying to use Hackersrage's [Botbase] PokehBuddy (Revised for WoD) and realized I needed/wanted to use Battle Pet Swapper to level all my pets. I got Battle Pet Swapper working and then needed something to switch my profiles while leveling my pets. So, I wanted to use PetArea. I received an error upon loading HB and then went to the line in question in the cs file to have a look. Commeneted out the line and it loaded just fine. So, I tested it out on a spare account I have overnight and it seems to have worked (or at least trapped/leveled a bunch of pets without PetArea with a GB profile I found.) I suspected that was due to the fact that I stayed in the same zone/area for a long time. This is where PetArea comes in.

      Problem is, today I went ahead and loaded the toon I wanted to do this with and let it run for a few hours. I came back and it crashed wow stating there was not enough memory or something similar. I have no idea what that line of code is trying to achieve so I went ahead and started this thread. Can anyone assist? It seems to me this line of code was probably dated due to new API possibly? Is there a valid replacement? Is that the issue at all? Can anyone with insight shed some light? Cheers... :)

      I have collected pets since vanilla and never bothered with battling my pets. Until now... so I'd like to get this working... I hope other feel the same. Alternatively if there is an easier way, please advise.

      -Q

      So, in PetArea.cs the error in HB pointed to line 187, right which is the
      Code:
      where !Blacklist.Contains(unit.Guid)
      part of the following function:

      Code:
      public static WoWUnit WildBattleTarget()
              {
                  //int dummy = GetPetLevel() -5;
      			
      			WoWUnit ret = (from unit in ObjectManager.GetObjectsOfType<WoWUnit>(true, true)
                                   orderby unit.Distance ascending
      							 
      //                             where !Blacklist.Contains(unit.Guid)
                                   where unit.IsPetBattleCritter 
                                   where !unit.IsDead
      							 //where unit.Level < dummy
      							 select unit).FirstOrDefault();
      			
      			
                  if (ret != null){
                      //Logging.Write(""+ret.Name+" range " + ret.Guid);
      				return ret;
      				
      			}
                  return null;
              }
      
      Any suggestions?... :confused:
       
    2. qzmicro

      qzmicro Member

      Joined:
      Oct 18, 2014
      Messages:
      46
      Likes Received:
      0
      Trophy Points:
      6
      [Reserved] ...
       
    3. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      this is for support. so if your having problems installing honorbuddy. i cant help you fix a plugin. please use the developers section for that.
       
    4. qzmicro

      qzmicro Member

      Joined:
      Oct 18, 2014
      Messages:
      46
      Likes Received:
      0
      Trophy Points:
      6
      Right, sorry. Please close out this thread or move it.
       
    5. CodenameG

      CodenameG New Member

      Joined:
      Jan 15, 2010
      Messages:
      38,369
      Likes Received:
      231
      Trophy Points:
      0
      please use the developers section. i cant help you with it. or if its someone elses then post in their thread.
       

    Share This Page