JMO,
since this topic is dealing with compiling etc I thought I'd drop you a couple of questions. I went to Cade's post and that's ok as far as it went. Just a couple of points for you to shed some light if you will:
1. If I download the latest compile (ie 7.1) and the source file, shouldn't I be able to just open the source code file into it's own directory, ramp up my C++ and do the compile basically at listed in mq2 but without doing the mqauthority file run, and it should compile, right? Well I thought it would be pretty dry but I can't seem to get the compile 100 percent. I have two plugin's that crap out on me:
(1)
--------------------Configuration: MQ2Casttimer - Win32 Release--------------------
Compiling...
MQ2Casttimer.cpp
EQLIB_IMPORTS
L:\Jmo's Source Files30May08\MQ2Casttimer\MQ2Casttimer.cpp(1129) : error C2360: initialization of 'i' is skipped by 'case' label
L:\Jmo's Source Files30May08\MQ2Casttimer\MQ2Casttimer.cpp(1101) : see declaration of 'i'
L:\Jmo's Source Files30May08\MQ2Casttimer\MQ2Casttimer.cpp(1130) : error C2360: initialization of 'i' is skipped by 'case' label
L:\Jmo's Source Files30May08\MQ2Casttimer\MQ2Casttimer.cpp(1101) : see declaration of 'i'
L:\Jmo's Source Files30May08\MQ2Casttimer\MQ2Casttimer.cpp(1155) : error C2361: initialization of 'i' is skipped by 'default' label
L:\Jmo's Source Files30May08\MQ2Casttimer\MQ2Casttimer.cpp(1101) : see declaration of 'i'
Error executing cl.exe.
MQ2Casttimer.dll - 3 error(s), 0 warning(s)
(2)
--------------------Configuration: MQ2DoCrack - Win32 Release--------------------
L:\Jmo's Source Files30May08\MQ2Main\MQ2Main.h(60): Could not find the file isxdk.h.
L:\Jmo's Source Files30May08\MQ2Main\MQ2Main.h(71): Could not find the file winthreading.h.
L:\Jmo's Source Files30May08\MQ2Main\MQ2Main.h(72): Could not find the file Index.h.
L:\Jmo's Source Files30May08\MQ2Main\ISXEQ\ISXEQ.h(18): Could not find the file isxdk.h.
L:\Jmo's Source Files30May08\MQ2Main\MQ2Main.h(60): Could not find the file isxdk.h.
L:\Jmo's Source Files30May08\MQ2Main\MQ2Main.h(71): Could not find the file winthreading.h.
L:\Jmo's Source Files30May08\MQ2Main\MQ2Main.h(72): Could not find the file Index.h.
L:\Jmo's Source Files30May08\MQ2Main\ISXEQ\ISXEQ.h(18): Could not find the file isxdk.h.
Compiling...
CDoCrackWnd.cpp
EQLIB_IMPORTS
MQ2DoCrack.cpp
L:\Jmo's Source Files30May08\MQ2Docrack\MQ2DoCrack.cpp(819) : error C2374: 'i' : redefinition; multiple initialization
L:\Jmo's Source Files30May08\MQ2Docrack\MQ2DoCrack.cpp(812) : see declaration of 'i'
L:\Jmo's Source Files30May08\MQ2Docrack\MQ2DoCrack.cpp(831) : error C2374: 'i' : redefinition; multiple initialization
L:\Jmo's Source Files30May08\MQ2Docrack\MQ2DoCrack.cpp(812) : see declaration of 'i'
L:\Jmo's Source Files30May08\MQ2Docrack\MQ2DoCrack.cpp(1124) : error C2374: 'x' : redefinition; multiple initialization
L:\Jmo's Source Files30May08\MQ2Docrack\MQ2DoCrack.cpp(1115) : see declaration of 'x'
Error executing cl.exe.
MQ2Docrack.dll - 3 error(s), 0 warning(s)
I've done nothing but unzip the source file and compile. So I don't understand the problem. Are there other files I need but don't have access to? And this source compile doesn't have all the geewhizzies that your official compile has. Is that because of proprietary code not being released with the source code?
2. If I find a plugin (and code) that I want to try out, do I have to do the complete recompile or can I do an individual compile on the plugin and then just add it somehow to the project? I guess this really boils down to can I create the .dll and then just copy it over to my working directory. ))
Thanx again. I decided to start playing around with the compiler as I discovered I had the VB6 program just gathering dust. Doing the compile was pretty easy and straight forward. I don't think I'll become a programmer but if I can start small and easy who knows where this will end.
Respectfully,
toejam
I'll do my best to answer.
1a.) I use VS2k8 to compile, some of the source code had to be changed in order for it to compile using that version. The major problem was the "Declaration of i" and how it worked in plugins. Therefor, you would just need to get the original version of DoCrack to get it to compile and overwrite my MQ2DoCrack.cpp file.
1b.)All of the "geewhizzes" source is kept private. This is by request of the authors to keep their work private. Therefore, whether I release an Active Hack source code or just Passive Hack source code, you'll get the same files. I use a completely separate source folder when compiling the active hacks.
Sidenote: If you know how to mess with the packets, the original sources for MQ2Pax, MQ2Speed, MQ2RWarp, and MQ2Piggyzone can all be found here on NA as Redguides was where most of them were created for.
2.) Do not delete your MQ2Main.lib file after the first Compilation and you should be able to just compile single plugins just fine.
Also, I took all checks out of my code. There's no Auth Check, Warp or Piggy blocker, Date/Time check, and TLO String is turned back on. So, if you use the source and want to compile, all of that is done for you.
Hope that helps, let me know if you have any more questions and I'll do my best to answer them. =)