How do you compile a plugin?

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

cppnoob*
decaying skeleton
decaying skeleton
Posts: 4
Joined: Fri Apr 09, 2004 2:36 pm

How do you compile a plugin?

Post by cppnoob* » Mon Apr 19, 2004 8:57 pm

ok so i pretty much have the part where you copy and paste the code into a new project workspace... but when i hit compile it acts like its compiling, but the dll isnt anywhere on my comp. i got everything right, i followed exact instructions on the specific plugin page... but still no dll.. any suggestions? or tips? or what might i be doing wrong? anything will help, thanks :?:
wtf

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Tue Apr 20, 2004 2:25 am

check the release folder of your Compile folder. That is were my plugins dlls save to.

cppnoob*
decaying skeleton
decaying skeleton
Posts: 4
Joined: Fri Apr 09, 2004 2:36 pm

.

Post by cppnoob* » Tue Apr 20, 2004 7:12 pm

nope.. tried compiling three times this time, and first and second time i ran a search on whole harddrive for mqtwist.dll... no such file. the third time i searched the entire hd for *.dll, and read through each dll to find it. it is nowhere! lol i think my cpp is retarded..
wtf

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Tue Apr 20, 2004 10:13 pm

...
did you even bother to run mkplugin.exe?

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Tue Apr 20, 2004 11:47 pm

I did and I still don't get a dll for any plugin. Is there a link to a step by step process for compiling and installing a plugin like there is with installing MQ2?



Thanks

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Apr 20, 2004 11:51 pm


Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Wed Apr 21, 2004 3:12 am

Ok, I'll do a step by step process and perhaps someone can let me know what I missed. For this example I tried mq2dps.

1. un-compiled zip into c:\mq2 dir.
2. clicked start button
3. went to Run and typed CMD
4. cd c:\mq2
5. mkplugin mq2dps (plugin created with no errors)
6. exit command prompt
7. went to Explorer and to the dir it created (c:\mq2\mq2dps)
8. double clicked on MQ2Dps.dsw to open VS6
9. I added PetCharFnc.cpp to the project
10. I hit F7 and it created the mq2dps.dll with no errors
11. I went to c:\mq2 dir and double clicked macroquest2.dsw
12. I hit F7 to re-build the mq2main.dll
13. closed VS6 and started MQ2.exe
14. start up EQ
15. typed: '/plugin mq2dps' from in game
16. It said mq2dps plugin was loaded
17. typed: '/dps' and it said invalid command

The dll mq2dps was in the Release dir and MQUI_DpsWnd.xml was in my UI folder but still no luck.

Thanks

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Wed Apr 21, 2004 3:22 am

Take steps 8, 9, 10, and put them at the end. You need MQ compiled before the plugins are compiled.

magictiger
a snow griffon
a snow griffon
Posts: 450
Joined: Sun Mar 21, 2004 2:24 pm

Post by magictiger » Wed Apr 21, 2004 9:55 am

Also, did you remember to paste the proper mq2dps code into mq2dps.cpp?

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 21, 2004 11:48 am

In MQ2::Announcements there's a step by step guide how to take plugins from copy/paste ont he boards to a compiled plugin and load it. Why not follow it? Better yet, MQ2DPS is a download isnt it? You dont need to copy/paste anything
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Rassilon
a lesser mummy
a lesser mummy
Posts: 73
Joined: Thu Sep 04, 2003 6:34 pm

Post by Rassilon » Wed Apr 21, 2004 11:54 am

Take steps 8, 9, 10, and put them at the end. You need MQ compiled before the plugins are compiled.
MQ was already compiled, I just did a F7, re-compile, after the plugin was created.
Also, did you remember to paste the proper mq2dps code into mq2dps.cpp?
All I did to mq2dps was add PetCharFnc.cpp to the project before I compiled it. Since I didn't get any errors about the 'i' and 'z' thing I figured it was fine. No errors, just 2 warnings which were said to be ok.
Compiling...
MQ2Dps.cpp
C:\Program Files\MQ00\MQ2Dps0_9_93\MQ2Dps.cpp(105) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
C:\Program Files\MQ00\MQ2Dps0_9_93\MQ2Dps.cpp(112) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
PetCharFnc.cpp
Linking...
Creating library ../Release/MQ2Dps.lib and object ../Release/MQ2Dps.exp

MQ2Dps.dll - 0 error(s), 2 warning(s)
These 2 warnings to be exact.

Here are the files created when trying to make the plugin.
c:\mq2\mq2dps\
MQ2Dps.cpp
MQ2Dps.dep
MQ2Dps.mak
MQ2Dps.vcproj
MQ2Dps.dsw
MQ2Dps.plg
MQ2Dps.opt
MQ2Dps.dsp
MQ2Dps.ncb
makefile
Intermediate (dir)

c:\mq2\mq2dps\intermediate\
MQ2Dps.obj
MQ2Dps.pch
petcharfnc.obj
vc60.idb

c:\mq2\release\
MQ2Dps.lib
MQ2Dps.exp
MQ2Dps.dll

Thanks

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Wed Apr 21, 2004 12:00 pm

you did fine. warnings are usually to be ignored.

The guy that wrote it should be aware of those warnings and may or may not fix them. closing topic have a nice day, your plugin will work fine
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0