• Visit Rebornbuddy
  • Simcraft Implemented, a Raidbot Derivate with Integrated Combat

    Discussion in 'Botbases' started by Kane49_2, Feb 15, 2015.

    1. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
    2. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      Implementing Stagger:

      In SimcraftApis.cs add the following after the last function at the bottom which is public MagicValueType sync(String spell):
      PHP:
      public MagicValueType light
       
      {
           
      get { return stagger.light; }
       }

       public 
      MagicValueType moderate
       
      {
           
      get { return stagger.moderate; }
       }

       public 
      MagicValueType heavy
       
      {
           
      get { return stagger.heavy; }
       }
      In SimcraftTop.cs add the following under the line that says "public dynamic stat;" (in mine its line 126):
      PHP:
      public BuffProxy stagger;
      Ok this one is a bit complex. This is in the file SimcraftProxies.cs. I'll try to make it as clear as possible.
      Find the line that says
      PHP:
      colossus_smash_up = new DebuffProxy.DebuffInternal(dbc.Spells[SimcNames.debuffs["colossus_smash"].First().V2], this"colossus_smash_up");
      . In mine its around line 430. Insert a line below it and add
      PHP:
      stagger = new StaggerProxy(this);
      Next, below the line that says "public PreSteadyFocus pre_steady_focus;", add the following
      PHP:
      public StaggerProxy stagger;

      public class 
      StaggerProxy BuffInternal
      {
          public 
      StaggerProxy(BuffProxy owner)
              : 
      base(nullowner"stagger")
          {
              
      Properties["light"] = () => simc.debuff[dbc.Spells[124275]].up;
              
      Properties["moderate"] = () => simc.debuff[dbc.Spells[124274]].up;
              
      Properties["heavy"] = () => simc.debuff[dbc.Spells[124273]].up;
          }

          public 
      MagicValueType light
          
      {
              
      get { return this["light"]; }
          }

          public 
      MagicValueType moderate
          
      {
              
      get { return this["moderate"]; }
          }

          public 
      MagicValueType heavy
          
      {
              
      get { return this["heavy"]; }
          }
      }
      Finally, scroll down a bit to about line 660 and you'll find the function "public override Internal NewInternal(string token)" (NOTE: there are several functions with this name, make sure its the one directly after the sub-class "BuffInternal". Above this function (or after it), insert the following:
      PHP:
      public MagicValueType light
      {
          
      get { return stagger.light; }
      }

      public 
      MagicValueType moderate
      {
          
      get { return stagger.moderate; }
      }

      public 
      MagicValueType heavy
      {
          
      get { return stagger.heavy; }
      }
      Ok that should be it I think. start up HB and hopefully it compiles. I don't think I left anything out.
       
      Last edited: Oct 28, 2015
    3. Fubsnoobs

      Fubsnoobs New Member

      Joined:
      Jan 25, 2015
      Messages:
      10
      Likes Received:
      0
      Trophy Points:
      1
      Thanks shineey I'll be trying to get this set up this weekend. Again thanks for sharing I'll let you know if i get stuck with any changes.
       
    4. Day7

      Day7 Member

      Joined:
      Dec 14, 2014
      Messages:
      175
      Likes Received:
      2
      Trophy Points:
      18
      This was working but now on the newest build of simcraft, profiles I drop into the profiles folder cause it to bring up a compile error

      However, if I use a profile generated on the previous build of simcraft it compiles totally fine
       
    5. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      Some of the new simcraft profiles have newer functions that weren't in the older simc files. They require a little editing to get them to work
       
    6. Day7

      Day7 Member

      Joined:
      Dec 14, 2014
      Messages:
      175
      Likes Received:
      2
      Trophy Points:
      18
      Ah, do you know what those are and/or what needs to be changed/what they need to be changed to?
       
    7. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      It really just depends on what class/spec you're trying to make a profile for.
      The most common that is used in most of them is the spell_name.spell_targets conditional. Just change all of those to "active_enemies". Also the ".react" doesn't work from what I've experienced. Change all of the buff.spell_name.react to buff.spell_name.up. Besides that, I'd need to see specifics. You can normally tell by starting Simcraft Impl and when the popup appears and then it throws a compilation error, close that out and look at your main HB terminal. There will usuially be more specific error messages in there.
       
    8. Day7

      Day7 Member

      Joined:
      Dec 14, 2014
      Messages:
      175
      Likes Received:
      2
      Trophy Points:
      18
      Before I go about fixing that, I've got this issue suddenly coming up
      any idea?

      Compiler Error: Bots\Simpl\trunk\Caching.cs(12,24) : error CS0234: The type or namespace name 'RuntimeBinder' does not exist in the namespace 'Microsoft.CSharp' (are you missing an assembly reference?)
       
    9. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      post from several pages back
       
    10. Day7

      Day7 Member

      Joined:
      Dec 14, 2014
      Messages:
      175
      Likes Received:
      2
      Trophy Points:
      18
    11. Day7

      Day7 Member

      Joined:
      Dec 14, 2014
      Messages:
      175
      Likes Received:
      2
      Trophy Points:
      18
      Alright so after fixing these, I've found the error

      error CS1061: 'Simcraft.SimcraftImpl' does not contain a definition for 't18_class_trinket' and no extension method 't18_class_trinket' accepting a first argument of type 'Simcraft.SimcraftImpl' could be found (are you missing a using directive or an assembly reference?)

      So once I went in and removed that everything loaded up fine
       
    12. PriorityCR

      PriorityCR New Member

      Joined:
      Feb 26, 2015
      Messages:
      108
      Likes Received:
      0
      Trophy Points:
      0
      Bom dia. Finalmente minha conta foi liberada. E sim voltarei a usar o HB. Lembro que na época essa era a melhor CR para hunter.
      Com mais de 6 meses longe, vejo que o trabalho não parou. Parabéns para os desenvolvedores.
      Gostaria de saber se essa CR continua sendo a melhor para hunter e se tem algum perfil pre definido? Obrigado a todos

      -----

      Good morning. Finally my account was released. And yes back using HB. I remember that at the time this was the best CR for hunter.
      With more than six months away, I see that the work has not stopped. Congratulations to the developers.
      I wonder if this CR remains the best for hunter and if you have any pre defined profile? Thank you all
       
    13. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      Sadly, Kane (the original developer), has ceased work on this since around April. However, there have been several modifications made by myself and some others that allow this to work correctly. I have working MM and BM hunter profiles if you would like them.
       
    14. PriorityCR

      PriorityCR New Member

      Joined:
      Feb 26, 2015
      Messages:
      108
      Likes Received:
      0
      Trophy Points:
      0
      Yes I would like. Thx
       
    15. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
    16. Kitschi

      Kitschi New Member

      Joined:
      Oct 4, 2012
      Messages:
      27
      Likes Received:
      0
      Trophy Points:
      1
    17. darkshadow210

      darkshadow210 New Member

      Joined:
      Aug 21, 2014
      Messages:
      26
      Likes Received:
      0
      Trophy Points:
      0
    18. ataran93

      ataran93 New Member

      Joined:
      Oct 2, 2013
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      1
      can anyone help i have tried hundreds of different versions but no luck, can anyone add a working simcraft bot folder to download? i have tried the others but it either, wont compile, so i added the line from page 71 or it doesnt show my routines which are in the simcraft profiles folder and it says error CS1061: 'Simcraft.SimcraftImpl' does not contain a definition for spells etc. anyone post a working simcraft please?
       
    19. ataran93

      ataran93 New Member

      Joined:
      Oct 2, 2013
      Messages:
      29
      Likes Received:
      0
      Trophy Points:
      1
      can anyone help me out with this error?

      <63583297198.0402>:Aura pre_steady_focus initialized with null
      <63583297198.0402>:Aura bloodlust_proxy initialized with null
      <63583297198.0412>:Aura potion_buff initialized with null
      <63583297198.0412>:Aura anytrinket_buff initialized with null
      <63583297198.0412>:Aura casting_debuff initialized with null
      <63583297198.0432>:Aura pre_steady_focus initialized with null
      <63583297198.0432>:Aura bloodlust_proxy initialized with null
      <63583297198.0432>:Aura potion_buff initialized with null
      <63583297198.0432>:Aura anytrinket_buff initialized with null
      <63583297198.0562>:Compiling Action Lists
      <63583297198.0612>:Loading configuration
      <63583297198.0932>:Configuration successfully loaded.
      <63583297198.0932>:System.NullReferenceException: Object reference not set to an instance of an object.
      at Simcraft.SimcraftImpl..ctor() in C:\Users\*****\Desktop\HB OLD\Routines\Singular-simpl_combat\SimcraftImpl\SimcraftTop.cs:line 248
       
    20. shineey

      shineey Member

      Joined:
      Nov 14, 2014
      Messages:
      133
      Likes Received:
      0
      Trophy Points:
      16
      If you are using a SIMC file that I uploaded, some of my routines utilize spells/buffs/debuffs that were not in the original download from Kane's original post. Are you using one of my simc files? What class are you trying to run it on?
       

    Share This Page