Page 1 of 2

MQ2 Compiling - Failed To Load

Posted: Fri Apr 06, 2007 5:52 am
by Brenden9904
I'm a first time user of MQ2, so here I am having issues with compiling.
I've followed Wiki's "Step 5" of "Macroquest2:Compiling" which is "Compiling for Free with VS2005 Express" I did everything it told me to do, even though I did not understand what the heck I was doing =D
heres the link: http://www.macroquest2.com/wiki/index.p ... 05_Express

These are the instructions given to me:
"Double-click the Macroquest2.sln file. VC.net will open the MacroQuest project
If asked to update the code for the current version of .net, click yes"


I open it, and it tells me the code needs to be transferred to the latest version of VS, so I click yes, and I get a ton of "Project Load Errors", it tells me to correct the specified errors and reload the project.
Here is an example of one:
"The following error has occurred during XML parsing:

File: C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops
Line: 0
Column: 0
Error Message:
A name was started with an invalid character.

The file 'C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops' has failed to load.

Failed to load system project defaults file 'C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults\CoreWin_Express.vsprops'.
The project cannot load without this file installed.
Please re-install the product."

I've read and reviewed the requirements for posting and understand that I should not post anything with out first doing some research. I've looked and I've looked but I can not find an answer... I went through troubleshooting and everything and no related problems exist. So if anybody can help it would really be greatly appreciated =)
and thank you a ton for listening

-brenden

Posted: Fri Apr 06, 2007 10:00 am
by wakkedup
Installation and Setting up the Environment

1. Download the Setup program here (link may change never know with MS) and install it.
2. Download SDK files from here. Install It.
3. Open VS2005 Express:
1. From the Tools drop down menu, select Options...
2. Expand the "Projects and Solutions" tree and select "VC++ Directories"
3. In the right window from the "Show Directories for" drop down menu select the following items and add the paths below:
* Executable files: C:\Program Files\Microsoft Platform SDK\Bin
* Include files: C:\Program Files\Microsoft Platform SDK\include
* Library files: C:\Program Files\Microsoft Platform SDK\lib
4. Make sure the directories you just entered are at the top of the list. If not, use the Up or Down arrows to put them in the correct order.
5. Alternately, you can double click on the existing Microsoft Platform SDK references that VC Express installed and edit them to point to the path you installed your Microsoft Platform SDK to.
* Either way, you want only one reference to the MS Platform SDK for each item. You should remove any duplicate references to a Microsoft Platform SDK directory.
4. If you installed using default directories, navigate to C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults and edit corewin_express.vsprops, changing the following:
* Change AdditionalDependencies="kernel32.lib" to
* AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
5. Navigate to C:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\AppWiz\Generic\Application\html\1033\ and edit AppSettings.htm, commenting out lines 441-444 like this:

Code: Select all

// WIN_APP.disabled = true;
// WIN_APP_LABEL.disabled = true;
// DLL_APP.disabled = true;
// DLL_APP_LABEL.disabled = true;
This is what the wiki says to do. You did it all? Go through it step-by-step again and see if you missed something. I followed this exactly, and had no problems whatsoever with my first "dbl-click" of the solution file.

Posted: Fri Apr 06, 2007 2:58 pm
by Brenden9904
I was only a little confused with this part,
* Executable files: C:\Program Files\Microsoft Platform SDK\Bin
* Include files: C:\Program Files\Microsoft Platform SDK\include
* Library files: C:\Program Files\Microsoft Platform SDK\lib
But I believe I did it correctly.
I did everything it asked of me, three times to make sure I did it right. After every try, I get the same result =(
Also, I gave up and had a friend send me his completely compiled folder. I went into the release folder and opened up the MQ2.exe file and it told me "this copy of MacroQuest is not authorized to run on your machine. please use the mq2auth system to correct the problem". So I go back into my MQ folder and double click M2auth.exe and a little window pops up then goes away. I then go back to the mq2.exe and I get the same thing. I guess my issue has changed does anybody know what I need to do? =( thank you for everyone's time =)

-brenden

Posted: Fri Apr 06, 2007 3:30 pm
by Simplify
Go back to square one.

http://www.macroquest2.com/wiki/index.p ... :Compiling

You can't run a friends pre-compiled image on your computer, unless you provided him a copy of your MQ2Auth0.h file and he built the release specifically for your machine.

From the link above, here's why you are now having trouble:

MQ2Auth is a form of protection to restrict the distribution of pre-compiled binaries. You need to run MQ2Auth.exe before compiling, to tell MQ2 that you are authorized to run it on your PC.

Run MQ2Auth.exe from where the MQ2 files were unzipped. This will create a file called MQ2Auth0.h in the MQ2Main directory.

hmmm

Posted: Fri Apr 06, 2007 5:11 pm
by Brenden9904
still no luck, I've redone everything over three times, I have been running the Auth.exe in the unzipped foulder and have still had no results. =( I guess I'm just special.

Posted: Fri Apr 06, 2007 6:24 pm
by Simplify
Which problem do you want help with then? The original problem (building your own developer environment) or the second one (getting my friend to build dll's for my computer)?

well

Posted: Fri Apr 06, 2007 8:30 pm
by Brenden9904
If I could get my friend to build it for me that would be great, if that's possible, if not i'd like help getting it done myself. Personally i'd prefer if you could help me with getting him to compile it for me, is there a wiki section you could direct me to? if so that would be great =D sorry for the mees

-brenden

Posted: Fri Apr 06, 2007 10:05 pm
by Simplify
Yes, that might be best for everyone's sanity.

1.) Don't run the MQ2Auth.exe from your Windows folder. Instead, open the command console by clicking Start > Run and type "cmd". Then click OK.

2.) Change directories to whatever folder has the MQ2Auth.exe program (e.g., "cd c:\Macroquest"). Run the program by typing "MQ2Auth.exe"

3.) eMail your friend the MQ2Auth0.h file that gets created in the same directory.

4.) Send your friend to the link I gave above, and have him follow the instructions for "Compiling for Friends".

yay

Posted: Thu Apr 19, 2007 12:56 am
by Brenden9904
beautiful =)
tyvm
it works!

-brenden

Posted: Fri Jan 18, 2008 5:30 pm
by Dreadling
I ran into a problem much like this, the likelyhood is great that what you missed was the " at the end of the command string that you had to retype in the apps area. Just for future reference!

wont let me open corwin_express

Posted: Fri Jun 06, 2008 7:56 pm
by exswitch
when i click on corwin_express thing it just says "open with" but it dont seem to work

Posted: Fri Jun 06, 2008 10:57 pm
by jacensolo
Use notepad

Problems with step number 5

Posted: Sun Jun 08, 2008 2:34 am
by exswitch
Ok i got corwin_express thing opened using notepad then i deleted the old thing by AdditionalDependencies and typed the new one exactly like it says,,but when i go to load up the compiler i get a Project Load Failure. I even went back and tryed "kernel32.lib" but that didnt even work.

shouldnt it look like this

<?xml version="1.0"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="Core Windows Libraries">
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"



</VisualStudioPropertySheet>

Re: Problems with step number 5

Posted: Sun Jun 08, 2008 5:39 am
by htw
exswitch wrote:Ok i got corwin_express thing opened using notepad then i deleted the old thing by AdditionalDependencies and typed the new one exactly like it says,,but when i go to load up the compiler i get a Project Load Failure. I even went back and tryed "kernel32.lib" but that didnt even work.

shouldnt it look like this

<?xml version="1.0"?>
<VisualStudioPropertySheet
ProjectType="Visual C++"
Version="8.00"
Name="Core Windows Libraries">
<Tool
Name="VCLinkerTool"
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"



</VisualStudioPropertySheet>
You're missing the closing for your Tool Name tag.

You have above:

Code: Select all

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"
but it should be (notice the end tag ref):

Code: Select all

AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" /> 
Try that out.

Ref:

Code: Select all

<?xml version="1.0"?>
<VisualStudioPropertySheet 
ProjectType="Visual C++" 
Version="8.00" 
Name="Core Windows Libraries">
<Tool Name="VCLinkerTool" 
AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" /> 
</VisualStudioPropertySheet> 
htw

June 10th update

Posted: Wed Jun 11, 2008 6:50 pm
by exswitch
With this latest update i downloaded it compiled it and ran it but when i loaded EQ i get this thing saying "incorrect client version" im new to this whole thing and am not sure what is wrong