recompiling plugins

boocher13

Lifetimer
Joined
Jan 18, 2007
Messages
69
Reaction score
0
Points
0
I've been compiling my own vanilla version of mq2 from the macroquest website the last 2 patches just to see what it entails.i have been successful so far as the instructions are pretty easy to follow however what I cant find any info on is how to recompile existing plugins once you have them in .dll files.Basically the reason I cant just add them to the mq2 release folder is they need to be dated after the eqmain.dll file in order to work properly.Can someone give me some info on this I am a vip member on the mq2 site but can't find any info on the subject.there is a way i'm sure to decompile then recompile I just don't have the computer savvy to know how to do it.
 
you can't.

you need the original source in order to compile them.
 
Or try nocheck if there werent any changes to them?
 
In MQ2Main source dir, open up MQ2PluginHandler.cpp, find and comment out these lines of code:

Code:
    if (mq2mainstamp > checkme((char*)hmod)) {
        char tmpbuff[MAX_PATH];
        sprintf(tmpbuff, "Please recompile %s -- it is out of date with respect to mq2main (%d>%d)", FullFilename, mq2mainstamp, checkme((char*)hmod));
        DebugSpew(tmpbuff);
        MessageBoxA(NULL, tmpbuff, "Plugin Load Failed", MB_OK);
        FreeLibrary(hmod);
        return 0;
    }

htw