Page 1 of 1

Compiling problems after patch.

Posted: Sun Nov 09, 2003 2:54 pm
by Homer
I'm not much into programming but I found out how to compile macroquest awhile back using the post from jninja and Kint in this thread:

http://macroquest2.com/phpBB2/viewtopic ... 0&start=60

I use Visual Studio 6 and it has worked great until now after the new patch.

I tried with the newest CVS and the newest zip file and it compiles fine, but when I enter EQ with any character, I get a popup window named "Microsoft Visual C++ Debug Library":

"Program: D:\Games\Everquest\eqgame.exe
Module:
File: i386\chkesp.c
Line: 42

The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.

(Press Retry to debug the application)"

Then it has 3 buttons: Abort, Retry, Ignore. If I press retry it comes up again, Ignore it goes away but comes again when I do a /who, and Abort crashes EQ.



I got this Dejavu.zip release to work:

http://macroquest2.com/phpBB2/viewtopic.php?t=3896

I'm just wondering how to compile the new CVS release?

Posted: Sun Nov 09, 2003 2:59 pm
by Homer
I have another question, I just found this:
If you are using Visual Studio 6.0 to build, you must go to the C/C++ tab and change the struct byte allignment from 8 to 1.

Or, use the makefile.
in this thread:

http://macroquest2.com/phpBB2/viewtopic.php?t=2122


Is that the one under Settings, C++ tab, Category: Code generation, "Struct member alignment" that has to be set to "1 byte"?

Or how do I use the makefile? :)

Posted: Sun Nov 09, 2003 3:01 pm
by Lax
Yes that's the one. But struct alignment wouldnt give you compile errors, it would just make MQ screw up a lot while running. The newest release should work fine, but apparently the stack pointer isn't being saved somewhere and we need to track that down.

Posted: Mon Nov 10, 2003 5:35 am
by Homer
Thanks for the answer. Glad it is not only me having problems then, strange it works for some though.

Posted: Mon Nov 10, 2003 1:00 pm
by Lax
Actually I'd say strange it doesnt work for some =(

Grab the latest zip and compile. If it compiles, get us debugging information. Without it we cant get the problem fixed