Page 1 of 15 12311 ... LastLast
Results 1 to 10 of 146
Like Tree25Likes

Thread: [BotBase] RaidBot - 30fps CC Execution

  1. #1
    Penguin of Doooooooom
    Join Date
    16.01.2010
    Posts
    1,516

    Default [BotBase] RaidBot - 30fps CC Execution

    Basically; all this bot does is run your current CC's Heal->CombatBuff->Combat behavior, at 30fps, within a FrameLock.

    This is meant to be used for people who use LazyRaider *only* for the "fight for me" support. It makes no claims to deal with targeting, or anything else. It simply runs your entire CC at 30fps (or as close as it can get to it).

    Note: I haven't actually messed with this myself, but it should work.

    The idea is, since HB by itself tends to be a bit slow due to plugins, and other overhead, it can vastly drop your DPS. Add on top of that some internal complexities, and you gradually slow down how frequently HB can "Pulse". This BotBase works around these issues, by ensuring the entire combat logic is executed within a single frame.

    I take no responsibility for any CC not working, or for any bugs you may encounter. Hopefully this may spawn a new set of super-speed CCs designed to run at 30fps (and achieve the top-DPS numbers that normal players can).

    I won't bother uploading the .cs file, nor explaining how to install/use it. This is simply some proof-of-concept code to show that HB can run as fast as your game (almost)

    Code:
    using Styx;using Styx.Logic.BehaviorTree;
    using Styx.Logic.Combat;
    
    
    using TreeSharp;
    
    
    namespace RaidBot
    {
        public class RaidBot : BotBase
        {
            private byte _oldTps;
            private Composite _root;
    
    
            #region Overrides of BotBase
    
    
            public override string Name { get { return "Raid Bot"; } }
            public override Composite Root { get { return _root; } }
    
    
            public override PulseFlags PulseFlags { get { return PulseFlags.Objects | PulseFlags.Lua; } }
    
    
            #endregion
    
    
            public override void Start()
            {
                _oldTps = TreeRoot.TicksPerSecond;
                TreeRoot.TicksPerSecond = 30;
                _root = new Decorator(
                    ret => StyxWoW.Me.Combat && StyxWoW.Me.GotTarget && !StyxWoW.Me.CurrentTarget.IsFriendly,
                    new LockSelector(
                        RoutineManager.Current.HealBehavior,
                        RoutineManager.Current.CombatBuffBehavior,
                        RoutineManager.Current.CombatBehavior));
            }
    
    
            public override void Stop()
            {
                TreeRoot.TicksPerSecond = _oldTps;
            }
    
    
            #region Nested type: LockSelector
    
    
            private class LockSelector : PrioritySelector
            {
                public LockSelector(params Composite[] children) : base(children)
                {
                }
    
    
                public override RunStatus Tick(object context)
                {
                    using (new FrameLock())
                    {
                        return base.Tick(context);
                    }
                }
            }
    
    
            #endregion
        }
    }

  2. #2
    Lifetimer
    Join Date
    23.02.2010
    Posts
    853

    Default

    Keep in mind this will NOT pulse your plugins (in simple terms: your plugins won't work/run).
    Check out #HonorBuddy on irc.quakenet.org!
    My work: SitStupid - AIO CCHazzPvP - Resto Druid CCDontLootThisWoW Head Item List Generator
    My profiles: TH MiningTH Herbing
    CLICK THE STAR TO MAKE ME HAPPY!!

  3. #3
    Penguin of Doooooooom
    Join Date
    16.01.2010
    Posts
    1,516

    Default

    Quote Originally Posted by znuffie View Post
    Keep in mind this will NOT pulse your plugins (in simple terms: your plugins won't work/run).
    Correct. Thats by design. (Most plugins just do pointless stuff that slows down the pulses. This should avoid that as much as it can.)

  4. #4
    Buddy
    Join Date
    03.12.2011
    Posts
    601
    Blog Entries
    1

    Default

    Quote Originally Posted by Apoc View Post
    (Most plugins just do pointless stuff that slows down the pulses. This should avoid that as much as it can.)
    okay.jpg
    jebus47, Azrael78 and bonnydj like this.
    Please attach a log in your post if you're having issues with my plugin/profile because my English is not so good.

    SimpleAuction - A Simple AH Plugin, Coming Soon! (uses the Auctioneer addon) 99% complete

  5. #5
    Buddy
    Join Date
    15.01.2010
    Posts
    38

    Default

    this is what i was searching for. no more addons now :P thanks apoc
    Hbrot Custom CC for all Classes

  6. #6
    Buddy
    Join Date
    24.02.2010
    Posts
    178

    Default

    I hope everyone includes this to their cc's

  7. #7
    Buddy
    Join Date
    21.03.2011
    Posts
    2,408

    Default

    Great, always had huge problems with slowly reacting CCs.

    Will give it a try at home.

  8. #8
    Lifetimer
    Join Date
    09.01.2011
    Location
    Germany
    Posts
    671
    Blog Entries
    4

    Default

    Here it is as a *.cs file.
    I just added PrecombatBuffBehaviour into it nothing more.

    THIS IS A BOT. YOU HAVE TO PUT THIS INTO YOUR BOT FOLDER!

    I won't maintain this nor will i take any bug reports. This is simple copy pasta, basta.

    greetz

    Weischbier
    Kopped, shinavaka and solo1420 like this.
    Necrophilia - Advanced Frost/Unholy Death Knight, Rogue Combat, Hunter Survival, Druid Feral Cat

    Don't forget to attach a log file!

    +rep and like my posts if you actually did!

  9. #9
    Lifetimer
    Join Date
    04.02.2010
    Posts
    65

    Default

    Thanks Apoc.
    I decided to run a quick test and copied your code and used it as a botbase.
    I ran ultraxion 25 LFR using my custom warlock file with felmaster.

    Using combat bot i did 19.6k DPS.
    Using raidbot i did 29.5k DPS

  10. #10
    Lifetimer
    Join Date
    29.04.2010
    Posts
    209

    Default

    Works great thanks Apoc , and thanks weischbier for the .cs

    Tested on my crappy ilvl 344 destro lock , LazyRaider + Plagueheart did 9.5k on 85 dummy , Raid Bot + Plagueheart did 12.8k
    Quote Originally Posted by CodenameG View Post
    (Warden) is just a chunky piece of code that dost work.

 

 
Page 1 of 15 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •