Page 5 of 7
Re: Table not found for ID
Posted: Fri Jun 03, 2011 9:36 am
by hagenleu
Some other items from the first 3 bag (item 84 and 94 are the same)
Code: Select all
Command> for k,v in pairs(inventory.BagSlot[78]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 78
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 78
Id 221979
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10268956
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command> for k,v in pairs(inventory.BagSlot[84]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 84
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 84
Id 220480
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10269364
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command> for k,v in pairs(inventory.BagSlot[92]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 92
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 92
Id 222143
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10269908
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command> for k,v in pairs(inventory.BagSlot[94]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 94
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 94
Id 220480
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10270044
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command> for k,v in pairs(inventory.BagSlot[120]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 120
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 120
Id 223527
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10271812
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command> for k,v in pairs(inventory.BagSlot[122]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 122
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 122
Id 222504
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10271948
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command> for k,v in pairs(inventory.BagSlot[149]) do print(k,v) end
Durability 0
ItemCount 0
Color ffffff
ObjType 0
InUse false
SlotNumber 149
Value 0
Empty true
Icon
Quality 0
CoolDownTime 0
BagId 149
Id 220549
RequiredLvl 0
ObjSubType 0
ObjSubSubType 0
BoundStatus 1
ItemLink |Hitem:33BF1|h|cff0000ff[Empty]|r|h
Name <EMPTY>
Address 10273784
MaxStack 0
Worth 0
Available true
LastTimeUsed 0
Command>
Re: Table not found for ID
Posted: Fri Jun 03, 2011 9:47 am
by rock5
lisa wrote:I did 605 and full revert but bag or item shop doesn't open for me, infact if I have the bag open it closes just as the item cache thing on MM window happens.
It might be that they open and close too fast for you to see. Maybe they are going too fast? Maybe there needs to be a pause between opening and closing? The 2 RoMScript commands that do it are near the top of inventory.lua. Just split it into 4 RoMScripts and add pauses between. See if that helps.
lisa wrote:Been testing this and repeating the exact same thing every time.
MM window up
Start client
log char
let char sit for 10-15 secs before entering world
open both bag and item shop, not item shop bag but the place you buy items
start rom/bot.lua path:wander
watch the screen for table not found.
exit client
I repeated this constantly for about an hour, I'd say an average of 10% didn't do the table not found, Just seems really weird to me.
So 9 out of 10 client starts had the toble not found and 1 out of 10 worked perfectly.
Sorry still can't reproduce it. So if I understand correctly you are getting both the "wrong value" and "table not found" errors? The wrong value error is hard to trace because it means GetItemAddress returned a bad value but it's a big function. "table not found" is easier. It means the GetTableForID failed but it's a very simple function. The only way I can see it failing is if the table of ids is somehow corrupt. When you next get "table not found" errors, could you print out the table? The way I do this is to temporarily change the "table" variable to a global variable on line 5 of memorytable.lua.
Then I start up the commandline waypoint file and type
hagenleu wrote:Some other items from the first 3 bag (item 84 and 94 are the same)
Thanks. This is pretty much what I'm expecting now if you get a "table not found" error.
Re: Table not found for ID
Posted: Sat Jun 04, 2011 12:32 am
by lisa
Well it doesn't error or anything but it does print alot. this is just as much as I could get from the screen. obviously 1-10 already rolled up and I can't scroll to it.
Code: Select all
11: table: 01513418
EndId: 545246
EnAddress: 0
Name: 1 KeyItemObjectDB
Address: 211088512
Ranges: table: 01513468
1: table: 01513490
Start: 540000
StartAddress: 211088512
End: 541956
2: table: 015134B8
Start: 541957
StartAddress: 213188576
End: 544004
3: table: 01513508
Start: 544005
StartAddress: 213385184
End: 545246
StartId: 540000
12: table: 01513670
EndId: 590019
EnAddress: 0
Name: 6 LearnMagicExDB
Address: 213345376
Ranges: table: 015136C0
1: table: 015136E8
Start: 590000
StartAddress: 213345376
End: 590019
StartId: 590000
13: table: 01513788
EndId: 513281
EnAddress: 0
Name: 1 MagicObjectDB
Address: 213344672
Ranges: table: 015137D8
1: table: 01513800
Start: 500000
StartAddress: 213344672
End: 500781
2: table: 01513828
Start: 500782
StartAddress: 223281120
End: 502829
3: table: 01513878
Start: 502830
StartAddress: 223477728
End: 504877
4: table: 01513850
Start: 504878
StartAddress: 223674336
End: 506925
5: table: 015138A0
Start: 506926
StartAddress: 223870944
End: 508973
6: table: 015138C8
Start: 508974
StartAddress: 224133088
End: 509999
StartId: 500000
14: table: 01513CB0
EndId: 497682
EnAddress: 0
Name: 2 MagicCollectObjectDB
Address: 224100192
Ranges: table: 01513D00
1: table: 01513D28
Start: 490000
StartAddress: 224100192
End: 491019
2: table: 01513D50
Start: 491020
StartAddress: 230621152
End: 493067
3: table: 01513DA0
Start: 493068
StartAddress: 230817760
End: 495115
4: table: 01513D78
Start: 495116
StartAddress: 231014368
End: 497163
5: table: 01513DC8
Start: 497164
StartAddress: 231210976
End: 497682
StartId: 490000
15: table: 01514048
EndId: 560079
EnAddress: 0
Name: 3 MineObjectDB
Address: 231194304
Ranges: table: 01514098
1: table: 015140C0
Start: 560000
StartAddress: 231194304
End: 560079
StartId: 560000
16: table: 01514160
EndId: 105705
EnAddress: 0
Name: 1 NPCObjectDB
Address: 231191680
Ranges: table: 015141B0
1: table: 015141D8
Start: 100001
StartAddress: 231191680
End: 101445
2: table: 01514200
Start: 101446
StartAddress: 253427680
End: 103493
3: table: 01514250
Start: 103494
StartAddress: 253689824
End: 105541
4: table: 01514228
Start: 105542
StartAddress: 253951968
End: 105705
StartId: 100001
17: table: 01514458
EndId: 1010
EnAddress: 0
Name: 2 PlayerObjectDB
Address: 253946656
Ranges: table: 015144A8
1: table: 015144D0
Start: 1000
StartAddress: 253946656
End: 1010
StartId: 1000
18: table: 01514570
EndId: 424206
EnAddress: 0
Name: 3 QuestDetailObjectDB
Address: 253946240
Ranges: table: 015145C0
1: table: 015145E8
Start: 420025
StartAddress: 253946240
End: 421893
2: table: 01514610
Start: 421894
StartAddress: 266993632
End: 423941
3: table: 01514660
Start: 423942
StartAddress: 267190240
End: 424206
StartId: 420025
19: table: 015147C8
EndId: 118533
EnAddress: 0
Name: 3 QuestNPCObjectDB
Address: 267181696
Ranges: table: 01514818
1: table: 01514840
Start: 110000
StartAddress: 267181696
End: 111780
2: table: 01514868
Start: 111781
StartAddress: 267452384
End: 113828
3: table: 015148B8
Start: 113829
StartAddress: 267714528
End: 115876
4: table: 01514890
Start: 115877
StartAddress: 267911136
End: 117924
5: table: 015148E0
Start: 117925
StartAddress: 268107744
End: 118533
StartId: 110000
20: table: 01514B60
EndId: 551632
EnAddress: 0
Name: 6 RecipeObjectDB
Address: 268088192
Ranges: table: 01514BB0
1: table: 01514BD8
Start: 550000
StartAddress: 268088192
End: 551436
2: table: 01514C00
Start: 551437
StartAddress: 268369888
End: 551632
StartId: 550000
21: table: 01514D40
EndId: 521490
EnAddress: 0
Name: 7 RuneObjectDB
Address: 268363552
Ranges: table: 01514D90
1: table: 01514DB8
Start: 520000
StartAddress: 268363552
End: 521490
StartId: 520000
22: table: 01514E58
EndId: 600279
EnAddress: 0
Name: 7 ShopObjectDB
Address: 268315776
Ranges: table: 01514EA8
1: table: 01514ED0
Start: 600000
StartAddress: 268315776
End: 600279
StartId: 600000
23: table: 01514F70
EndId: 610366
EnAddress: 0
Name: 7 SuitObjectDB
Address: 268306752
Ranges: table: 01514FC0
1: table: 01514FE8
Start: 610000
StartAddress: 268306752
End: 610074
2: table: 01515010
Start: 610075
StartAddress: 310444000
End: 610366
StartId: 610000
24: table: 01515150
EndId: 530776
EnAddress: 0
Name: 2 TitleObjectDB
Address: 310434560
Ranges: table: 015151A0
1: table: 015151C8
Start: 530000
StartAddress: 310434560
End: 530776
StartId: 530000
25: table: 01515268
EndId: 725758
EnAddress: 0
Name: 7 TreasureObjectDB
Address: 310409632
Ranges: table: 015152B8
1: table: 015152E0
Start: 720000
StartAddress: 310409632
End: 720973
2: table: 01515308
Start: 720974
StartAddress: 319815648
End: 723021
3: table: 01515358
Start: 723022
StartAddress: 320077792
End: 725069
4: table: 01515330
Start: 725070
StartAddress: 320274400
End: 725758
StartId: 720000
26: table: 01515560
EndId: 213164
EnAddress: 0
Name: 4 WeaponObjectDB
Address: 320252288
Ranges: table: 015155B0
1: table: 015155D8
Start: 210001
StartAddress: 320252288
End: 211357
2: table: 01515600
Start: 211358
StartAddress: 325910496
End: 213164
StartId: 210001
27: table: 01515740
EndId: 750461
EnAddress: 0
Name: 8 ZoneObjectDB
Address: 325852608
Ranges: table: 01515790
1: table: 015157B8
Start: 750000
StartAddress: 325852608
End: 750238
2: table: 015157E0
Start: 750239
StartAddress: 328597472
End: 750461
StartId: 750000
Re: Table not found for ID
Posted: Sat Jun 04, 2011 2:03 am
by rock5
Hm... I think I need more from you Lisa.
What I want you to do is, after getting a "table not found" error;
1. Double check the GetTableForID function with that id.
If it returns a table it will print it otherwise you should get the "table not found" error.
2. If you get the error, increase the buffer size of the micromacro window by right-clicking the title bar and selecting "proprties". Go to the "layout" tab and change the Screen Buffer Size Hieght to about 550. (If you want to permanently change it select default instead of properties).
3. Enter the command
and look for the range that should cover the item that is erroring.
Either you find that it is covered in which case there is a problem with the way it searches for the ids table or it's missing from tables, in which case there is something wrong with the way it creates the tables. We'll need to know which it is to fix it.
Re: Table not found for ID
Posted: Sat Jun 04, 2011 3:02 am
by lisa
armor starts and ends at id 220001, i'm guessing it should end much later. 230000 maybe?
Code: Select all
3: table: 040E89E8
EndId: 220001
EnAddress: 0
Name: 5 ArmorObjectDB
Address: 172556288
Ranges: table: 040E8A38
1: table: 040E8A60
Start: 220001
StartAddress: 172556288
End: 220001
StartId: 220001
Re: Table not found for ID
Posted: Sat Jun 04, 2011 3:10 am
by rock5
Well there's your problem. It only covers 1 item. Mine ends on 228522.
I'll have another look at it and see if I can figure out what to do next.
Re: Table not found for ID
Posted: Sat Jun 04, 2011 3:17 am
by rock5
BTW, did you try adding pauses between the opening and closing of the backpack?
Code: Select all
RoMScript("ToggleBackpack()"); -- Make sure the client loads the tables first.
yrest(500)
RoMScript("BagFrame:Hide()"); -- Make sure the client loads the tables first.
RoMScript("GoodsFrame:Show()"); -- Make sure the client loads the tables first.
yrest(500)
RoMScript("GoodsFrame:Hide()"); -- Make sure the client loads the tables first.
That's near the top of inventory.lua. Don't forget to restart the client between tests.
Re: Table not found for ID
Posted: Sat Jun 04, 2011 3:55 am
by lisa
added in the pause and I can see both bags open and close.
Code: Select all
Table not found for ID: 223427
Wrong value returned in update of item id: 223427
Command> table.print(GetTableForID(1))
Table not found for ID: 1
nil
onLoad error: C:/micromacro/lib/mods/table_addon.lua:31: bad argument #1 to 'pairs' (table expected, got nil)
Code: Select all
3: table: 01A48140
EndId: 220001
EnAddress: 0
Name: 5 ArmorObjectDB
Address: 172556288
Ranges: table: 01A481B8
1: table: 01A48208
Start: 220001
StartAddress: 172556288
End: 220001
StartId: 220001
Re: Table not found for ID
Posted: Sat Jun 04, 2011 4:41 am
by lisa
On the odd occasion I get no errors I copied my cache once, armor looked like this.
Code: Select all
"5 ArmorObjectDB", Ranges = {{Start = 0x35B61, End = 0x35B62, StartAddress = 0xA4F0020}, {Start = 0x35B63, End = 0x36362, StartAddress = 0xB32FFE0}, {Start = 0x36363, End = 0x36B62, StartAddress = 0xB36FFE0}, {Start = 0x36B63, End = 0x37362, StartAddress = 0xB3AFFE0}, {Start = 0x37363, End = 0x37B62, StartAddress = 0xB3DFFE0}, {Start = 0x37B63, End = 0x37CAA, StartAddress = 0xB40FFE0}, }},
when i get the errors it looks like this
Code: Select all
"5 ArmorObjectDB", Ranges = {{Start = 0x35B61, End = 0x35B61, StartAddress = 0xA490000}, }},
On the off chance it might work I replaced the first code with the code in the cache that isnt working. still got the wrong name and table not found lol
Re: Table not found for ID
Posted: Sat Jun 04, 2011 4:52 am
by rock5
lisa wrote:On the off chance it might work I replaced the first code with the code in the cache that isnt working. still got the wrong name and table not found lol
The idea was good but the addresses would be different. Also the range start and end values won't necessarilly match.
I narrowed the problem down to the CDef:update() function but it's too confusing for me to figure out how to debug it to find out exactly which values are wrong.
Maybe you could experiment and put a few print statement through out it to see if anything stands out as wrong?
Re: Table not found for ID
Posted: Sat Jun 04, 2011 12:12 pm
by kanta
Not sure if this will help any but I just ran across one of the table errors while making my own 1-10 waypoint set. I have the gift bag function activated.
Open and equipt giftbag for level 8
Open/equip item: <EMPTY> <-- here's the problem
Open/equip item: Superior Robe
Item couldn't be found: Cave Package
Item couldn't be found: Robe
Re: Table not found for ID
Posted: Sat Jun 04, 2011 2:54 pm
by squeekthegeek
Just a thought:
If ID has a value(e.g:221394) but name is <empty>, can't we get the name with
Code: Select all
RoMScript("TEXT('Sys221394_name')")
i know reading memory is faster but hey! we need failsafes after all now don't we
Re: Table not found for ID
Posted: Sat Jun 04, 2011 9:05 pm
by rock5
squeekthegeek wrote:Just a thought:
If ID has a value(e.g:221394) but name is <empty>, can't we get the name with
Code: Select all
RoMScript("TEXT('Sys221394_name')")
Yes, but...
It wont work when the bot is loading up (which is one of the times you get that message) because the macro isn't set up at that point.
And from the print out we have above, it can be seen that it isn't just the name that is affected. Even the "Empty" value is equal to true.
Re: Table not found for ID
Posted: Sun Jun 05, 2011 11:41 am
by lisa
lol just got this, made me laugh
Code: Select all
Table not found for ID: 1058155056
Table not found for ID: 1060036739
Table not found for ID: 1069250384
Table not found for ID: 1047848700
Table not found for ID: 1054199424
Table not found for ID: 1064025136
Table not found for ID: 1063077439
Hmm ID 1 billion how high can you go? =)
Re: Table not found for ID
Posted: Mon Jun 06, 2011 4:59 am
by rock5
Lisa could you use the following memorytables.lua file? It prints out a lot of values in the CTDef:Update() function for the armor table. When you are not getting any errors then it will spew out too much info but if you are getting the "table not found" errors then it should be very short seeing as there is only one id. This function only runs I think when creating the cache so after getting the error, delete the cache and restart the bot.
Hopefully with that printout I will be able to narrow it down further.
ps. I seem to remember that the weapons were also affected. If you get errors for the weapons instead if armor then change the following at line 39,
Code: Select all
--if self.Name == "4 WeaponObjectDB" then
if self.Name == "5 ArmorObjectDB" then
to
Code: Select all
if self.Name == "4 WeaponObjectDB" then
--if self.Name == "5 ArmorObjectDB" then
Re: Table not found for ID
Posted: Mon Jun 06, 2011 5:41 am
by lisa
did you intend to attach a file?
Re: Table not found for ID
Posted: Mon Jun 06, 2011 6:11 am
by rock5
Yes I did.
Like I said it might be better to wait until you get the error before trying it otherwise the spamming messages will annoy you.
BTW I just got the following with my logarcraft script
Code: Select all
Table not found for ID: 1751342188
Table not found for ID: 1818177840
Table not found for ID: 1751342188
Table not found for ID: 1818177840
Table not found for ID: 1751342188
Table not found for ID: 1818177840
Strange, it just happened while traveling between tools.
Re: Table not found for ID
Posted: Mon Jun 06, 2011 6:14 am
by lisa
It's been a few days since I have not had the error so I don't that's an issue atm lol
Re: Table not found for ID
Posted: Mon Jun 06, 2011 6:22 am
by rock5
Ok we'll revisit it if it crops up again.
Re: Table not found for ID
Posted: Mon Jun 06, 2011 7:13 am
by lisa
lol no I mean I have had the table missing and wrong value every time, I just kinda worked around the issue for now. I'll test out that file =)