Page 2 of 7

Re: Table not found for ID

Posted: Thu May 26, 2011 10:32 am
by Alkaiser
I get a itemInfoAddress crash whenever "Rainbow Hat" recipe is in inventory. It drops from Boddosh in Cyclops Lair. Item Id is 550574

Re: Table not found for ID

Posted: Fri May 27, 2011 10:05 am
by rock5
Just out of curiousity, what version of the game client are you running?

Re: Table not found for ID

Posted: Sat May 28, 2011 9:24 am
by Alkaiser
rock5 wrote:Just out of curiousity, what version of the game client are you running?
3.0.11.2393

Re: Table not found for ID

Posted: Sat May 28, 2011 10:26 pm
by rock5
Lisa, who also had this problem, is using 3.0.11 as well. I don't get this problem but am still using 3.0.10 so maybe it is a version issue.

Re: Table not found for ID

Posted: Sat May 28, 2011 11:44 pm
by lisa
yeah I'd say they changed something in the latest patch.
Since you don't have the latest I guess I'll have to look into it more.
memory stuff isn't my best area though =(

Re: Table not found for ID

Posted: Sun May 29, 2011 4:17 am
by rock5
I wouldn't be surprised if Administrator is the only one who can fix it properly. And I bet it will be hard for her too.

Re: Table not found for ID

Posted: Sun May 29, 2011 6:52 pm
by Administrator
Can we compile a list of items that cause problems? Is it even the same ones for all users, or is it seemingly random?

Re: Table not found for ID

Posted: Sun May 29, 2011 8:20 pm
by rock5
I purchased a card that someone else was having trouble with but I didn't have any trouble with it. Also it seems the problem is when it tries to get info on the base item of cards and recipes, although I'm not 100% sure of that. Also at least 2 people that had this problem are using client 3.0.11. I'm using 3.0.10 so it might be a version issue. We probably need more people who are having this issue, to report what version they are using, to be sure.

Hope that helps.

Re: Table not found for ID

Posted: Sun May 29, 2011 8:23 pm
by Administrator
Is it only cards and recipes? We could just, somehow, have it ignore those items. I don't think most people really need to use any sort of information on cards and recipes for botting.

Re: Table not found for ID

Posted: Sun May 29, 2011 8:31 pm
by rock5
There was a temporaty fix that someone posted where they commanted out that section. I don't know how effextive it was.

I don't know if it's just the recipes cards because some people who reported the error for items did not confirm if they had the card for that item or not.

Re: Table not found for ID

Posted: Sun May 29, 2011 8:47 pm
by lisa
I get the
Table not found for ID:
, but MM would only error out when it said
Wrong value returned in update of item id:
The comment out i posted purely stopped the error out so people could continue to bot without constantly stopping from errors.

It seemed to me it only ever errored out when I got the recipe, i didn't get any cards so prob would have errored on cards too, The item the recipe would create never errored.

It wasn't all recipes though, only some. Would be difficult to get a complete list of all the recipes that did cause the error.

Re: Table not found for ID

Posted: Sun May 29, 2011 9:34 pm
by kanta
game version 3.0.11.2393

I believe it was crashing when I got the card for glamorous maid of the muses in Kalin Shrine

Re: Table not found for ID

Posted: Tue May 31, 2011 7:06 am
by rock5
Administrator wrote:Can we compile a list of items that cause problems? Is it even the same ones for all users, or is it seemingly random?
With the server maintenance today I've been upgraded to 3.0.11. I pulled out the Glamorous Maid of the Muses card from my monster book, started the bot and got the following error.

Code: Select all

... Files (x86)/micromacro/scripts/mac/classes/item.lua:203: attempt to perform
arithmetic on global 'npcInfoAddress' (a nil value)
I put the card back and pulled out another card but got no error. So it looks like the problem is with 3.0.11 and it does seem to be the same cards for all users.

I did a bit of narrowing down.
1. The id is in the itemstable ranges and GetTableForID(101504) does return a table.
2. GetItemAddress(101504) returns nil so the problem seems to be with this function.

Re: Table not found for ID

Posted: Tue May 31, 2011 7:41 am
by lisa

Code: Select all

function GetItemAddress( id )
Is in classes/memorytable.lua
I'm guessing the offsets might have changed?

Re: Table not found for ID

Posted: Tue May 31, 2011 7:45 am
by rock5
But it seems to work for other items. That would imply the ofset is correct.

Re: Table not found for ID

Posted: Tue May 31, 2011 7:59 am
by lisa
its not just recipes or cards it seems

Code: Select all

Wrong value returned in update of item id: 200509
that is Stone Rotan Wood, a white wood you can get in lvl 16ish areas.

I get table not found for pretty much every bit of armor/accessories I have on lol

Code: Select all

Table not found for ID: 221672
Pioneers Earing, you get it from the starter bags

Re: Table not found for ID

Posted: Tue May 31, 2011 9:01 am
by rock5
I got some Rotan Wood and got the same error.

I've noticed a bug in GetItemAddress. It took me a few tries to fix it but it looks like I'm not getting either error anymore. I'll do a bit more testing them commit.

Edit: I spoke too soon. I only fixed the first error which is the one I was concentrating on. I'll try to figure out the second error before committing.

Re: Table not found for ID

Posted: Tue May 31, 2011 10:05 am
by rock5
I think the second error is beyond me. The first error was in the coding which I can fix but the second error seems to be what it reads from memory.

This is what I found out.

When it does the item update it gets the item address using GetItemAddress.

In GetItemAddress this line seems to return an address ok.

Code: Select all

_address = _range.StartAddress - ( tmp * 32 );
But this line returns 0.

Code: Select all

tmpAddress = memoryReadIntPtr(proc, _address + 0x10, 0x8);
I think the code expects it to return a value.

I don't know what that means.

Re: Table not found for ID

Posted: Tue May 31, 2011 10:39 am
by lisa
I find this interesting
-- We check if this is the right one, there are mixed ids, don't know why i think is just instantiation of tables problem...
I did some printing of those 2
_address
tmpAddress
I only get the wrong value returned when tmpAddress prints 0

Code: Select all

address 193238048
tmpaddress 0
Wrong value returned in update of item id: 200509

Re: Table not found for ID

Posted: Tue May 31, 2011 10:45 am
by Administrator
Can you have it ignore any continued work on those invalid addresses? I'm not sure if this will cause useful items to become unused by the bot, or just ignore the garbage. Only one way to find out.