Bug squashed - Game Crash looking at "Time Traveler's

A forum for reporting bugs NOT related to custom plugins.

Moderator: MacroQuest Developers

User avatar
three-p-o
a grimling bloodguard
a grimling bloodguard
Posts: 600
Joined: Sun Nov 03, 2002 5:59 pm

Bug squashed - Game Crash looking at "Time Traveler's

Post by three-p-o » Sun Jan 14, 2007 10:19 am

My "Time Traveler's Abandoned Notebook" is in my Primary slot.
Every time I inspect the item with MQ2 running I crash from the game.

Crashed at line 1869 in mq2utilities.cpp

Code: Select all

           sprintf(szTemp, "%d, %d, %d in %s facing %s", pSpell->Base[1], pSpell->Base[2], pSpell->Base[3], GetFullZone(GetZoneID(pSpell->Extra)), szHeading[pSpell->Base[4]]); 
Exception Error

Code: Select all

[MQ2]Adding WndNotification target 'ItemDisplayWindow'
First-chance exception at 0x030592f7 (MQ2Main.dll) in eqgame.exe: 0xC0000005: Access violation reading location 0x45aa49da.
It wont let me post the stack trace so here it is.
http://users.net1plus.com/bonkote/Crash.txt
Last edited by three-p-o on Sun Jan 14, 2007 12:53 pm, edited 1 time in total.
Slovotsky's Law # 146. Power corrupts. Absolute power is kind of neat.

"When i open the dll files expecting to just copy their code to the cpp file is all garbage and not code. Is the procedure for adding dll plugins different?" -- fujitsu

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

Post by SwiftyMUSE » Sun Jan 14, 2007 11:40 am

Well... you need to unload the mq2itemdisplay plugin.


On a more serious note,

Change:

Code: Select all

      case 104: //zone translocate spells 
         strcat(szBuff, "Translocate to "); 
         [color=red]if (pSpell->Extra){ [/color]
           sprintf(szTemp, "%d, %d, %d in %s facing %s", pSpell->Base[1], pSpell->Base[2], pSpell->Base[3], GetFullZone(GetZoneID(pSpell->Extra)), szHeading[pSpell->Base[4]]); 
         } else { 
           strcat(szTemp, "Bind Point"); 
         } 
         strcat(szBuff, szTemp); 
         break; 
to:

Code: Select all

      case 104: //zone translocate spells 
         strcat(szBuff, "Translocate to "); 
         [color=red]if (pSpell->Extra[0]){ [/color]
           sprintf(szTemp, "%d, %d, %d in %s facing %s", pSpell->Base[1], pSpell->Base[2], pSpell->Base[3], GetFullZone(GetZoneID(pSpell->Extra)), szHeading[pSpell->Base[4]]); 
         } else { 
           strcat(szTemp, "Bind Point"); 
         } 
         strcat(szBuff, szTemp); 
         break; 
fixed for next zip.