• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [Plugin - Dev] HBConsole - a plugin that allows you use C#/Lua directly from a plugin

    Discussion in 'Archives' started by highvoltz, Nov 12, 2010.

    1. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Attachment removed in preparation for new release but unable to upload new release because of server issues...Will try again sometime later.

      This will run C# or lua directly from a text edit box.
      Able to plug stuff directly from HB.

      Short-cuts/Wrappers

      • Log() - Prints to the Output Log
      • Api (string TypeName); - dumps all the different types from typeName e.g. Api("WoWAura");
      • Me - ObjectManager.Me
      • F5 key - Executes the C# code.
      • ClearLog() - clears the log
      • Units - returns list of all WoWUnits
      • Objects - Returns a list of all WoWObjects
      • Items - Returns a list of all WoWItems
      • GameObjects - Returns a list of all WoWGameObjects
      • DynamicObjects - Returns a list of all WoWDynamicObjects
      • Players - Returns a list of all WoWPlayers
      - credits to CnG for the plugin name.
      HB Console_2013-02-12_15-25-20.png

      HBConsole 1.4

      • bug fix - thanks to x11r6

      HBConsole 1.3

      • The Gui is no longer shown as a modal dialog box.
      HBConsole 1.2

      • The Error output now uses better formatting.
      • Added reference to GB2 and AB
      • The wrappers should work again. e.g Log()
      • ObjectManager.Update() is called if HB isn't running

      Credits


      • mastahg - Log(format.ToString(),.. change suggestion.
       

      Attached Files:

      Last edited: Mar 2, 2013
      chinajade, tuanha, rcadams and 2 others like this.
    2. baxterboy

      baxterboy New Member

      Joined:
      Jul 9, 2010
      Messages:
      323
      Likes Received:
      11
      Trophy Points:
      0
      Awesome mate, this will definitely be handy! +rep

      EDIT: Oh ok, need to spread some rep first. :(

      EDIT2: Would be sweet for something like this which doesn't need you to login to WoW/Honorbuddy first because that can be a pain in the arse. Some form of stand alone app.
       
      Last edited: Nov 12, 2010
    3. quel

      quel Member

      Joined:
      Oct 19, 2010
      Messages:
      844
      Likes Received:
      7
      Trophy Points:
      18
      Awsome, really good work. +rep for your work
       
    4. John1337

      John1337 New Member

      Joined:
      Jan 15, 2010
      Messages:
      320
      Likes Received:
      0
      Trophy Points:
      0
      cant download link seems be broken
       
    5. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Sorry it was late at night and I forgot to upload it :). I updated original post with link.
       
    6. znuffie

      znuffie Banned

      Joined:
      Feb 23, 2010
      Messages:
      864
      Likes Received:
      30
      Trophy Points:
      28
      I have a feeling this was made after my help requests :p
       
    7. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      No it's about 4-5 days old :)
       
    8. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Update
      Renamed plugin and added features,. see 1st post for details.
       
    9. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      cool, ive been meaning to write a beanshell clone for HB, now no need :)
       
    10. exemplar

      exemplar New Member

      Joined:
      Mar 16, 2010
      Messages:
      167
      Likes Received:
      32
      Trophy Points:
      0
      can u please import common namespaces such as those containing IEnumerable etc
       
    11. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      HBConsole 1.1

      • Included more common namespaces.
      • Added reference Tripper.Tools.dll as well as System.Core.dll (for linq support)
       

      Attached Files:

    12. regecksqt

      regecksqt New Member

      Joined:
      Dec 19, 2010
      Messages:
      49
      Likes Received:
      4
      Trophy Points:
      0
      Call ObjectManager.Update() before you run the c# eval imo, I wasn't running a bot and it was confusing the hell out of me when I was getting weird results.

      Also you should ask to have this included in HB, absolute lifesaver.
       
    13. Nuok

      Nuok Community Developer

      Joined:
      Jan 15, 2010
      Messages:
      975
      Likes Received:
      28
      Trophy Points:
      28
      I know this is a little offtopic but is there any chance someone could code a script to just dump nearby objects by name and id?
      Some of them arnt on wowhead for whatever reason
       
    14. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      HBConsole 1.2

      • The Error output now uses better formatting.
      • Added reference to GB2 and AB
      • The wrappers should work again. e.g Log()
      • ObjectManager.Update() is called if HB isn't running
       
      Last edited: Mar 13, 2011
    15. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      HBConsole 1.3

      • The Gui is no longer shown as a modal dialog box.
       
    16. x11r6

      x11r6 New Member

      Joined:
      Jan 15, 2010
      Messages:
      354
      Likes Received:
      7
      Trophy Points:
      0
      I keep getting this error:
      0) Impossibile trovare il file di metadati 'Honorbuddy.exe'
      0) Impossibile trovare il file di metadati 'Tripper.Tools.dll'

      I really wanted a tool like this :(

      EDIT:
      Changed
      Code:
      System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe",
      "Tripper.Tools.dll",
      TO:
      Code:
      "./" + System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe",
      "./Tripper.Tools.dll",
      and it now works :)
       
      Last edited: Oct 1, 2011
      highvoltz likes this.
    17. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,339
      Likes Received:
      382
      Trophy Points:
      83
      Got tired of adding .Tostring() to everything, and added
      Code:
                  "static public void Log ( object format, params object[] arg)" +
                  "{" +
                      "HighVoltz.HBConsole.Log(format.ToString(),arg);" +
                  "}" +
      
      to the plugin so i wouldnt have to anymore
       
    18. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      Change is now in current version. thanks for the suggestion.
       
    19. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      5,339
      Likes Received:
      382
      Trophy Points:
      83
      Was trying log vectors, and it was not happy with me.

      Code:
      "using Tripper.Tools.Math;" +
      
      and within public static void Log(System.Drawing.Color c, string text, params object[] arg)
      Code:
                  if (arg.Any())
                  {
                      text = string.Format(text, arg);
                  }
      
       
    20. highvoltz

      highvoltz Well-Known Member

      Joined:
      Mar 22, 2010
      Messages:
      1,729
      Likes Received:
      141
      Trophy Points:
      63
      HBConsole 1.5. includes some big changes
      * new UI.
      * now supports saving snippets of code.

      Added the following shortcuts.


      • ClearLog() - clears the log
      • Units - returns list of all WoWUnits
      • Objects - Returns a list of all WoWObjects
      • Items - Returns a list of all WoWItems
      • GameObjects - Returns a list of all WoWGameObjects
      • DynamicObjects - Returns a list of all WoWDynamicObjects
      • Players - Returns a list of all WoWPlayers
       

    Share This Page