MQ2 not working on my machine

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

Moderator: MacroQuest Developers

ChantillyLace
orc pawn
orc pawn
Posts: 20
Joined: Sun May 01, 2005 7:15 am

MQ2 not working on my machine

Post by ChantillyLace » Sun Dec 04, 2016 7:02 pm

Downloaded Visual Studio 2015. Downloaded MQ2-20161119.zip. Unzipped to a new directory. Ran MQ2Auth.exe. Double clicked on MAcroQeust2.sln file. Highlighted MQ2Main and did a build. Got no errors. Copied the files in release out back to the same folder I just created. Ran MacroQuest2.exe.

In game I see the time stamp on all the chats but nothing on the map. I did a /mapfilter all and got "that is not a valid command". I then checked the ini file. Only 1 line of code. So I close everything and copy what was in the default ini to the ini file. In game still nothing except the time stamps. I also can't find the mq window anywhere. When I do a /whot I get nothing in any window. When I do a /who all, I get it where I expect it.

So go back to Visual Studio and click on the MQ2Maps folder.

Now I see errors:
LNK1104 Cannot open file 'libcpmt.lib' MQ2Map LINK line 1
return type may not be specified on a conversion function MQ2Main EQClasses.h lines 408, 409 and 6301.

I searched for that file and it exists. I even tried running Visual Studio as admin in case there was a permissions issue.

Using Visual Studio 2015 Update 3 with VB, VC#, and VC++ installed

Machine is Windows 10 home, i7 w/ 4 cores, 64 bit, and DirectX 12.

What do I need to do to fix this please?

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: MQ2 not working on my machine

Post by dewey2461 » Sun Dec 04, 2016 8:42 pm

1. Make sure you have the latest source ( I failed this last week )

2. Open the solution

3. (May need to ) " Retarget solution " by right clicking the solution name in the solution explorer window. ( about half way down the pop up window )

4. " Rebuild solution " by right clicking the solution name ( first entry in the pop up window )

5. Try running Macroquest2.exe directly out of the release folder ( as admin )

6. May need to load plugins:
/plugin "Name" [unload]

/plugin MQ2Map


Good luck !

ChantillyLace
orc pawn
orc pawn
Posts: 20
Joined: Sun May 01, 2005 7:15 am

Re: MQ2 not working on my machine

Post by ChantillyLace » Tue Dec 06, 2016 11:01 pm

Ok several things.

1. I was getting an error that it could not find windows.h. I found it in the list of header files for MQ2Main. I checked properties and took note of the location. I then went to MQ2Main's Project properties --> VC++ Directories had an extra x86 at the end. I got rid of it and no more errors about not finding files. (strangely enough, when I open the solution again, it was back but no errors. shrug)

2. I then compiled and most of the projects had (unavailable) at the end. It said there were missing components and to install Windows XP for VC++. After that it only created dlls and no exes.

3. So I deleted the entire MQ2 folder I had created, extracted it from the zip file, ran MQ2Auth and opened the project. Built it and got an exe. Double clicked on it. Then went in game and immediately saw the MQ2 window (not the one with the list of changes). Map works.

Thank you for helping me. I hope this helps someone else in the future.