What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

WildBuddy Plugin - Template

Twist

Community Developer
Joined
Oct 15, 2010
Messages
643
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:
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?
 
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?
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.
 
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.
 
Back
Top