Page 1 of 1
Crashing
Posted: Thu Jun 17, 2004 7:51 pm
by Mysteryman
as of today's patch... I"m getting some really odd behavior. my macro for getting behind a mob for instance will make me run the opposite direction, and i'm crashing so much i've turned it off at this point. Is this something anyone else is experiencing? I'm positive it's in my movement section of macro code, always when doing math calculations....
Oh, the only "plugin" i'm using is MQ2Hud, nothing else.
Posted: Thu Jun 17, 2004 8:22 pm
by tonio
I know this isn't what you asked, but I figured it might help... check out the "MoveUtils" plugin in the Plugins section. It adds a "/stick" command which might be useful to you, and I just verified it's working with current mq2 zipfile.
Posted: Thu Jun 17, 2004 11:01 pm
by Mysteryman
grrr
Posted: Thu Jun 17, 2004 11:08 pm
by darknife
I know Im having the exact same prob
Posted: Thu Jun 17, 2004 11:10 pm
by darknife
Code: Select all
Sub GetBehind
/if (${Target.ID}==0) {
/keypress forward
/goto :nomob
}
/if (${Math.Distance[${Math.Calc[${Target.Y}-${Math.Cos[${Target.Heading.DegreesCCW}]}*10]},${Math.Calc[${Target.X}-${Math.Sin[${Target.Heading.DegreesCCW}]}*10]}]}<4) /goto :noneed
/face nolook fast loc ${Math.Calc[${Target.Y}-${Math.Cos[${Target.Heading.DegreesCCW}]}*10]},${Math.Calc[${Target.X}-${Math.Sin[${Target.Heading.DegreesCCW}]}*10]}
/keypress Ctrl+R
/keypress forward hold
:gobehindloop
/delay 1
/if (${Target.ID}==0) {
/keypress forward
/goto :nomob
}
/face nolook fast loc ${Math.Calc[${Target.Y}-${Math.Cos[${Target.Heading.DegreesCCW}]}*10]},${Math.Calc[${Target.X}-${Math.Sin[${Target.Heading.DegreesCCW}]}*10]}
/if (${Math.Distance[${Math.Calc[${Target.Y}-${Math.Cos[${Target.Heading.DegreesCCW}]}*10]},${Math.Calc[${Target.X}-${Math.Sin[${Target.Heading.DegreesCCW}]}*10]}]}>3) /goto :gobehindloop
/keypress Ctrl+R
/keypress forward
:noneed
/face nolook fast
:nomob
/return
When he attaks he runs straight out never turning. Dunno whats up
Posted: Thu Jun 17, 2004 11:19 pm
by Caladine
A whole bunch of shit just isn't parsing right with Lax's new calculate command, most notably if statements using '=='.
Go into MQ2Utilities.c and uncomment the old calculate "ActualCalculate", and uncomment the Benchmarks line at the bottom of the file with ActualCalculate, and comment out the other.
Posted: Fri Jun 18, 2004 1:08 am
by Mysteryman
Yea, i've been trying to figure out wtf is happening...but can't put my finger on it. It's causing all sorts of crashes in various places.. It looks like the stack is not getting set back correctly almost, becuase variables inside a proc, that it's been using, it all the sudden will start complaining that varx doesn't exist, roll that in a loop, and then crap out.
Posted: Fri Jun 18, 2004 2:23 am
by amml
yup same here, after starting foraging macro it takes like 2 mins and eq crashes....
Posted: Fri Jun 18, 2004 10:35 am
by Avanos
Caladine's suggestion seems to have gotten at least hunter.mac to work again for the moment.
Posted: Sat Jun 19, 2004 5:01 am
by amml
Thank you lax, it works again as of the new mq2 from 06/18/04 =) no more crashing yet ....