Page 1 of 1
eqgame-private.h
Posted: Sun Apr 11, 2004 1:00 am
by ImaNoob
With the latest files from the download page I'm getting the following error.
eqgame.h(15): fatal error C1083: Cannot open include file: 'eqgame-private.h': No such file or directory
Looking in the file eqgame.h shows the following
Code: Select all
#ifdef PRIVATE
#include "eqgame-private.h"
#endif
I've looked everywhere and I'm not seeing this file, just curious if anyone can tell me what it's for or possibly where I might pick up a copy of it.
Thanks
*Update*
Using the handy dandy search tool I found the following post
http://macroquest2.com/phpBB2/viewtopic ... ameprivate
It makes a refference in passing that it is ok to comment the line out, and that it's not needed to make MQ run.
My question then would have to be, what IS or WAS the line for?
Posted: Sun Apr 11, 2004 3:30 am
by CyberCide
You don't need it.
You have a #define PRIVATE in your code somewhere, just remove it.
Posted: Sun Apr 11, 2004 12:47 pm
by Lax
What it's for and has always been for is people that want to have their own offsets automatically built into MQ2Main without having to fix their eqgame.h every time the zip is updated. So if you needed, for example, to call ((CXWnd*)pMyWindow)->IsActive() you could toss a #define in eqgame-private.h, set PRIVATE in your preprocessor definitions, and you could then call that function in any plugin. Some people that are mildly retarded put the #define and a REVERSE_DETOUR directly in their plugin, which also works but... they're already in EQClasses.cpp for a reason, and eqgame-private.h is available for a reason
It's more likely that your project settings have PRIVATE under "preprocessor definitions". What version of visual studio are you using so I can check the file to make sure its not in the zip?
It's in the zip
Posted: Sun Apr 11, 2004 5:19 pm
by ImaNoob
The code I posted is in the zip, but I think this was triggered because while browsing some *cough* related boards, I found a new plugin called MQ2Bypass that I wanted to play with, and it has private defines.
Reading through another board I found a copy of someone elses actual header, and looking closely at it and the plugin, I can see why this is done the way that it is...
Thanks for your helps!
Posted: Mon Apr 12, 2004 3:28 am
by Lax
no SHIT the code you posted is in the fucking zip.
#ifdef tells the compiler "IGNORE THIS UNLESS THIS IS DEFINED" so unless you have PRIVATE defined, eqgame-private.h isnt loaded.
The problem is the dumbass that put #define PRIVATE in their plugin

Sorry
Posted: Fri Apr 16, 2004 6:57 pm
by ImaNoob
Sorry, I misunderstood the question.
And BTW doing more research I found that the plugin required an offset that is not a part of the standard MQ2 code.
Ergo, the #define PRIVATE.
Regardless, my apologies for wasting your time.
Posted: Sat Apr 17, 2004 11:33 am
by Lax
No ergo, he should have done it differently instead of fucking everyone over
