Compiling with VC6.0 -- read this!

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

fwiggles
a hill giant
a hill giant
Posts: 161
Joined: Mon Jun 17, 2002 8:29 pm

Post by fwiggles » Thu Apr 24, 2003 3:54 pm

deda wrote:warning LNK4099: PDB "detours.pdb" was not found with
"..\Detours\lib\detours.lib" or at "C:\detours.pdb"
that should explain it right there if you understand english :wink:
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]

deda
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Apr 24, 2003 3:40 pm

Post by deda » Fri Apr 25, 2003 12:38 am

i know it means the file isnt there, but there is no "detours.pdb" file in the detours maps after i compiled the src.

just want any help on fix this problem.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Apr 25, 2003 8:43 am

The PDB file is just for debugging. Ignore the warning, it won't affect the functioning of MacroQuest in any way. Even if you ARE debugging, you won't be debugging detours anyway.

deda
a lesser mummy
a lesser mummy
Posts: 33
Joined: Thu Apr 24, 2003 3:40 pm

Post by deda » Fri Apr 25, 2003 1:02 pm

Ok, i ignored the warning and indeed mq works.
However, when i use mq (no macro running) my ping as indicated by the first digits of the lagmeter goes beserk.
Normally i have a ping arround 80, now this number keeps tumbling between 80 and 200. It doesnt disconnected me tho.

Anyone else having this problem?

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Apr 25, 2003 2:33 pm

Others are having this problem, it's being addressed in a different thread. It's not related to the missing detours.pdb file though.

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

HOWTO: Get MacroQuest up and running in a few quick steps.

Post by EqMule » Thu May 01, 2003 9:12 pm

Quick Step Tutorial: (Lets assume the zip is more current than cvs)

0. Install visual c++ 6.0 or visual studio 6.0
1. download the zip from the downloads page or here: MQ2 Latest Source Zip
2. unzip it in C:\MQ
3. go to the newly created folder C:\MQ and DoubleClick the Macroquest2.dsw file (or the MacroQuest2.sln if you have vs7)
4. It will open up in Visual studio.
5. Go to the menu called Build and click on it
6. On that menu Select Batch Build click on it...
7. On the window that pops up, click Build
8 you will get it compiled, then exit Visual studio
9. Go to the C:\MQ\release folder, and doubleclick macroquest2.exe
10 You are done.

****** THIS IS HOW YOU TEST IF MQ WORKS ******
1. Start everquest.
2. When you are in game, type /filter macros all in your eq chatwindow (you know the one you type /who and /yell in...) and press enter, this will make sure you see all macro commands.
3. Type /help macro and press enter
if you get a list with a bunch of MQ commands, your copy of mq is working and you can start using it.
There are some sample macros in your C:\MQ\release\macros folder, you can try the follow macro for example:
****** Example of how to run a macro *******
Target another player or a mob, then type /macro follow.mac and press enter
If your character starts following your target, you have successfully run your first macro.
You end macros by typing /endmacro (and press enter)
****************************************

**********************************************




******************* CVS and its usage... ********************
The steps below are for people that want to use the cvs to get the source.
(but as it is nowdays, the zipfile on the downloads page is often newer)
**********************************************************

1. First of all get a decent cvs client, I use Wincvs 1.2 which you can find if you do a google search for Wincvs and download
2. Install it by running setup.exe and click next next and so on...
3. Run it.
4. When it starts open Admin -> preferences and on the General tab paste in:

Code: Select all

anonymous@cvs.sourceforge.net:/cvsroot/macroquest  
in the 'Enter the CVSROOT' field

5. In the Authentication field choose the '"passwd" file on the cvs server' option
6. Now click on the Globals tab and check the box at the bottom which says: 'Checkout textfiles with the UNIX LX (0xa)'
7. Click ok
8. Goto menu Admin -> Login and when it asks for a password just press enter
9. Goto menu Admin -> Command Line... and paste in

Code: Select all

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/macroquest co macroquest2
and press Enter
10. the source will now be downloaded to you computer...

----now exit the cvs client and follow the compile steps at the beginning of this post...

this works if you have VS 6.0 installed, havent tried with VS 7.0 but I would assume it would work as well and it took my machine about 30 secs...


YOU NEED TO HAVE VISUAL STUDIO INSTALLED (OR VC6++)
Last edited by EqMule on Fri Sep 03, 2004 3:57 pm, edited 16 times in total.
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.

Godiwa
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Sep 04, 2002 11:49 am

Post by Godiwa » Thu May 01, 2003 10:03 pm

10. cd macroquest\eqlib
11. nmake
12. cd ..
13. nmake
14. cd Release
15. run macroquest.exe
dumb question but WHAT does nmake do? that a windows command or what is it? where do you type it in?

(trying to learn this thing so please don't flame)

Godiwa

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 » Thu May 01, 2003 10:18 pm


MQWannaBe
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri May 02, 2003 4:15 am

Post by MQWannaBe » Fri May 02, 2003 4:16 am

I have Microsoft Visual C++ installed and everything.

When I type in nmake, it says command not found.

I couldnt find any help on the Microsoft site.

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 » Fri May 02, 2003 4:35 am

Look for help on vcvars32.bat (or vsvars32.bat for vc7.0).

MQWannaBe
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri May 02, 2003 4:15 am

Post by MQWannaBe » Fri May 02, 2003 4:49 am

Ok, got the nmake command , but I get an error when it tries to make it:
NMAKE : fatal error U1073: don't know how to make '".\Release\EQLib.obj"'
stop.

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

nmake.exe is part of the visual studio 6 (and 7)

Post by EqMule » Fri May 02, 2003 7:43 am

nmake.exe is part of the visual studio 6 (and 7)
if you install visual studio 6 (or 7) the installation *should* place the correct directories and so on in your PATH statement, and then you should be able to start nmake from *anywhere*
YOU NEED TO HAVE VISUAL STUDIO INSTALLED, JUST GETTING A COPY OF NMAKE.EXE AND TRY TO COMPILE WILL FAIL!


note that if you DO have vs6 (or 7) installed allready and nmake doesnt work, you most likely have a PATH statement problem, where the VS path is pointing wrong, that can be tricky to fix if you are a lamer, so just uninstall VS then remove any referenses to visual studio from the PATH statement (it can be found by right clicking and selecting properties on my computer -> environment settings) Then install VS again.
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.

MQWannaBe
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri May 02, 2003 4:15 am

Post by MQWannaBe » Fri May 02, 2003 12:00 pm

Edit X3

Fixed that Dll file error. Now i get this:

Cannot Open file windows.h

Its in the include directory with TChar and all the others...

Im using Win98 if thats any help

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 » Fri May 02, 2003 2:07 pm

running vcvars32.bat will set the environment variables correctly for building. After that you can just type nmake.

MQWannaBe
decaying skeleton
decaying skeleton
Posts: 5
Joined: Fri May 02, 2003 4:15 am

Post by MQWannaBe » Fri May 02, 2003 2:39 pm

Says out of Environment space.