amazingnessn
New Member
- Joined
- May 23, 2014
- Messages
- 69
- Reaction score
- 0
I've been trying to do a simple inspect plugin with windows forms. I've gotten the basic concept working easily with just printing strings of gear name/grade to the log, but am having trouble using methods from the Core class in my form.
I'm using visual studio, and basically my problem is that a method such as me.target is recognized in the compiler as having correct syntax but throws an exception when I run the plugin:
System.NullReferenceException: Object reference not set to an instance of an object at ArcheBuddy.Bot.Classes.Core.get_me()
This is the form
That's all I have so far as I'm just trying to get this issue resolved before I start on the actual plugin functionality. Anything I try to use involving Core functions throws this exception.
I've tried to find a solution on my own for the past week during my free time but I think I've hit a wall, any help/advice is appreciated.
I'm using visual studio, and basically my problem is that a method such as me.target is recognized in the compiler as having correct syntax but throws an exception when I run the plugin:
System.NullReferenceException: Object reference not set to an instance of an object at ArcheBuddy.Bot.Classes.Core.get_me()
This is the form
Code:
namespace Inspect
{
public partial class InspectForm : Form
{
Core core = new Core();
public InspectForm()
{
InitializeComponent();
}
private void button3_Click(object sender, EventArgs e)
{
var x = core.me.target;
}
}
}
I've tried to find a solution on my own for the past week during my free time but I think I've hit a wall, any help/advice is appreciated.