Oh, okay. I got this error a few times yesterday. But I was always afk, when this error was occured. I remember that my bot was casting regenerate, before this error occured.
Btw I just started the bot and I pulled some extra adds by hand, then I got the error again.
Use 1: SCOUT_VAMPIRE_ARROWS=> Aslan Dragonfly (2064/2064)
Use 4: SCOUT_WIND_ARROWS => Fire mane Boar (3791/3791)
Use 4: SCOUT_WIND_ARROWS => Fire mane Boar (2112/2133)
Use 1: SCOUT_VAMPIRE_ARROWS=> Fire mane Boar (2039/2133)
Use 2: SCOUT_SHOT => Fire mane Boar (1952/2133)
Taking too long to damage target, breaking sequence...
Clearing target.
Fight finished. Killed 1 <UNKNOWN>. (fight #2 / runtime 3 minutes)
Durability:0.98989898989899
scripts/classes/player.lua:1293: attempt to index global 'self' (a nil value)
"Taking too long to damage target, breaking sequence..." because I manually pressed TAB to pull a few mobs
wil32 wrote:im getting the same here, i tried to follow the bot to see wats going on.., when i got the error a couplke of time, the bot wont start again,
i went back a few version for now
What do you mean "the bot wont start again"? Did it say a different error or the same error when it wouldn't start?
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.
Please attach a copy of log.txt. Hopefully the traceback will provide more information. Also, we probably have different versions of player.lua, so provide a snippet of the area around that line.
Administrator wrote:Please attach a copy of log.txt. Hopefully the traceback will provide more information. Also, we probably have different versions of player.lua, so provide a snippet of the area around that line.
I already comited it. It was an obvious fix. In that function 'self' had no context so I just changed it to 'player'. This is the section with the 'self's already changed.
-- check if we just ignored that target / ignore it for 10 sec
if(address == player.Last_ignore_target_ptr and
os.difftime(os.time(), player.Last_ignore_target_time) < 10 )then
if ( player.Battling == false ) then -- if we don't have aggro then
cprintf(cli.green, language[87], target.Name, -- We ignore %s for %s seconds.
10-os.difftime(os.time(), player.Last_ignore_target_time ) );
debug_target("ignore that target for 10 sec (e.g. after doing no damage")
return false; -- he is not a valid target
end;
if( player.Battling == true and -- we have aggro
target.TargetPtr ~= self.Address ) then -- but not from that mob
debug_target("we have aggro from another mob")
return false;
end;
end
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.
: .../Documents/micromacro/scripts/rom/classes/player.lua:1301: attempt to index global 'self' (a nil value)
Me too and my 58/58 level character died. 1.5kk XP debt. Ouch!
I didn't examine the evalTargetDefault function properly. There was still a lot of 'self's in it. There shouldn't be any selfs as they have no context in that function. I've more thoroughly changed all the 'self's to 'player'. There shouldn't be anymore "'self' (a nil value)" errors.
So update to revision 475.
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.