|
|
|
Page 1 of 1 |
[ 7 posts ] |
|
 I want to convert a script over into a plugin but : Developer's Corner
|
|
Posted: December 11th, 2003, 9:57 pm
|
|
|
|
virusfxp
virusfxp's Reps:
|
I have a copy of visual studio 2003 only... i have tried lookign at some of the other plugins such as the empty project plugin whcih seems to have been created in vb6... it won't let me upgrade that correctly.. i keep getting an error.... i opened up wyverns real time chatlogger though and can generally follow what he did there.. or the basic shape of the plugin code... over on the right there is references so i tried adding some of the dll's liek the triggerhelper and such and other dll's i see that are being referenced by a couple other plugins but once again am getting an error on them that they are not valid dll or com files... i already setup the xml and saw how to get the plugin linked to that for the most part.. and sub structure that is needed
am i able to use .net 2003 for this? if so then what dll's do i have to add in to reference... once i did set it up and got it working hopefully how would i go about getting it to install basically to be used... I'm very new to programming... so not really sure how to go about starting to build it... i can udnerstand just not sure what to do first kind of thing
I recently got a spellcraft script for daoc working with the help of wyvern and a couple others but would like to get it working as a plugin with a bit more flexibility than i did with the script.. change some things i had hard set to be variables the user can enter and such... right now the script works fine for me but its also a bit strict in how has to be setup to run and i'd liek to try and get away with that by making it into a plugin
Any help you cna give on where to start would be great.. thanks as always
|
|
|
|
|
Posted: December 11th, 2003, 10:58 pm
|
|
|
|
Admin
Admin's Reps:
|
Good news. I just fixed the code to allow managed plugins compiled with COM_Interop to work with XU. I just need to post the updated code.
To convert the EmptyPlugin you just need to change the error in line:
Private Sub IXUPlugin_Initialize(ByVal pHelper As XUnleashedGUI.IXUPluginHelper, ByVal nID As Integer) Implements XUnleashedGUI.IXUPlugin.Initialize
to
Private Sub IXUPlugin_Initialize(ByVal pHelper As XUnleashedGUI.XUPluginHelper, ByVal nID As Integer) Implements XUnleashedGUI.IXUPlugin.Initialize
Notice the missing "I" in the XUnleashedGUI.XUPluginHelper.
That will let you compile the plugin.
Then, with the next patch of 2.9.5 you will be able to register your plugin. We will also be releasing an empty VB.NET sourcecode project at that time as well.
I'll try to get in a C# example too.
|
|
|
|
|
Posted: December 12th, 2003, 10:02 pm
|
|
|
|
virusfxp
virusfxp's Reps:
|
cool.. thanks.. i'll take a look at it this weekend when i get a chance.. appreciate it
|
|
|
|
|
Posted: December 17th, 2003, 1:30 am
|
|
|
|
virusfxp
virusfxp's Reps:
|
I am hitting a knowledge roadblock here... I can look at the xml and look at the demo and understand whats going on but where to start i'm just lost... i want to try and put my spellcraft script into a plugin with a little more flexibity.. would you suggest i just alter the demo files and just do it that way.. or start new and just follow the guidelines in the demo
At the top of the the .vb it mentions a a demo class... which when i look at it pretty much looks like the same thing.. so thats confusing me a bit too since well i'm still inexperienced with programming... If i just alter the demo and such do i have to do the same alterations to the cls file as well or is that not needed or what?
I figured out on problem i wa shaving with adding a reference though... some reason when i browse and goto add the .dll it gives an error saying its not a dll or com.. was annoying me sinc ei can see its a dll.. i found it in a listing on one of the tabs and adding the gui and control dll's worked better that way for me
Basically my inexperience is showing since i don't know where to start... i can figure out a redumentary way of altering the code and getting the plugin to react how i want and do what i want, but not sure if i just edit the demo or how i would go about starting new
Also right now util i get it working and can try and figure better design for it, i'm figuring on 2 buttons.. a run and reset button... should i have the plugin do most of the work liek reading the logfile and reacting under the sub for the run button?
I tried to upgrade some of the other daoc plugins such as some of wyverns but upgrading them has been hanging on the daocservice reference during upgrade.. so i haven't been able to really look at how he or others went about doing things which is how i usually learn adn figure the stuff out
once again sorry for my lack of experience... easy answer i know would be to read some books but i'm struggling for time as it is with studying towards CCIE and having a life:)... playing with this stuff on the side instead of actively playing the game has become more fun for me in my little spare time
Thanks for any basic guidance anyone can give me.. i'd really appreciate it
|
|
|
|
|
Posted: December 17th, 2003, 8:57 am
|
|
|
|
WyvernX
WyvernX's Reps:
|
I can help a little.
You will need to alter the names of the class to whatever you like. Dont leave it at demo.
You will need to drop your vbs file into a class file, and modify it.
If, you have no functions in your script, just create a function on your class file, and drop the vbs text into that function.
If you DO have functions in your script, you will need to put those in the class file, and then create another function to hold the rest of the code.
Once that is done, create a button, and on the button_accepted, call your function that you created. Name it something clever like DoScript or whatever. And of course, in your DoScript will be the text of your vbs file (excluding functions)
I hope that helps.
|
|
|
|
|
Posted: June 8th, 2004, 5:52 am
|
|
|
|
Gwain
Gwain's Reps:
|
I tryed to make my own plugin(vb.net2003)
copile, create update all works fine
after click on install get an error:
An error was detected while registering!
Error loading MSCOREE.dll
loading 2 differnt copys of mscoree.dll
1. copy <unkown>
2. copy <c:windowsmicrosoft.netframeworkv1.1.4322mscorwks.dll
someone could help??
|
|
|
|
|
Posted: November 13th, 2004, 9:23 am
|
|
|
|
buckbuck
buckbuck's Reps:
|
bumped!
I want to create a plugin but haven't found documentation or the empty plugin example anywhere.
I want something in the form of hello world. Even better would be to have a plugin example with buttons, checkboxes, edit box, drop down option. Stuff you'd use to create a menu type thing.
Thanks to whoever replies.
My goal is to make a FFXI plugin for the clock, timers, copy&paste functionnality and that kinda stuff.
|
|
|
|
|
Who is online |
|
Users browsing this forum: No registered users and 5 guests |
|
|
|