• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • WildBuddy Plugin - Template

    Discussion in 'Plugins' started by Twist, Jan 28, 2015.

    1. Twist

      Twist Community Developer

      Joined:
      Oct 15, 2010
      Messages:
      643
      Likes Received:
      31
      Trophy Points:
      28
      WildBuddy Plugin - Template
      Updated: 1/28/2015

      Change Log:
      Added overrides to virtual methods. (would keep bot from loading).
      Commented out "example" form reference (since its not actually included).

      The attached is a WildBuddy Plugin Template. This is required for making plugins to do specific things in the context of a bot.

      For example; if you wanted to "/Rude" every time you clicked on an enemy player this would be where might you start.

      Please keep in mind that a plugin is meant to supplement an existing bot which is different than an entire bot-base.

      This plugin template will show up in your "Plugins" and will be pulsed on a timer (10 times per second).

      Twist's Plugin Template: View attachment WildStarPlugin.cs

      If you use this template +rep or a mention in your thread/product would be fantastic.

      Thanks, and Happy Botting!
      -Twist-
       
      Last edited: Jan 29, 2015
    2. gf779sgf9sfugsgf9sgg

      gf779sgf9sfugsgf9sgg New Member

      Joined:
      Jan 25, 2015
      Messages:
      12
      Likes Received:
      0
      Trophy Points:
      0
      Hello.
      I put the file in the "Plugins" folder of the bot and startet the bot, but the plugin does not seem to be loaded.
      It does not appear in the plugin list in the "Settings" window of the bot.

      I even added this to the "Settings\Global\AppSettings.json" file:
      Code:
      ,
        "CharacterPluginsEnabled": {
          "User User": [
            {
              "Name": "Auto Equip",
              "Enabled": true
            },
            {
              "Name": "This is the ultimate test botbase thinger!",
              "Enabled": true
            }
          ]
        }
      But still nothing happens.

      However, if I put the WildStarPlugin.cs file under "Routines\Default Routine", I get the message
      "Plugin This is the ultimate test botbase thinger! (version 0.0.0) by Twist enabled." on starting up the bot application.

      Then I added this to the plugin class:
      Code:
      private static ILog Log = LogManager.GetLogger("WildstarPlugin");
      And this in the Pulse() method:
      Code:
      og.Debug("test");
      Then I restarted the bot and ran the profile bot, but my test message does neither appear in the log window nor in the .log files.

      What am I doing wrong?
       
    3. Twist

      Twist Community Developer

      Joined:
      Oct 15, 2010
      Messages:
      643
      Likes Received:
      31
      Trophy Points:
      28
      The plugin files need to be in a subfolder in the plugin folder.
      something like "c:\Wildbuddy\Plugins\MyPlugins\plugin.cs"

      I tested both of these before i uploaded them and this is what i found. Let me know if this doesnt help though.
       
    4. Apoc

      Apoc Moderator Staff Member Moderator

      Joined:
      Jan 16, 2010
      Messages:
      2,790
      Likes Received:
      94
      Trophy Points:
      48
      Correct!

      Plugins need to be in their own sub-dir to be considered for compiling in the bot. This is to avoid having massive issues with clashing types, etc. And the obvious organization issues.
       

    Share This Page