I updated the micromacro program yesterday (v1.01) and I've begun to get the following error:
C:/micromacro/scripts/rom/classes/player.lua:2509: bad argument #1 to 'pairs' (table expected, got nil)
In the waypoint file I was trying to make I was using the travel waypoint type to gather mobs then stop after a bit and kill. Once it tried to target the error comes up. Just to test if it was/is a problem in my waypoint file I tested it with the wander waypoint. I get the error every time it tries to target a mob.
**UPDATE**
I reverted to the previous version and am still getting the error. Had the wander waypoint loaded, walking around and didn't even target a mob before I received the error.
Getting error since micromacro update
Getting error since micromacro update
Scout/Knight/Rogue 70/66/66
Re: Getting error since micromacro update
What version of the bot are you using because I don't have a 'pairs' on line 2509 of player.lua. Have you edited player.lua? Do any of the rombot files not have green icons next to them in Explorer?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Getting error since micromacro update
I have a commented out part of CPlayer:Logout at line 2509, going to need more info in order to help.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Getting error since micromacro update
Lisa, a good way to see what's supposed to be on a line is to right click the file and select "TortoiseSVN/Check for Modifications". Then on the left pane you can scrole down to right line and see what's supposed to be there.lisa wrote:I have a commented out part of CPlayer:Logout at line 2509, going to need more info in order to help.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Getting error since micromacro update
Yes, I do have it modified, was trying the Boss Focus found in this post: http://www.solarstrike.net/phpBB3/viewt ... 089#p20089. It doesn't really work for me, at least not for the reason I needed it (Zurhidon Negotiator). I had even forgotten I'd put it in there. I'll delete the modified files and run tortoise.
Just loaded the player.lua. It is indeed a problem with the boss coding. So I'll definitely be getting the unedited files again.
I apologize for the trouble this may have caused you.
Just loaded the player.lua. It is indeed a problem with the boss coding. So I'll definitely be getting the unedited files again.
Code: Select all
-- returns true if target is in boss
function CPlayer:isInBoss(pawn)
if( not pawn ) then
error("CPlayer:isInBoss() received nil\n", 2);
end;
for i,v in pairs(settings.profile.boss) do <!-- line 2509 -->
boss_defined = true;
if( string.find( string.lower(pawn.Name), string.lower(v), 1, true) ) then
return true;
end
end
return false;
end
Scout/Knight/Rogue 70/66/66