Page 1 of 1

06/16 bugs, FindItem

Posted: Thu Jun 17, 2004 2:34 am
by Oid
Works on items in main inventory slots, does not work in packs.

Apparently is also not working with mq2exchangeitem

also opcodes appear to ahve changed, if that makes a differance on that function i been bugging you about lax.

Posted: Thu Jun 17, 2004 2:38 am
by dman
${FindItemCount} is also returning 0 on all bagged items.

Posted: Thu Jun 17, 2004 1:07 pm
by doanchano
Same here re-compiled no change.
Always returns item not found.

I can fill my inventory with an item and still wont find it.

Posted: Thu Jun 17, 2004 2:14 pm
by bohicaseti
Yep, giving an "Invalid item slot 'null'" spew any time I attempt to grab something out of a bag.

status

Posted: Fri Jun 18, 2004 8:36 am
by Ogre_Luvr
Im still having this problem as of last night around 11:00 pm when i got the update...

is someone working on it? or is this something i need to fix in my macro

this will summon forever .. and ever .. and ever :cry:

Code: Select all

	/if (!${Math.Calc[${FindItemCount["Summoned: Black Bread"]}>20]}) {
		/call noFailMem 7 "Abundant Food"
		:waitFood
		/delay 1
		/if (!${Me.SpellReady["Abundant Food"]}) /goto :waitFood
		/call cast "Abundant Food"
		/autoinv
	}

Calc fix

Posted: Fri Jun 18, 2004 10:06 am
by Kracken
Yes it appears the new Calc is broken.

Credit Caladine for fix
"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."

Re: Calc fix

Posted: Fri Jun 18, 2004 12:11 pm
by blueninja
Kracken wrote:Credit Caladine for fix
"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."
That's not a fix, that's a workaround.. :(

Posted: Fri Jun 18, 2004 1:56 pm
by Ogre_Luvr
Is there anything else i need to comment/uncomment? its still not counting correctly

Benchmark(bmCalculate,Ret=ActualCalculate(Buffer,Result));
//Benchmark(bmCalculate,Ret=FastCalculate(Buffer,Result));

and the method:
BOOL ActualCalculate(PCHAR szFormula, DOUBLE &Result) {

Posted: Fri Jun 18, 2004 2:26 pm
by brian
FindItem itself is still broken as well :(

fix

Posted: Fri Jun 18, 2004 4:39 pm
by Kracken
Ogre_Luvr

Yes you need to find the begining of the function ActualCalculate take out the /* and go to the end and take out the /**/

The code is a rather large block and should show up as green text. Or just use the ctl-f and use the find for the word ActualCalculate.

It will fix your macros without sacrificing functionality, so yes it fixes you problem. Geez

Posted: Fri Jun 18, 2004 5:13 pm
by Ogre_Luvr
I have done that and i can send you the CPP file if you would like to review it. I tried to post it but it was too big

Posted: Fri Jun 18, 2004 5:19 pm
by Caladine
Yeah, it's hardly a fix, just a workaround to use the old calc function until a reason is found to see why the new function doesn't work.

I have a few macros that break it at the moment, so I'll probably be playing with the debugger later tonight.

problems getting the work aground to work

Posted: Sat Jun 19, 2004 4:59 pm
by Riven
well im trying to do the work around. could one if u that has it working pm me with the code that your changeing. thanks

Posted: Sat Jun 19, 2004 6:27 pm
by dont_know_at_all
Fixed in latest zip.

fixed

Posted: Sat Jun 19, 2004 6:31 pm
by Riven
u guys have fixed the issue with the new,

Code: Select all

Benchmark(bmCalculate,Ret=ActualCalculate(Buffer,Result));
well ok ill check to see if that new zip works with the mac.