• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [DevTool for Botbases] RecompileOTron

    Discussion in 'Botbases' started by anything, Jun 14, 2014.

    1. anything

      anything Member

      Joined:
      May 8, 2011
      Messages:
      203
      Likes Received:
      12
      Trophy Points:
      18
      RecompileOTron - A middle-man botbase to recompile your botbase every time you start HonorBuddy
      (For developers only)
      when you hit start your botbase is compiled again, Initialize()'ed and Start()'ed. the rest is up to your own botbase to do cool stuff.

      https://www.thebuddyforum.com/honor...oper-forum/165049-recompiling-botbase-cc.html
      See forum post. After finding no better way to test my botbases I quickly quickly hacked this up to make testing a little easier.
      I've been using it about a million times a day since, so I thought I might share it in case its useful to someone else.

      chunks of the CSharpCodeProvider is 'borrowed' from .net examples, and from one of highvoltz' old plugins. so a lot of the credit goes there.

      could probably be adapted to combat routines also.

      known issues:
      - because the assemblies arent cleared after use, after many starts (eg >100) HB will begin acting very strangely because it is running out of memory. just restart HB.
      - extension methods dont work. I dont know why actually, they must conflict with the existing extension in the namespace.
       

      Attached Files:

      Last edited: Jun 14, 2014
    2. btxfreedom0

      btxfreedom0 New Member

      Joined:
      Sep 18, 2014
      Messages:
      4
      Likes Received:
      0
      Trophy Points:
      0
      well done . i love it
       
    3. anything

      anything Member

      Joined:
      May 8, 2011
      Messages:
      203
      Likes Received:
      12
      Trophy Points:
      18
      thanks
      fyi i still use it every day ;) i dont know how people do botbase dev otherwise.
       
    4. Mirabis

      Mirabis Community Developer

      Joined:
      Jun 14, 2010
      Messages:
      4,475
      Likes Received:
      86
      Trophy Points:
      48
      I think most of them have similar plugins, e.g. I used to have a routine/plugin reloader up on forums ;p
       
    5. aash

      aash Member

      Joined:
      Oct 14, 2014
      Messages:
      179
      Likes Received:
      9
      Trophy Points:
      18
      Hello buddies,

      Caught a nasty bug which leads to abnormal termination and session lock if linked BotBase does not compile.
      Please find the update here:

      View attachment RecompileOTron.cs
       

    Share This Page