What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Beginner problems with creating forms Visual Studio

linnabeba

Member
Joined
Dec 24, 2011
Messages
41
Reaction score
0
So I have a little problem...
I have no problems with creating plugins from existing c# file which I compile to .dll with archebuddy plugin editor. But whenever I create .dll in visual studio, even if I create it as library or change project settings for Windows Forms Application to builds as .dll, Archebuddy won't recognize it.

I tried few tutorials here, but whatever I do, Archebuddy doesn't recognize my plugins...
So what should I do, are there any basic guidelines for creating .dll files for archebuddy using windows forms?
Would like some beginner help on setting it up. Would be willing to give free plugin access when I create it... It is 90% in archebuddy plugin editor and works fine, but I would like some GUI for it since I can't control it this way.
I'm working on plugin which follows gps path, when it detects sunken treasure nearby, it will dive, open it, follow it to top and loot it. Also have detector for pouches, if number of pouches is less than x it will stop the script.
Still work in progress since he dies from low breath because of wrong positioning sometimes if he doesn't have dahuta, and etc.

I just need help with creating windows forms for it so I can make nice gui and controls for it...
Any help would be awesomeand and I will be giving away free keys to those who help me when I put it on buddystore...
Thank you very much.
 
Some Hints:
- Create project as Visual C# -> Class Library
- Add ArcheBuddy.dll to reference
- Set compile target to x86 in Build -> Configuration Manager
- Set your project target framework from .NET 4.5 to 4.5.1 in Project -> XXX Properties -> Application

For the needed code check plugins with source, like my Traveller stuff.

For uploading to the store you need to take care of additional requirements:
https://www.thebuddyforum.com/arche...181412-archebuddy-store-plugins-helpdesk.html
Standard plugins:
- Each run - new plugin instance.
- Each run - new AppDomain.

Store plugins:
- Each run - same instance. (All your variables have values from last run, when user launch your plugin again)
- Each run - main AppDomain. Plugin never unloaded.

If you want get correctly work of your plugins in the store you must always initialize all variables, classes, etc in the PluginRun, and correctly Dispose all Threads\Tasks\Windows Forms\Events in the PluginStop() method.
If a user stops a plugin without proper code in the PluginStop() method - the plugin will work until is AB shutdown.
 
Back
Top