Plugin compile issues? Weird.

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

Moderator: MacroQuest Developers

Skyjet2000
orc pawn
orc pawn
Posts: 17
Joined: Mon Mar 28, 2011 8:00 am

Plugin compile issues? Weird.

Post by Skyjet2000 » Mon Mar 28, 2011 8:09 am

Hello. I recently just learned how to compile MQ, and install plugins. I've done it multiple times now and have had no problems compiling MQ2. My problem comes with certain plugins.

I've been able to compile MQ2, and install the MoveUtils Plugin (My other accnt is VIP) with ease. IT works every time. However when I try to install other plugins I get an error and it doesn't work (Mq2melee, Mq2cast, MQ2advpath). I've gone over all the steps with a fine comb and I pretty damn sure I'm doing it correctly. I've even done fresh compiles of MQ2 and attempted to install them individually by themselves, following all the same steps that work perfectly for MoveUtils. Anyone have any idea as to what I could possibly doing wrong? I can freshly compile MQ2 and install Moveutils with ease. The others simply don't work even though I'm following the exact same steps.

Any help would be greatly appreciated.

After reading other threads i wanted to add. I AM doing Step #4 =p, so it's not that.

Milten
a hill giant
a hill giant
Posts: 176
Joined: Thu Oct 09, 2003 11:40 am

Re: Plugin compile issues? Weird.

Post by Milten » Mon Mar 28, 2011 8:33 am

I had to chuckle at the "My other accnt is VIP", and I was a bit boggled by your post...

Maybe tell us what Step #4 is, and ... I dunno, perhaps give us a bit more info about the actual error you're having, and what you're doing to get there?

Just a ... suggestion.

Skyjet2000
orc pawn
orc pawn
Posts: 17
Joined: Mon Mar 28, 2011 8:00 am

Re: Plugin compile issues? Weird.

Post by Skyjet2000 » Mon Mar 28, 2011 8:44 am

My other account IS vip. That's how I have access to those plugins. Only I'm f'ing retarded and my VIP account name could be traced to my actual EQ character =p. Made the forum account name years ago lol. If there is a certain VIP only link that might help me, post it and I'll be able to read it when I switch over no problem if you require that I confirm VIP status.

Step #4 is copying the .cpp into the new .cpp file created when you use the mkplugin command. Reading many help threads it seems to be one of the main problems people have, and mess up on.

As for the error? I'm not sure. I Freshly compile MQ2, add Moveutils and hit F7. Compiles, 0 errors. Log in, and it all works.
I freshly compile MQ2, Add MQ2Melee, hit F7. Errors and it wont' work. I'm following the exact same steps and everything works like it should up until the actual compile part. MKplugin works fine, I copy/paste the .cpp, only when I recompile I get errors.

Just wondering if there is a common newbie mistake. If needed I can do it again and copy/paste the error soon.

User avatar
htw
a grimling bloodguard
a grimling bloodguard
Posts: 512
Joined: Wed Feb 18, 2004 8:30 pm
Location: Albuquerque, NM USA
Contact:

Re: Plugin compile issues? Weird.

Post by htw » Mon Mar 28, 2011 9:39 am

Skyjet2000 wrote:<snip>

Just wondering if there is a common newbie mistake. If needed I can do it again and copy/paste the error soon.
Well... that would be helpful. :mrgreen:

htw

winultima
decaying skeleton
decaying skeleton
Posts: 1
Joined: Thu Mar 27, 2014 3:55 pm

Re: Plugin compile issues? Weird.

Post by winultima » Thu Mar 27, 2014 4:05 pm

I jumped to post on all of the forums related to MQ2Cast from the Search option and this one looks more relevant to what I'm having an issue with.

I checked out the other website and got realy good advice but I thought maybe if I ask around on this forum, then someone else might now.

Recently I had upgraded to Windows 7 Ultimate to take advantage of my 32Gb Ram and perhaps gain some more processing power. I was using Visual Studio 2008 prior to upgrading from Win 7 Home Premium to Ultimate. Everything worked fine once I included moveitem.h.

Now another issue arose when I compiled with the new source download from March 26, 2014. This issue with "Level" started when I tried to compile the source from the March 23, 2014. And I thought it was because I had installed Visual Studios 2013 with Blend and eventually installed VS 2010 because I was having a problem with VS 2013. In turn, I thought I was having a technical issue with VS 2010 not compiling correctly so I installed VS 2008.

I learned from the other website that it must be because of the recent update in the "Level". And so here is an excerpt from the invaluable assistance I got from the other website.

Re: MQ2Cast error
Quote Originally Posted by Maskoi View Post
I thought ours was kicking up a new error. There were changes to MQ2Cast in the VIP section for all these new changes so make sure you have the most current version.
I see. Redguides version of macroquest 2 must be different from the standard source at the MQ2 source website. I'm not a programmer yet. I'm trying to learn C# and C++. I started learning V-Basic many moons ago but never really made a career out of it. So MQ2 and Everquest got me interested again.

And so that's why I'm here to bother the fine people of Redguides. But anyway, thanks and have fun!

- - - Updated - - -

Quote Originally Posted by PeteSampras View Post
MQ2cast needs fixed, along with several other plugins due to Level change. it's in the patch notes. until then you can use ClassLevel i think.

I'm using Visual Studio 2008. I recently installed Visual Studio with Visual Studio 2013 with Blend. I know it sounds silly. I guess the people of Microsoft know what they're doing after years of working on VS and imbibing thousands of gallons of coffee and finally come up with "Blend" and the .NET updates, and it turns out 2013 either doesn't work with Macroquest or there is an update somewhere to make it feasible for legacy software. So I have 2010 installed as well. Ever since I upgraded to Windows Ultimate to take advantage of the 32Gb RAM and 64 bit processing, MQ2 has a lot of bugs. I can't even use 2013 VS to compile it.

Anyway, I tried that ClassLevel by typing in Class next to Level and this is what I got:

Warning 1 warning C4800: 'void (__cdecl *)(EQData::PSPAWNINFO,char *)' : forcing value to bool 'true' or 'false' (performance warning) c:\MQ\MQ2Cast\MQ2Cast.cpp 189 MQ2Cast

Error 2 Error spawning 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'. Project MQ2Cast

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Re: Plugin compile issues? Weird.

Post by Cr4zyb4rd » Thu Mar 27, 2014 5:55 pm

MQ2Cast updates happen in VIP.

VS 2013 Compiles MQ2 (and MQ2Cast for that matter) clean out-of-the-box following the standard instructions found on the Wiki and all over this site.

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Re: Plugin compile issues? Weird.

Post by EqMule » Fri Mar 28, 2014 8:22 am

Ive seen the answers you got from others and although they technically have given you the answer, im going to expand on the answer a little.

First, read changes.txt now and then, its very imformative, here is a quote from it regarding this issue:
22 Mar 2014 by eqmule
-NOTE, THIS UPDATE WILL BREAK PLUGINS. (but not that much see below)
SPELL struct member Level is now ClassLevel
this was done cause i want you to know which plugins to update.
ANY place that refers to Level-1 muct be changed to ClassLevel
do NOT forget to remove the -1
So in mq2cast you have a line that looks like this:

Code: Select all

if(!Spell || Spell->Level[GetCharInfo()->pSpawn->Class-1]>GetCharInfo()->pSpawn->Level) {
THAT line should be changed to look like this:

Code: Select all

if(!Spell || Spell->ClassLevel[GetCharInfo()->pSpawn->Class]>GetCharInfo()->pSpawn->Level) {
If you have further questions, feel free to come talk to me on Skype, but I prefer you asking questions here on the board, so that the answers might be helpful to others that maybe will come across the same problem in the future.
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.