• Visit Rebornbuddy
  • Small things, request to add to official build

    Discussion in 'Archives' started by rrrix, Oct 19, 2012.

    1. rrrix

      rrrix DEVELOPER Buddy Core Dev

      Joined:
      Jul 11, 2010
      Messages:
      3,449
      Likes Received:
      61
      Trophy Points:
      0
      Hi Giles,

      I've been fiddling with a few things, was hoping I could see them into the official build (as its taking more and more time to add them every download :))

      1) Ghom gas clouds and spit avoidance (Act 3)
      For hashAvoidanceSNOList
      Code:
                      // ghom gas clouds
                      93837, 220260, 211304
      
      For dictAvoidanceRadiusDefaults
      Code:
                      // ghom gas clouds
                      {93837,20}, {220260,20}, {211304, 20}
      
      For dictAvoidanceHealth<Class>Defaults. BTW it would be super handy to just have a "dictAvoidanceHealthDefaultDefault" or such for global settings.
      Code:
                  // ghom gas clouds
                  {93837,1}, {220260,1}, {211304, 1}
      
      2) For dictActorSNOPriority, this line was actually causing the little gremlin guys to stack up around me 4-6 at a time before i started attacking. Causes stuck issues and the like. Can we just give them a little higher priority? with -401 they never get attacked. Works pretty good with 400.

      Code:
                  // The annoying grunts summoned by the above
                  {4084, 400},
      

      3) My bot was getting stuck trying to attack units and breakables in the next room in certain dungeons that were on the RActorList but couldn't path to. I added this, and it's had a two-fold effect of increasing bot performance while fixing this issue at the same time!

      In RefreshDiaObjects() line 2095 (1.6.3.3) just below the hashRGUIDIgnoreBlacklist check.
      Code:
                      if (!thisobj.InLineOfSight)
                      {
                          continue;
                      }
      
      4) Finally, I've added this in GilesTrinityStart(), this adds any TargetBlacklist entries from profiles into the permanent blacklist when the bot starts.

      Code:
                  foreach (TargetBlacklist b in Zeta.CommonBot.ProfileManager.CurrentProfile.TargetBlacklists.Where(b => !hashSNOIgnoreBlacklist.Contains(b.ActorId)))
                  {
                      hashSNOIgnoreBlacklist.Add(b.ActorId);
                  }
      
      Thanks!

      rrrix
       
      Last edited: Oct 19, 2012
    2. bombastic

      bombastic New Member

      Joined:
      Jun 18, 2012
      Messages:
      430
      Likes Received:
      3
      Trophy Points:
      0
      InLineOfSight was a good idea, i'll try it later.

      ps: if ghom gas clouds is added i want a 0 radius on it. Better to not avoid it, in my case :p
       
    3. rrrix

      rrrix DEVELOPER Buddy Core Dev

      Joined:
      Jul 11, 2010
      Messages:
      3,449
      Likes Received:
      61
      Trophy Points:
      0
      Are you running a Barb?

      I'm not able to stand in the gas clouds without losing a good amount of health, but adding it with 0 would at least save me a little time.
       
    4. Pkt

      Pkt New Member

      Joined:
      Oct 1, 2012
      Messages:
      37
      Likes Received:
      0
      Trophy Points:
      0
      If it works, the LoS check is a great idea, I have seen my barb get stuck trying to break a chest through a wall in the underbridge several times...
       
    5. rrrix

      rrrix DEVELOPER Buddy Core Dev

      Joined:
      Jul 11, 2010
      Messages:
      3,449
      Likes Received:
      61
      Trophy Points:
      0
      It works pretty well - if the bot moves to where the DiaObject is within LoS it will get added to the cache and Giles will remember to use it, even if it moves around to another room/area. For me it's seen Rare4+ drops, run to another room chasing a treasure goblin, and then run back and picked up the loot that was dropped earlier. I was impressed when I realized this... Giles has a good design in this regard!
       
    6. Moley

      Moley New Member

      Joined:
      Jul 15, 2012
      Messages:
      227
      Likes Received:
      0
      Trophy Points:
      0
      This change is working great, bravo, instantly noticed it when i faced a waller pack, all ranged chars should benefit from this greatly.
      I salute you sir!
       

    Share This Page