ISXEQ Compile Error...

Moderator: MacroQuest Developers

Rogue_01
orc pawn
orc pawn
Posts: 13
Joined: Tue Feb 01, 2005 4:24 pm

ISXEQ Compile Error...

Post by Rogue_01 » Thu Oct 23, 2008 2:03 pm

MQ2DataTypes.cpp
.\MQ2DataTypes.cpp(7065) : error C2065: 'Index' : undeclared identifier

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Thu Oct 23, 2008 6:13 pm

Fixed in the next zip. Change this line

Code: Select all

if(buffID != 0xffffffff && !stricmp([color=#33FFFF]Index[/color], GetSpellNameByID(buffID)))
to

Code: Select all

if(buffID != 0xffffffff && !stricmp([color=#33FFFF]GETFIRST()[/color], GetSpellNameByID(buffID)))

Rogue_01
orc pawn
orc pawn
Posts: 13
Joined: Tue Feb 01, 2005 4:24 pm

Post by Rogue_01 » Fri Oct 24, 2008 1:08 pm

Thank you!

ascii38
a grimling bloodguard
a grimling bloodguard
Posts: 506
Joined: Sat Jul 17, 2004 8:06 pm

Post by ascii38 » Sat Nov 01, 2008 7:15 pm

Did this miss the 1029 zip or am I doing something REALLY stupid?

SwiftyMUSE
Developer
Developer
Posts: 1205
Joined: Tue Sep 23, 2003 10:52 pm

Post by SwiftyMUSE » Sat Nov 01, 2008 10:23 pm

There appears to be another line like that in the code... make the same changes and ill fix the zip.
PayPal: Donate to SwiftyMUSE
Bitcoin: 1LuQ6YcEAWxF3fm9yWMiro4K582je7364V
Krono: PM me

dont_know_at_all wrote:Gee, if only there was a way to correctly report a crash...

spanners
a lesser mummy
a lesser mummy
Posts: 56
Joined: Wed Jul 04, 2007 3:02 pm

Post by spanners » Sun Nov 02, 2008 1:33 am

The Target TLO is broken for ISXEQ in the current code. The following needs to be done to make it functional:

In ISXEQDataTypes.h add the following line:

Code: Select all

DATATYPE(MQ2TargetType,pTargetType,"EQ Target");
In ISXEQDataTypes.cpp add the following:

Code: Select all

bool MQ2TargetType::GETMETHOD()
{
#define pPtr ((PSPAWNINFO)VarPtr.Ptr)
	if (!VarPtr.Ptr)
		return false;
	PMQ2TYPEMETHOD pMethod=MQ2TargetType::FindMethod(Method);
	if (!pMethod)
		return false;
	else
		return true;
#undef pPtr
}
In MQ2DataTypes.h:
Find the beginning of the MQ2TargetType definition (class MQ2TargetType : public MQ2Type), inside the class find the line:

Code: Select all

DECLAREGETMETHOD();
Underneath that line add the following:

Code: Select all

INHERITDIRECT(pSpawnType);

spanners
a lesser mummy
a lesser mummy
Posts: 56
Joined: Wed Jul 04, 2007 3:02 pm

Post by spanners » Sat Apr 11, 2009 10:31 am

Could this fix please be included in the main Zip ? I am having to apply this patch to get the Target TLO to work properly every release.

User avatar
ieatacid
Developer
Developer
Posts: 2727
Joined: Wed Sep 03, 2003 7:44 pm

Post by ieatacid » Sat Apr 11, 2009 6:50 pm

Next zip.

spanners
a lesser mummy
a lesser mummy
Posts: 56
Joined: Wed Jul 04, 2007 3:02 pm

Post by spanners » Sat Apr 11, 2009 8:15 pm

Thanks, much appreciated.

xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: ISXEQ Compile Error...

Post by xyilla » Tue Sep 02, 2025 1:06 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: ISXEQ Compile Error...

Post by xyilla » Tue Sep 02, 2025 1:07 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: ISXEQ Compile Error...

Post by xyilla » Tue Sep 02, 2025 1:08 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: ISXEQ Compile Error...

Post by xyilla » Tue Sep 02, 2025 1:10 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: ISXEQ Compile Error...

Post by xyilla » Tue Sep 02, 2025 1:11 am


xyilla
naggy
naggy
Posts: 29514
Joined: Sun Feb 23, 2025 5:36 am

Re: ISXEQ Compile Error...

Post by xyilla » Tue Sep 02, 2025 1:12 am