Page 1 of 1

Need help on the error

Posted: Mon May 23, 2011 9:25 am
by Blackt3ars
Need help i got this error...=/ hmmm character died >.<~ sobs

Re: Need help on the error

Posted: Mon May 23, 2011 10:45 am
by lisa
going to need more info to work out exactly what happened.

Were you watching the screen at the time or did you just come back to see screen like this at a later time?

It seems unusual to have this error mid fight.

Re: Need help on the error

Posted: Mon May 23, 2011 7:36 pm
by Blackt3ars
Hey im back...ok i found out what is the problem

it said Table not found for ID : 104271

Which is once my character get the monster card = Desert Sharptooth

it start to get the error and stopped =/

solution ?

Re: Need help on the error

Posted: Mon May 23, 2011 7:52 pm
by lisa
We are having issues with memory being changed from last patch. You can just take the card out of your bags which will make it continue but next time you get the card it will error out again.

I'd suguest for now to just comment out the section of code dealing with cards and recipes. open rom/classes/item.lua and change lines 201 - 210 so it looks like this

Code: Select all

	--		tmp = memoryReadInt( proc, self.BaseItemAddress + addresses.idCardNPCOffset );
	--		npcInfoAddress = GetItemAddress( tmp );
	--		nameAddress = memoryReadInt( proc, npcInfoAddress + addresses.nameOffset );
	--		self.Name = "Card - "; -- We should add a string so we can localize this
	--	elseif ( self.Id >= 550000 and self.Id <=552000 ) then
			-- We need to get info from item...
	--		tmp = memoryReadInt( proc, self.BaseItemAddress + addresses.idRecipeItemOffset );
	--		itemInfoAddress = GetItemAddress( tmp );
	--		nameAddress = memoryReadInt( proc, itemInfoAddress + addresses.nameOffset );
	--		self.Name = "Recipe - "; -- We should add a string so we can localize this
Basically just add -- to the start of each line. This will keep the bot going without erroring out after getting these items, hopefully we can fix the new memory allocations but I believe the person who first did this bit of code isn't with us anymore so it might take some time to find exactly what the code pointed to and where they moved it to in the memory.

Re: Need help on the error

Posted: Mon May 23, 2011 8:16 pm
by Blackt3ars
thx Lisa....=)

i will try figure out myself also...=/ altho im not good at macros

so i guess for most of the cards it make the rombot error...

Re: Need help on the error

Posted: Mon May 23, 2011 8:22 pm
by lisa
yeah there seems an issue with some cards but not others. Also issue with some recipes and not others. Still trying to work it out =(

Re: Need help on the error

Posted: Mon May 23, 2011 9:11 pm
by rock5
Problems with the cards and recipes would suggest that there is something wrong with the idCardNPCOffset and idRecipeItemOffset offsets but it's still working for me.

I even bought a card that someone else was having trouble with and it worked for me so it seems to be certain cards with certain people.

Re: Need help on the error

Posted: Mon May 23, 2011 9:25 pm
by lisa
rock can you try making a new char and lvling it a bit, I found that I get a lot of recipes at low lvl and most of them errored out MM.

I was thinking it was those offsets aswell, I had a look but memory stuff is still out of my knowledge. I couldn't even find the pointer for max hp today which I thought was weird.

Re: Need help on the error

Posted: Tue May 24, 2011 1:47 am
by rock5
If I remember, I'll try once the servers are back online.

Re: Need help on the error

Posted: Tue May 24, 2011 9:19 pm
by rock5
I ran 3 new characters through the Pioneers 1 to 10 scripts. I got the following recipes and no cards.

Character 1:
Recipe - Enhanced Mercenary's Glaive
Recipe - Enhanced Rough Copper Leg Guards
Recipe - Aromatic Fruit
Recipe - Enhanced Light Blade

Character 2:
No recipes

Character 3:
Recipe - Enhanced Long Staff
Recipe - Enhanced Coarse Cloth Coat

I got no errors.

Could it be something to do with slim vs full client?

Re: Need help on the error

Posted: Tue May 24, 2011 9:27 pm
by lisa
I use slim, so maybe.
I also had a thought maybe they changed the memory offset for diff servers? bit of a long shot.