A forum for feature requests/discussions and user submitted patches that improve MQ2
Moderator: MacroQuest Developers
-
eqjoe
- a grimling bloodguard

- Posts: 984
- Joined: Sat Sep 28, 2002 12:26 pm
Post
by eqjoe » Mon Mar 10, 2003 3:32 pm
When running nmake for the Microsoft Detours package, make sure that the VS6 enviroment is setup. VS6 setup saves this in a batch file named VCVAR32.BAT. The second thing that commonly happens, is that the \lib\detours.pdb that is distributed with detours.exe needs to be deleted and rebuilt. Additional resource include directories are setup under project setting as is Preprocessor Definitions. Use ALT+F7 to access. Notice that your workspace should include both projects.
-
driftinsupra
- Official loudmouth

- Posts: 212
- Joined: Tue Jan 28, 2003 9:25 pm
Post
by driftinsupra » Mon Mar 10, 2003 3:45 pm
sorry another newb question
how do I add one project to another? till now I have just done really basic stuff and alot of this is over my head.
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Mon Mar 10, 2003 3:47 pm
All I had to do was delete detours.h, detours.lib, and detours.pdb, then run nmake in the SRC directory. Everything else worked like a champ, without me making environment changes. Chances are I did that when I installed VS6.
To add the preprocess definition for CINTERFACE, hit Alt-F7, or select Project-->Settings. Then go to the C/C++ tab. On the right you will see a spot for Preproccesor definitions. Add CINTERFACE to the end of what is already there.
As for DX8.1, well, someone sent me an uptodate dinput.h file, which I then copied to my INCLUDE directory. I didn't have to do anything else as far as that goes. Just overwrite the existing one, and VC will find it without any problems. It just grabs it from the standard header files.
-
driftinsupra
- Official loudmouth

- Posts: 212
- Joined: Tue Jan 28, 2003 9:25 pm
Post
by driftinsupra » Mon Mar 10, 2003 3:49 pm
OK now I am hung up on steps 5 through 8, could you elaborate on this please?
-
almostleet
- orc pawn

- Posts: 11
- Joined: Mon Mar 10, 2003 2:20 pm
Post
by almostleet » Mon Mar 10, 2003 3:59 pm
MQ has no icon if that means anything.. just shows up as a blank space on my taskbar then shuts down, I'm at loss for why its not working right now.

-
Jay
- a lesser mummy

- Posts: 59
- Joined: Tue Jan 28, 2003 11:37 am
Post
by Jay » Mon Mar 10, 2003 4:01 pm
Mckorr wrote:As for DX8.1, well, someone sent me an uptodate dinput.h file, which I then copied to my INCLUDE directory. I didn't have to do anything else as far as that goes. Just overwrite the existing one, and VC will find it without any problems. It just grabs it from the standard header files.
You can also include the directory from the DX8.1 SDK
Jay
-
Jay
- a lesser mummy

- Posts: 59
- Joined: Tue Jan 28, 2003 11:37 am
Post
by Jay » Mon Mar 10, 2003 4:02 pm
almostleet wrote:MQ has no icon if that means anything.. just shows up as a blank space on my taskbar then shuts down, I'm at loss for why its not working right now.

As for MQ having no icon, that means that the icon files where not in the directory and the MACROQUEST.RC file was not included in the project.
Jay
-
driftinsupra
- Official loudmouth

- Posts: 212
- Joined: Tue Jan 28, 2003 9:25 pm
Post
by driftinsupra » Mon Mar 10, 2003 4:15 pm
Just as I though I might have finished all the steps and would get it to comile I get 2 errors. Help!?
--------------------Configuration: macroquest - Win32 Release--------------------
Linking...
LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Release/macroquest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
macroquest.exe - 2 error(s), 0 warning(s)
--------------------Configuration: macroquest - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/macroquest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
macroquest.exe - 2 error(s), 0 warning(s)
-
Jay
- a lesser mummy

- Posts: 59
- Joined: Tue Jan 28, 2003 11:37 am
Post
by Jay » Mon Mar 10, 2003 4:22 pm
Supra, did you create a NEW "Win32 Application" <not "Win32 Console Application">? It does not look like it...
Jay
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Mon Mar 10, 2003 4:24 pm
Well, that would explain my earlier problem with DX. Don't have the SDK... have to fix that I guess.
-
driftinsupra
- Official loudmouth

- Posts: 212
- Joined: Tue Jan 28, 2003 9:25 pm
Post
by driftinsupra » Mon Mar 10, 2003 4:26 pm
Ah so much learning I have to do.
Ok so a console application is something this a program that would run in a dos promt
and the windown application is a wondowed program?
-
Jay
- a lesser mummy

- Posts: 59
- Joined: Tue Jan 28, 2003 11:37 am
Post
by Jay » Mon Mar 10, 2003 4:26 pm
Mckorr wrote:Well, that would explain my earlier problem with DX. Don't have the SDK... have to fix that I guess.
Woot me! I helped someone! =)
Jay
(long story, shutting up)
-
driftinsupra
- Official loudmouth

- Posts: 212
- Joined: Tue Jan 28, 2003 9:25 pm
Post
by driftinsupra » Mon Mar 10, 2003 4:36 pm
Ok I keep getting closer and close, I have now been able to comile and run the program. I see the old MQ logo in the systray but after a second or two it vanishes, whats up now?
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Mon Mar 10, 2003 4:42 pm
Just a guess, but I'd say you have the wrong offsets.
It's not enough to compile a new exe and dll. If you do that and copy them over your old versions, you'll still be using your prenerf offsets. Find the post on the 2/26 offsets and fix your eqgame.ini file.