Page 1 of 2

Error with bot r478

Posted: Mon Jul 26, 2010 1:43 am
by romvn
Hi,

I got this error when trying to start the bot with the waypoint l1t_start.xml, profile l1-10

Code: Select all

Mon Jul 26 13:18:58 2010 : scripts\rom/bot.lua:7: ...Desktop/micromacro/scripts/rom/classes/inventory.lua:1: ...sktop/micromacro/scripts/rom/classes/memorytable.lua:144: bad argument #2 to 'memoryReadInt' ((null))
Mon Jul 26 13:18:58 2010 : Execution error: Runtime error
Trying serveral times, I was able to make it work but after a few minutes, a bunch of messages spammed the whole Micro Macro console.

Code: Select all

100% [*************************************************]
NOTICE: Item mismatch (~=Simple Magic Potion; updating item info (don't panic).
100% [*************************************************]
NOTICE: Item mismatch (~=Simple Magic Potion; updating item info (don't panic).
100% [*************************************************]
NOTICE: Item mismatch (~=Simple Magic Potion; updating item info (don't panic).
Sometimes it worked after then, sometimes it stopped without reason.
Please look at this problem.
Thanks

Re: Error with bot r478

Posted: Mon Jul 26, 2010 7:01 am
by nokirk
I'm getting these error messages as well.

Apart from that, my bot stopped looting, although looting should be activated

Code: Select all

<!-- Loot settings -->
		<option name="LOOT"               value="true" />
		<option name="LOOT_IN_COMBAT"     value="true" />
		<option name="LOOT_DISTANCE"      value="250" />
		<option name="LOOT_PAUSE_AFTER"   value="50" />		

and I'm having trouble with the calculation of the durability of my main hand weapon which I used for checking if the bot should go to a merchant for selling and repairing.
In MicroMacro window it says: "Durability: 1.#INF" instead of the correct durability which is at around. 0.8 atm.

Do I have to make any more changes to make it loot again? Thank you.

Oh and by the by, forgot to ask is it (maybe now?) possible to send the bot to the merchant based on how full the inventory is? Durability is usually no problem but with only 60 places inventory gets filled quite fast though I'm using Lootfilter addon. Like, if there are only 4 empty spaces in inventory -> go to merchant? Couldn't find a method for that on wiki.
Thank you and keep up the great work, the bots really awesome and a lot of fun!

Re: Error with bot r478

Posted: Mon Jul 26, 2010 7:44 am
by rock5
[quote="nokirk"]Oh and by the by, forgot to ask is it (maybe now?) possible to send the bot to the merchant based on how full the inventory is? Durability is usually no problem but with only 60 places inventory gets filled quite fast though I'm using Lootfilter addon. Like, if there are only 4 empty spaces in inventory -> go to merchant? Couldn't find a method for that on wiki.

Code: Select all

        occupiedSlots, totalSlots = RoMScript("GetBagCount()")
        bagspace = totalSlots - occupiedSlots
        if 5 > bagspace then
               -> go to merchant
        end
This has always been possible.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 7:46 am
by VoidMain
nokirk wrote:I'm getting these error messages as well.

Apart from that, my bot stopped looting, although looting should be activated

Code: Select all

<!-- Loot settings -->
		<option name="LOOT"               value="true" />
		<option name="LOOT_IN_COMBAT"     value="true" />
		<option name="LOOT_DISTANCE"      value="250" />
		<option name="LOOT_PAUSE_AFTER"   value="50" />		

and I'm having trouble with the calculation of the durability of my main hand weapon which I used for checking if the bot should go to a merchant for selling and repairing.
In MicroMacro window it says: "Durability: 1.#INF" instead of the correct durability which is at around. 0.8 atm.

Do I have to make any more changes to make it loot again? Thank you.

Oh and by the by, forgot to ask is it (maybe now?) possible to send the bot to the merchant based on how full the inventory is? Durability is usually no problem but with only 60 places inventory gets filled quite fast though I'm using Lootfilter addon. Like, if there are only 4 empty spaces in inventory -> go to merchant? Couldn't find a method for that on wiki.
Thank you and keep up the great work, the bots really awesome and a lot of fun!
Here is a patch for the dura problem, happened to be a typo in update function...

P.S.: Sorry, my bad i was checking HP potions, here is a correct patch for MP potions, i'm submitting both to admin so he can upload for next rev.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 7:58 am
by swietlowka
I just did test it and there is a problem, u can't open two bots simultaniously, when opening new one there pops a problem, pls check it :) im using egg script if it does matter

Re: Error with bot r478

Posted: Mon Jul 26, 2010 8:35 am
by VoidMain
swietlowka wrote:I just did test it and there is a problem, u can't open two bots simultaniously, when opening new one there pops a problem, pls check it :) im using egg script if it does matter
I'm using 4 instances of the game-bot ATM, no problem, if you could be a bit more specific or maybe post a screenshot of the error?

Re: Error with bot r478

Posted: Mon Jul 26, 2010 9:43 am
by DrG
i've got this error

Code: Select all

scripts\rom/bot.lua:7: ...cuments/micromacro/scripts/rom/classes/inventory.lua:1: ...ments/micromacro/scripts/rom/classes/memorytable.lua:144: bad argument #2 to 'memoryReadInt' ((null))
This hapenned in the eggs farm.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 9:57 am
by swietlowka
same here, and besides posting prnt scr is forbiden ;)

Re: Error with bot r478

Posted: Mon Jul 26, 2010 10:00 am
by DrG
Problem solved with relog :)

Re: Error with bot r478

Posted: Mon Jul 26, 2010 10:11 am
by VoidMain
DrG wrote:i've got this error

Code: Select all

scripts\rom/bot.lua:7: ...cuments/micromacro/scripts/rom/classes/inventory.lua:1: ...ments/micromacro/scripts/rom/classes/memorytable.lua:144: bad argument #2 to 'memoryReadInt' ((null))
This hapenned in the eggs farm.
This patch solves that error, it seems like sometimes the table ends on an empty memory region, never happened to me but i can see its happening to you, this will solve it.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 11:29 am
by Administrator
I've committed this patch for r479.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 2:14 pm
by nokirk
rock5 wrote:

Code: Select all

        occupiedSlots, totalSlots = RoMScript("GetBagCount()")
        bagspace = totalSlots - occupiedSlots
        if 5 > bagspace then
               -> go to merchant
        end
Works perfect, thanks rock5.

Still my bot won't loot neither with r478 nor with r479. What changes do I have to make to make it loot again?
Thank you.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 2:18 pm
by jpp
I got 479 and there is still error and knight does not use mana potions.
local unused,unused,checkItemName = RoMScript("GetBagItemInfo(" .. item.SlotNumber .. ")");
if( checkItemName ~= item.Name ) then
cprintf(cli.yellow, language[18], tostring(checkItemName), tostring(item.Name));

error come from here, but I do not understand what is GetBagItemInfo doing, so can not comment.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 2:27 pm
by rock5
nokirk wrote:
rock5 wrote:

Code: Select all

        occupiedSlots, totalSlots = RoMScript("GetBagCount()")
        bagspace = totalSlots - occupiedSlots
        if 5 > bagspace then
               -> go to merchant
        end
Works perfect, thanks rock5.

Still my bot won't loot neither with r478 nor with r479. What changes do I have to make to make it loot again?
Thank you.
Mine loots. Sure you didn't turn LOOT off by mistake?

Re: Error with bot r478

Posted: Mon Jul 26, 2010 2:33 pm
by VoidMain
DrG wrote:Problem solved with relog :)
I was talking about a ss of micromacro window...

Re: Error with bot r478

Posted: Mon Jul 26, 2010 2:43 pm
by VoidMain
jpp wrote:I got 479 and there is still error and knight does not use mana potions.
local unused,unused,checkItemName = RoMScript("GetBagItemInfo(" .. item.SlotNumber .. ")");
if( checkItemName ~= item.Name ) then
cprintf(cli.yellow, language[18], tostring(checkItemName), tostring(item.Name));

error come from here, but I do not understand what is GetBagItemInfo doing, so can not comment.
If you didn't apply the mppotions patch i posted you will have to wait because admin seems to forgot that one.
You can still apply the patch by yourself until it gets fixed in SVN...

Re: Error with bot r478

Posted: Mon Jul 26, 2010 3:07 pm
by nokirk
rock5 wrote:Sure you didn't turn LOOT off by mistake?
I don't think I did. I updated to r478 first, ran update.lua and it stopped looting. Went back to r477 and everthing worked fine. Tried it again later when r479 was already out and it stopped looting again. Back to r477, everything works.

profile options are these

Code: Select all

		<!-- Loot settings -->
		<option name="LOOT"               value="true" />
		<option name="LOOT_IN_COMBAT"     value="true" />
		<option name="LOOT_DISTANCE"      value="250" />
		<option name="LOOT_PAUSE_AFTER"   value="50" />		
Thank you

Re: Error with bot r478

Posted: Mon Jul 26, 2010 3:15 pm
by rock5
nokirk wrote:
rock5 wrote:Sure you didn't turn LOOT off by mistake?
I don't think I did. I updated to r478 first, ran update.lua and it stopped looting. Went back to r477 and everthing worked fine. Tried it again later when r479 was already out and it stopped looting again. Back to r477, everything works.
Maybe it's not merging properly. Are there any files that don't have green ticks next to them? If so, try right clicking on them and selecting TortoiseSVN/Revert.

Re: Error with bot r478

Posted: Mon Jul 26, 2010 3:56 pm
by nokirk
rock5 wrote:Maybe it's not merging properly. Are there any files that don't have green ticks next to them? If so, try right clicking on them and selecting TortoiseSVN/Revert.
No, it's all green before running update.lua. And I think it should work because when rombot starts it loads the new items tables.
Though, when a waypoint file is started and a mob killed, in MicroMacro window it says (in translated) "We have not moved to plunder?! Rooted?! Option "Click to move" activated?" The option "Click to move" is activated ofc. But the bot doesn't move towrds the lootable mob.

Just checked if the reason could be that I'm not using the english client but changing client language didn't alter anything.

Just got another error message when I tried to use a different account, when loading a waypoint file with my scout it says that there is a problem in "rom/bot.lua:400: attempt to call method "getAmmunitionCount" (a nil value) - but maybe that would be fixed with the mp-file?

Re: Error with bot r478

Posted: Mon Jul 26, 2010 4:37 pm
by DrG
Trying serveral times, I was able to make it work but after a few minutes, a bunch of messages spammed the whole Micro Macro console.

100% [*************************************************]
NOTICE: Item mismatch (~=Simple Magic Potion; updating item info (don't panic).
100% [*************************************************]
NOTICE: Item mismatch (~=Simple Magic Potion; updating item info (don't panic).
100% [*************************************************]
NOTICE: Item mismatch (~=Simple Magic Potion; updating item info (don't panic).
i too have this error but with mana potion. But i update rom bot manually and Administrator forget to aplly this patchs to the lastet rev.
Attachments:
mppotions.patch.txt [863 Bytes]
Downloaded 3 times
equipdura.patch.txt [1.88 KiB]
Some one could help me and give the way to apply this withou this way :)