Page 1 of 4

CTD while inspecting spells

Posted: Tue Feb 28, 2006 9:58 pm
by georgesilver
CTD while inspecting spells and new PoR gear.

well lets try this.

Code: Select all


[MQ2]Adding WndNotification target 'ItemDisplayWindow'
First-chance exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
First-chance exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
Unhandled exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
First-chance exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
Unhandled exception at 0x0303fefe (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x00000228.
Stack call

Code: Select all

>	MQ2Main.dll!ShowSpellSlotInfo(EQData::_SPELL * pSpell=0x037fbbe0, char * szBuffer=0x0012d1ce)  Line 2116 + 0x25	C++
 	MQ2ItemDisplay.dll!ItemDisplayHook::SetSpell_Detour(int SpellID=58702816, bool HasSpellDescr=true, int unknown_int=0)  Line 622	C++
disassembly middle line was pointer

Code: Select all

0303FEF5  xor         eax,edx 
0303FEF7  sub         eax,edx 
0303FEF9  call        GetSpellByID (30336B0h) 
0303FEFE  mov         eax,dword ptr [eax+228h] 
0303FF04  mov         ecx,eax 
0303FF06  mov         dl,byte ptr [eax] 
0303FF08  inc         eax  
pointed code block from mq2utilities.cpp
line with "szBuff, GetSpellByID" is where the pointer was

Code: Select all

case 139: //limit spell this affects 
         strcat(szBuff, "Limit: Spell("); 
         // changed this case to work for any future changes by referencing 
         // the spell array for the name 
 >      strcat(szBuff, GetSpellByID(abs(pSpell->Base[i]))->Name); 
         if ( pSpell->Base[i] > 0 )  strcat(szBuff, " allowed"); 
         if ( pSpell->Base[i] < 0 )  strcat(szBuff, " excluded"); 
         strcat(szBuff, ")"); 
         break; 

If you need more Tell me where and how to get it for you.


GS

Posted: Tue Feb 28, 2006 10:06 pm
by fearless
What zip are you running and have you made any modifications to the source? IE this.

Thanks

Posted: Tue Feb 28, 2006 10:44 pm
by georgesilver
February 27 2006 20:46:01 (MQ2-20060227b)


and no changes. kinda been trying to narrow it down. i can inspect some stuff but others I cannot. seems items with spell haste on them. and the cleric spell haste buff. also some older items with focus on them

GS

Posted: Tue Feb 28, 2006 10:47 pm
by fearless
Try that change by ieatacid and try to get it to crash again. If so, post another debug.

Posted: Tue Feb 28, 2006 11:10 pm
by georgesilver
Same type of error. different place. Unless i edited something wrong.

Code: Select all

     if (pSpell->CastOnYou[0]) { 
02AB20D1  mov         eax,dword ptr [esp+10h] 
02AB20D5  mov         eax,dword ptr [eax+239h] 
02AB20DB  cmp         byte ptr [eax],0 
02AB20DE  je          $L87110+249h (2AB2128h) 
       sprintf(temp, "Cast on you: %s<br>", pSpell->CastOnYou); 
02AB20E0  push        eax  

Code: Select all

[MQ2]Adding WndNotification target 'ItemDisplayWindow'
First-chance exception at 0x02ab20db (MQ2ItemDisplay.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x68037fba.

Code: Select all

      bUseableClasses = true;
       }
    } 
	 if (bUseableClasses) strcat(out, "<br><br>" ); 

     if (pSpell->CastOnYou[0]) { 
       sprintf(temp, "Cast on you: %s<br>", pSpell->CastOnYou); 
       strcat(out,temp); 
     } 
think thats all

gs

Posted: Wed Mar 01, 2006 8:55 am
by JJ
New zip out.

Posted: Wed Mar 01, 2006 9:58 am
by vzmule
Holy shit. A bug report with debug spew? I just about fell out of my chair :)

Posted: Wed Mar 01, 2006 10:35 am
by fearless
I figured if I pasted the link on how to do it enough, somebody would finally step up.

Posted: Thu Mar 02, 2006 8:39 am
by georgesilver
Working great after the new .zip. Hopefully I can help again in the future.


GS

Re: CTD while inspecting spells

Posted: Mon Jul 07, 2025 12:26 am
by xyilla

Re: CTD while inspecting spells

Posted: Mon Jul 07, 2025 12:27 am
by xyilla

Re: CTD while inspecting spells

Posted: Mon Jul 07, 2025 12:28 am
by xyilla

Re: CTD while inspecting spells

Posted: Mon Jul 07, 2025 12:29 am
by xyilla

Re: CTD while inspecting spells

Posted: Mon Jul 07, 2025 12:30 am
by xyilla

Re: CTD while inspecting spells

Posted: Mon Jul 07, 2025 12:31 am
by xyilla