• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

MQ2Docrack explanation, all files included (1 Viewer)

I finally got the compiling down with MQ2 plugins but every plugin i tried to compile from this site gives me errors I followed all instructions typed c:\eq2\mkplugin MQ2Docrack which created thefolders then I brought it up in vc++ selected add selected the correct project, Extracted the files into the Mq2docrack folder closed all folders hit Batch Batchbuild Seleced all an Build

Compiling...
MQ2DoCrack.cpp
EQLIB_IMPORTS
c:\mq2\mq2docrack\ByteHandler.h(62) : warning C4018: '<' : signed/unsigned mismatch
c:\mq2\mq2docrack\ByteHandler.h(68) : error C2065: 'x' : undeclared identifier
c:\mq2\mq2docrack\ByteHandler.h(141) : warning C4018: '<=' : signed/unsigned mismatch
c:\mq2\mq2docrack\ByteHandler.h(146) : warning C4018: '>=' : signed/unsigned mismatch
c:\mq2\mq2docrack\ByteHandler.h(162) : warning C4018: '<=' : signed/unsigned mismatch
c:\mq2\mq2docrack\MQ2DoCrack.h(314) : error C2065: 'i' : undeclared identifier
c:\mq2\mq2docrack\MQ2Crackwnd.h(81) : error C2664: 'int EQClasses::CListWnd::AddString(EQClasses::CXStr *,unsigned long,unsigned int,const EQClasses::CTextureAnimation *)' : cannot convert parameter 1 from 'EQClasses::CXStr' to 'EQClasses::CXStr *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\mq2\mq2docrack\MQ2Crackwnd.h(267) : error C2039: 'Server' : is not a member of 'EQData::_CHARINFO'
c:\mq2\mq2main\EQData.h(685) : see declaration of 'EQData::_CHARINFO'
Build log was saved at "file://c:\MQ2\MQ2DoCrack\Intermediate\BuildLog.htm"
MQ2DoCrack - 4 error(s), 4 warning(s)

Any sugestions, I have read very post i can tried copying and pasting code jumping up and down pulling my hair out, grabing the computer and throwing it against the wall,
 
siddin said:
no, you need to close macroquest2.exe and close everquest. if its still coming up with those errors, windows isn't letting go of the main.dll so you'll need to restart windows.


There is a way to edit your registry that will force close dll's associated with programs when they are closed so you dont have to reboot windows.

need to look it up again to apply it to my new computer, when i find it i'll post it.

Also, I have some success with hitting up my task manager, closing explorer.exe, then New Task > Explorer.exe (I call it a ghetto reboot) Most of the time it will clear lingering dll's without the need to reboot.
 
paulstacio said:
I finally got the compiling down with MQ2 plugins but every plugin i tried to compile from this site gives me errors I followed all instructions typed c:\eq2\mkplugin MQ2Docrack which created thefolders then I brought it up in vc++ selected add selected the correct project, Extracted the files into the Mq2docrack folder closed all folders hit Batch Batchbuild Seleced all an Build



Any sugestions, I have read very post i can tried copying and pasting code jumping up and down pulling my hair out, grabing the computer and throwing it against the wall,


did you copy the UPDATED source CPP and replace the one created when you did mkplugin mq2docrack?

do you have bytehandler.h in the mq2docrack folder?
 
When compiling, I get these errors:

Rich (BB code):
d:\MacroQuest2\MQ2Docrack\MQ2Crackwnd.h(267): error C2039: 'Server' : is not a member of 'EQData::_CHARINFO'
d:\MacroQuest2\MQ2Docrack\ByteHandler.h(62): warning C4018: '<' : signed/unsigned mismatch
d:\MacroQuest2\MQ2Docrack\ByteHandler.h(68): warning C4018: '<' : signed/unsigned mismatch
d:\MacroQuest2\MQ2Docrack\ByteHandler.h(141): warning C4018: '<=' : signed/unsigned mismatch
d:\MacroQuest2\MQ2Docrack\ByteHandler.h(146): warning C4018: '>=' : signed/unsigned mismatch
d:\MacroQuest2\MQ2Docrack\ByteHandler.h(162): warning C4018: '<=' : signed/unsigned mismatch
d:\MacroQuest2\MQ2Docrack\MQ2Crackwnd.h(81): error C2664: 'int EQClasses::CListWnd::AddString(EQClasses::CXStr *,unsigned long,unsigned int,const EQClasses::CTextureAnimation *)' : cannot convert parameter 1 from 'EQClasses::CXStr' to 'EQClasses::CXStr *'

Any suggestions/ideas? I am using Visual Studio .NET 2003. I have a fresh copy of MQ2 from their site, and used the files in this thread. Any help is greatly appreciated.
 
siddin said:
lol, yeah you'll always get that message, although the .xml files go into your custom ui directory that you're using. if the /docrackwnd brings up the docrack window they're working.
Actually, just put them in your Default UI dir. Any file that isn't found in your custom UI dir will automatically be read from your default UI dir. Besides that, I seem to recall some MQUI files that won't work unless they're in the Default UI dir.
 
Um, you guys do realize that this thread is over a year old now? There have probably been quite a few updates to it....
 
I got the new mq2docrack source, and followed all the directions, but that wasn't working, so I thought I would try these, even if it's not up to date, to at least get it to compile. Is there an updated MQ2DoCrack guide on this board?
 
Ok, here's the new source. Authors are listed inside the actual code. Some modifications have been made so that certain older functions no longer exist, but this is what I use when I compile with MQ2.

Thank you to veyarryo for providing a fix to the same errors that I used to experience. If you put the compiler at /W2, then you should find that the simple < error in the MQ2Docrack.cpp will be ignored as it is VS2K5 (or whatever version you may be using at the time) just trying to be super anal.

Make sure that you include both .cpp files inside your project and all three header files inside the project as well. You can find the DoCrack UI file inside my plugin, if you don't already have it.

Enjoy.
 
When compiling that, I get:

Rich (BB code):
MQ2Docrack fatal error LNK1120: 2 unresolved externals
d:\MacroQuest2\MQ2Docrack\MQ2Docrack.cpp(1091): warning C4018: '<' : signed/unsigned mismatch
MQ2Docrack error LNK2019: unresolved external symbol "void __cdecl DestroyDoCrackWindow(void)" (?DestroyDoCrackWindow@@YAXXZ) referenced in function _ShutdownPlugin
MQ2Docrack error LNK2019: unresolved external symbol "void __cdecl DoCrackWndCommand(struct EQData::_SPAWNINFO *,char *)" (?DoCrackWndCommand@@YAXPAU_SPAWNINFO@EQData@@PAD@Z) referenced in function _InitializePlugin

I think I am destined to not use docrack.
 
What version of VS are you using?

Line 1091 is this:
Rich (BB code):
   for (int x=0;x<strlen(szUnSpacedCrack);x++)

Thats the one that I stated should be set to /w2 to ignore as it will not interrupt your functions. Let me see if I can figure out what you've done.
 
You did not add your CDoCrackWnd.cpp to your compile. I get the same errors when I remove that from my project base. Make sure that you have ALL of the files listed under the MQ2DoCrack Project, both .cpp's and all three .h files using the Add Existing Item function.

Update:
When I do it correctly, I get this:
VS2k5 said:
MQ2Docrack - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
 
Compile with VC6

got
Rich (BB code):
D:\MQ2-20060805\MQ2DoCrack\MQ2DoCrack.cpp(789) : error C2374: 'i' : redefinition; multiple initialization
        D:\MQ2-20060805\MQ2DoCrack\MQ2DoCrack.cpp(782) : see declaration of 'i'
D:\MQ2-20060805\MQ2DoCrack\MQ2DoCrack.cpp(797) : error C2374: 'i' : redefinition; multiple initialization
        D:\MQ2-20060805\MQ2DoCrack\MQ2DoCrack.cpp(782) : see declaration of 'i'
D:\MQ2-20060805\MQ2DoCrack\MQ2DoCrack.cpp(1091) : error C2371: 'x' : redefinition; different basic types
        D:\MQ2-20060805\MQ2DoCrack\MQ2DoCrack.cpp(1082) : see declaration of 'x'
Error executing cl.exe.

MQ2DoCrack.dll - 3 error(s), 0 warning(s)
 
TurkReno said:
You did not add your CDoCrackWnd.cpp to your compile. I get the same errors when I remove that from my project base. Make sure that you have ALL of the files listed under the MQ2DoCrack Project, both .cpp's and all three .h files using the Add Existing Item function.

Update:
When I do it correctly, I get this:

Doh, sorry. Stupid moment on my part. Added the files and compiled fine, thank you!
 
I get the Following errors when i try to copile MQ2DoCrack
Compiling...
MQ2Docrack.cpp
EQLIB_IMPORTS
c:\mq2\mq2docrack\ByteHandler.h(62) : warning C4018: '<' : signed/unsigned mismatch
c:\mq2\mq2docrack\ByteHandler.h(68) : error C2065: 'x' : undeclared identifier
c:\mq2\mq2docrack\ByteHandler.h(141) : warning C4018: '<=' : signed/unsigned mismatch
c:\mq2\mq2docrack\ByteHandler.h(146) : warning C4018: '>=' : signed/unsigned mismatch
c:\mq2\mq2docrack\ByteHandler.h(162) : warning C4018: '<=' : signed/unsigned mismatch
c:\mq2\mq2docrack\MQ2DoCrack.h(314) : error C2065: 'i' : undeclared identifier
c:\mq2\mq2docrack\MQ2Crackwnd.h(81) : error C2664: 'int EQClasses::CListWnd::AddString(EQClasses::CXStr *,unsigned long,unsigned int,const EQClasses::CTextureAnimation *)' : cannot convert parameter 1 from 'EQClasses::CXStr' to 'EQClasses::CXStr *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
c:\mq2\mq2docrack\MQ2Crackwnd.h(267) : error C2039: 'Server' : is not a member of 'EQData::_CHARINFO'
c:\mq2\mq2main\EQData.h(685) : see declaration of 'EQData::_CHARINFO'
Build log was saved at "file://c:\MQ2\MQ2Docrack\Intermediate\BuildLog.htm"
MQ2Docrack - 4 error(s), 4 warning(s)
------ Rebuild All started: Project: MQ2EQBugFix, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'MQ2EQBugFix', configuration 'Release|Win32'.
 
Last edited:
I replaced files wih those you hav in the zip folder and getting these errors now
Compiling...
MQ2Docrack.cpp
EQLIB_IMPORTS
.\MQ2Docrack.cpp(1091) : warning C4018: '<' : signed/unsigned mismatch
Linking...
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
"/OUT:..\Release/MQ2Docrack.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /MANIFEST "/MANIFESTFILE:.\Intermediate\MQ2Docrack.dll.intermediate.manifest" /DEBUG "/PDB:c:\MQ2\Release\MQ2Docrack.pdb" /MAP /MAPINFO:EXPORTS /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2Docrack.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
".\Intermediate\MQ2Docrack.obj"
Creating library ..\Release/MQ2Docrack.lib and object ..\Release/MQ2Docrack.exp
MQ2Docrack.obj : error LNK2019: unresolved external symbol "void __cdecl DestroyDoCrackWindow(void)" (?DestroyDoCrackWindow@@YAXXZ) referenced in function _ShutdownPlugin
MQ2Docrack.obj : error LNK2019: unresolved external symbol "void __cdecl DoCrackWndCommand(struct EQData::_SPAWNINFO *,char *)" (?DoCrackWndCommand@@YAXPAU_SPAWNINFO@EQData@@PAD@Z) referenced in function _InitializePlugin
..\Release/MQ2Docrack.dll : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\MQ2\MQ2Docrack\Intermediate\BuildLog.htm"
MQ2Docrack - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 16 up-to-date, 0 skipped ==========
 
paulstacio said:
I replaced files wih those you hav in the zip folder and getting these errors now
Are you absoultely sure that you have them in the project set the right way?
 
I completely removed all the old files abnd replaced them ith the ones in the mq2docrack folder I got thesme errors I had 2 posts ago i then Restarted the computer and ran compile again I then replaced those files with the ones listed above and got this
Compiling...
MQ2DoCrack.cpp
EQLIB_IMPORTS
.\MQ2DoCrack.cpp(1091) : warning C4018: '<' : signed/unsigned mismatch
Linking...
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
"/OUT:..\Release/MQ2DoCrack.dll" /INCREMENTAL:NO "/LIBPATH:..\Detours\lib" "/LIBPATH:..\Release" /DLL /MANIFEST "/MANIFESTFILE:.\Intermediate\MQ2DoCrack.dll.intermediate.manifest" /DEBUG "/PDB:c:\MQ2\Release\MQ2DoCrack.pdb" /MAP /MAPINFO:EXPORTS /SUBSYSTEM:WINDOWS /OPT:NOREF /OPT:NOICF "/BASE:0x04000000" "/IMPLIB:..\Release/MQ2DoCrack.lib" /MACHINE:X86 /OPT:NOICF wsock32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib
".\Intermediate\MQ2DoCrack.obj"
Creating library ..\Release/MQ2DoCrack.lib and object ..\Release/MQ2DoCrack.exp
MQ2DoCrack.obj : error LNK2019: unresolved external symbol "void __cdecl DestroyDoCrackWindow(void)" (?DestroyDoCrackWindow@@YAXXZ) referenced in function _ShutdownPlugin
MQ2DoCrack.obj : error LNK2019: unresolved external symbol "void __cdecl DoCrackWndCommand(struct EQData::_SPAWNINFO *,char *)" (?DoCrackWndCommand@@YAXPAU_SPAWNINFO@EQData@@PAD@Z) referenced in function _InitializePlugin
..\Release/MQ2DoCrack.dll : fatal error LNK1120: 2 unresolved externals
Build log was saved at "file://c:\MQ2\MQ2Docrack\Intermediate\BuildLog.htm"
MQ2DoCrack - 3 error(s), 1 warning(s)
 
he means when you did add existing project that you added, first of all, the right ones, and second of all, all of the ones needed.
 
when you said "go into a dos prompt and tyep "cd \{mq2path}" i tried that and it comes up with "System cannot find path specified
 
MQ2Docrack explanation, all files included

Users who are viewing this thread

Back
Top
Cart