I tried to pinpoint the exact commandline that caused the crash, but was unable to (ie. could not reproduce bug by out-commenting all but one line and execute them one by one). This piece of code crashed me though:
[Edit:]From the output window, it looks like the macro actually finishes without problems, but i crash just after. Other simple macros like follow.mac works just fine.
Code: Select all
#event MissedNote "You miss a note, bringing your song to a close!"
#event NeedTarget "You must first select a target for this spell!"
#event Slow "you slow down"
#event Exp "You gain "
#event Tell "tells you"
#event Recovered "You haven't recovered yet..."
#event Notsee "You cannot see"
#event Died "You have entered"
Sub Main(p0,p1,p2,p3,p4,p5,p6)
/declare cirx global
/declare ciry global
/declare cirr global
/declare a array
/declare nsongs global
/declare cursong global
/declare prevsong global
/declare exper global
/declare aaexp global
/declare health global
/declare songtimer timer
/declare selotimer timer
/declare angstimer timer
/declare puretonetimer timer
/declare bellowtimer timer
/declare rangecalc global
/declare lastmobid global
/varset rangecalc 0
/if (!${Defined[p0]}) {
/echo usage: foo
/endmacro
}
/return MQ2: April 25 2004 00:40:04
Visual Studio 6, SP6
Output window:
Code: Select all
[MQ2]Macro - Loading macro: C:\Games\MQ2\Macros\test.mac
[MQ2]Macro - Starting macro with '/call Main'
[MQ2]Call - Calling subroutine Main with params
[MQ2]Echo - [MQ2] usage: foo
[MQ2]WriteChatColor([MQ2] usage: foo)
[MQ2]WriteChatColor(Cleared the following: Timers Arrays)
[MQ2]EndMacro - Ended
[MQ2]WriteChatColor(The current macro has ended.)
Code: Select all
:arrow: MQ2MAIN! HideDoCommand + 808 bytes
MQ2MAIN! DoNextCommand(void) + 208 bytes
MQ2MAIN! Heartbeat(void) + 280 bytes
MQ2MAIN! Detour_ProcessGameEvents(void) + 5 bytes
EQGAME! 004acd5f()
Code: Select all
015D2DBB call dword ptr [esi+40h]
015D2DBE add esp,8
015D2DC1 mov edi,ebp
015D2DC3 or ecx,0FFFFFFFFh
015D2DC6 xor eax,eax
:arrow: 015D2DC8 repne scas byte ptr [edi]
015D2DCA not ecx
015D2DCC sub edi,ecx
015D2DCE mov eax,ecx
015D2DD0 mov esi,edi
015D2DD2 mov edi,offset _szLastCommand (01648580)
Code: Select all
Name:this
Value: CXX0017: Error: symbol "this" not found
