crash bug kick to desktop,

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

zanomo
a hill giant
a hill giant
Posts: 285
Joined: Thu Jun 24, 2004 11:21 pm

Post by zanomo » Tue Sep 20, 2005 2:05 pm

was just about to post a bug report about the .MyCastTime and saw your post.. :smile:

/echo ${Me.Spell[SPELLNAME].MyCastTime}

on the command line will CTD.

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Tue Sep 20, 2005 2:36 pm

zanomo wrote:was just about to post a bug report about the .MyCastTime and saw your post.. :smile:

/echo ${Me.Spell[SPELLNAME].MyCastTime}

on the command line will CTD.
yup, use .CastTime for now if possible, it works

zanomo
a hill giant
a hill giant
Posts: 285
Joined: Thu Jun 24, 2004 11:21 pm

Post by zanomo » Tue Sep 20, 2005 3:12 pm

Yes, Thanks (already done that while debugging my macros and all are working properly now after turning off things such as AA activation, freebuffslots, Me.Dar, etc, and some minor modification in the mq2exchangeitems... thanks :smile: )

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

Post by SwiftyMUSE » Wed Sep 21, 2005 1:31 pm

Here is a patch fix for the MyCastTime CTD... I have tested it and it works with the 9/21 eqgame.exe.

Code: Select all

--- D:\MQ2-0920\MQ2Main\EQClasses.cpp	Tue Sep 20 01:17:08 2005
+++ D:\MQ2\MQ2Main\EQClasses.cpp	Wed Sep 21 12:14:30 2005
@@ -4210,7 +4210,7 @@
 FUNCTION_AT_ADDRESS(int const  EQ_Character::GetFocusConserveRegChance(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusConserveRegChance);
 #endif
 #ifdef EQ_Character__GetFocusCastingTimeModifier
-FUNCTION_AT_ADDRESS(int const  EQ_Character::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusCastingTimeModifier);
+FUNCTION_AT_ADDRESS(int const  EQ_Character1::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusCastingTimeModifier);
 #endif
 #ifdef EQ_Character__GetFocusRangeModifier
 FUNCTION_AT_ADDRESS(int const  EQ_Character::GetFocusRangeModifier(class EQ_Spell const *,class EQ_Equipment * *),EQ_Character__GetFocusRangeModifier);
@@ -4252,7 +4252,7 @@
 FUNCTION_AT_ADDRESS(unsigned char  EQ_Character::CastingRequirementsMet(int),EQ_Character__CastingRequirementsMet);
 #endif
 #ifdef EQ_Character__GetAACastingTimeModifier
-FUNCTION_AT_ADDRESS(int const  EQ_Character::GetAACastingTimeModifier(class EQ_Spell const *),EQ_Character__GetAACastingTimeModifier);
+FUNCTION_AT_ADDRESS(int const  EQ_Character1::GetAACastingTimeModifier(class EQ_Spell const *),EQ_Character__GetAACastingTimeModifier);
 #endif
 #ifdef EQ_Character__BardCastBard
 FUNCTION_AT_ADDRESS(int  EQ_Character::BardCastBard(class EQ_Spell const *,int)const ,EQ_Character__BardCastBard);

--- D:\MQ2-0920\MQ2Main\EQClasses.h	Tue Sep 20 09:39:45 2005
+++ D:\MQ2\MQ2Main\EQClasses.h	Wed Sep 21 12:25:50 2005
@@ -5340,6 +5340,8 @@
 EQLIB_OBJECT int EQ_Character1::Max_Endurance(void); // lax 4-25-2004
 EQLIB_OBJECT int EQ_Character1::Cur_HP(int);
 EQLIB_OBJECT unsigned char EQ_Character1::CastSpell(unsigned char,int,class EQ_Item * *,int,int slot,int,int,int); 
+EQLIB_OBJECT int const EQ_Character1::GetAACastingTimeModifier(class EQ_Spell const *);
+EQLIB_OBJECT int const EQ_Character1::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *);
 };
 
 class EQ_Character
@@ -5429,8 +5431,6 @@
 EQLIB_OBJECT int EQ_Character::TakeFallDamage(float);
 EQLIB_OBJECT int EQ_Character::TotalSpellAffects(unsigned char,bool,int *);
 EQLIB_OBJECT int EQ_Character::Wis(void);
-EQLIB_OBJECT int const EQ_Character::GetAACastingTimeModifier(class EQ_Spell const *);
-EQLIB_OBJECT int const EQ_Character::GetFocusCastingTimeModifier(class EQ_Spell const *,class EQ_Equipment * *);
 EQLIB_OBJECT int const EQ_Character::GetFocusConserveRegChance(class EQ_Spell const *,class EQ_Equipment * *);
 EQLIB_OBJECT int const EQ_Character::GetFocusRangeModifier(class EQ_Spell const *,class EQ_Equipment * *);
 EQLIB_OBJECT long EQ_Character::TotalOnPerson(void);

--- D:\MQ2-0920\MQ2Main\MQ2DataTypes.cpp	Tue Sep 20 10:55:29 2005
+++ D:\MQ2\MQ2Main\MQ2DataTypes.cpp	Wed Sep 21 12:25:50 2005
@@ -2938,10 +2949,10 @@
 		Dest.Ptr=szSkills[pSpell->Skill];
 		Dest.Type=pStringType;
 		return true;
-   case MyCastTime: 
-      Dest.Float=(FLOAT)(pCharData->GetAACastingTimeModifier((EQ_Spell*)pSpell)+pCharData->GetFocusCastingTimeModifier((EQ_Spell*)pSpell,0)+pSpell->CastTime)/1000.0f; 
-      Dest.Type=pFloatType; 
-      return true; 
+   case MyCastTime:
+		Dest.Float=(FLOAT)(pCharData1->GetAACastingTimeModifier((EQ_Spell*)pSpell)+pCharData1->GetFocusCastingTimeModifier((EQ_Spell*)pSpell,0)+pSpell->CastTime)/1000.0f;
+		Dest.Type=pFloatType;
+		return true; 
 	case Duration:
 		Dest.DWord=GetSpellDuration(pSpell,(PSPAWNINFO)pCharSpawn);
 		Dest.Type=pTicksType;

zanomo
a hill giant
a hill giant
Posts: 285
Joined: Thu Jun 24, 2004 11:21 pm

Post by zanomo » Wed Sep 21, 2005 2:44 pm

Thanks!! :D