PDA

View Full Version : Compiling and testing EH


iamnoob
22nd October 2004, 17:31
I just modified the EH source with a couple of the turorials here, but now im trying to let it work...
When i start the .exe it works, but when i try to lauch aao from it, it says evilhack and evilconfig are differect versions :ermm:
Maybe im just overlooking something really stupid, so could someone please help me?

3y3w4nn4ch34t
22nd October 2004, 17:39
Did you compile one in debug? Make sure the dll and exe are in release.

iamnoob
22nd October 2004, 17:46
I did both in release


void CheckSanity()
{
if (GameInfo.m_Settings.m_CurrentVersion != CURRENT_VERSION)
{
MessageBox(NULL, "Version mismatch, evilconfig and evilhack from different versions!",
"Warning", MB_OK | MB_TOPMOST | MB_ICONWARNING);
return;
}

thats the part of the code (in evilhack.cpp) that checks for it. I tried to comment it out, but then it would just instantly close AA. I did see the AA splash screen though

3y3w4nn4ch34t
22nd October 2004, 18:02
Try compiling the exe in debug mode and see if it works with a release dll and vice versa. If that works then you have some "ifdef TESTMODE" statements out of place.

iamnoob
22nd October 2004, 18:28
Nope is still not working. Ill just try to redo the mods 1 by 1, and see when the error comes up. Thanks for trying

mlitn
22nd October 2004, 18:55
just uncomment this:

void CheckSanity()
{
if (GameInfo.m_Settings.m_CurrentVersion != CURRENT_VERSION)
{
MessageBox(NULL, "Version mismatch, evilconfig and evilhack from different versions!",
"Warning", MB_OK | MB_TOPMOST | MB_ICONWARNING);
return;
}

iamnoob
22nd October 2004, 19:33
just uncomment this:
Read one of my previous posts. I already tried :)
It would close AA when trying to launch from EH

mlitn
22nd October 2004, 19:42
well the notification telling evilhack and config are from different versions shouldn't close aa, other coding error then

snaggle2th
23rd October 2004, 03:37
If you used the "Fixed Loader Tut (No d8d3 needed)" tutorial you can get the "version mismatch error". If you did use it, read the tutorial again... at the bottom it explains the error and how to fix it.