eqgame-private.h

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

eqgame-private.h

Post by ImaNoob » Sun Apr 11, 2004 1:00 am

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?

CyberCide
a lesser mummy
a lesser mummy
Posts: 41
Joined: Wed Mar 10, 2004 1:48 pm
Location: Here lurking

Post by CyberCide » Sun Apr 11, 2004 3:30 am

You don't need it.

You have a #define PRIVATE in your code somewhere, just remove it.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sun Apr 11, 2004 12:47 pm

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?
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

It's in the zip

Post by ImaNoob » Sun Apr 11, 2004 5:19 pm

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!

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Mon Apr 12, 2004 3:28 am

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 ;)
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

ImaNoob
a ghoul
a ghoul
Posts: 89
Joined: Mon Mar 08, 2004 4:37 am

Sorry

Post by ImaNoob » Fri Apr 16, 2004 6:57 pm

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.

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Sat Apr 17, 2004 11:33 am

No ergo, he should have done it differently instead of fucking everyone over ;)
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0