Page 8 of 20
Re: Heads up! Big update comming. Looking for testers.
Posted: Wed Nov 07, 2012 2:24 am
by lisa
would trying to divide 0 make it say that??
0/10
Otherwise yeah I can't see that code ever saying
attempt to perform arithmetic on a nil value
Only 2 places are doing arithmatic.
and the
oooh ooh ooh or
addresses.staticCooldownsBase
is nil lol
Check the addresses.lua for it.
Re: Heads up! Big update comming. Looking for testers.
Posted: Wed Nov 07, 2012 2:42 am
by rock5
If addresses.staticCooldownsBase was nil then it would error pretty much right away, not once in a long while. 0/10 works fine. It's when you divide by 0 that you would get a divide by 0 error which is a different error. So it can only be offset that is nil. Except it can't be because of the "if offset".
Re: Heads up! Big update comming. Looking for testers.
Posted: Wed Nov 07, 2012 2:52 am
by lisa
I obviously haven't looked into the code but how often is it done?
I usually add in a print to determine the cause of issues like this but if it is doing 100's of them every second it can be annoying.
Code: Select all
if offset and offset ~= 0 then
print(offset)
return (memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase + (offset+1)*4) or 0)/10
end
Re: Heads up! Big update comming. Looking for testers.
Posted: Fri Nov 09, 2012 3:41 pm
by nightclaw
rock5 wrote:nightclaw wrote:Yes same error i get but just happens way later....and less often
Are you sure it's not a different line number or something because I'm telling you it's impossible to get that error there.
Code: Select all
if offset and offset ~= 0 then
return (memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase + (offset+1)*4) or 0)/10
end
If offset is nil then it wont do that line so it's impossible to get the "attempt to perform arithmetic on a nil value" error for that line. If you are getting that error for that line then I can't explain it.
yep i am sure here it is
Code: Select all
function CSkill:remainingCooldown()
if self.BaseItemAddress ~= 0 then
local offset = memoryReadRepeat("int", getProc(), self.BaseItemAddress + addresses.skillRemainingCooldown_offset)
if offset and offset ~= 0 then
return memoryReadRepeat("int", getProc(), addresses.staticCooldownsBase + (offset+1)*4)/10
end
end
return 0
end
but like i said it dont do it all time and i only get it after running the bot for long time now 8 hours + or so but its radom other bot wont get it and then some times they do IDK but that code you gave does help alot
Re: Heads up! Big update comming. Looking for testers.
Posted: Sat Nov 10, 2012 1:29 am
by grande
IDK if it's associated with this beta 4... I'll try reverting to normal to see if there's a difference:
So I switched from windowed to fullscreen mode and it seemed like the bots were running nice and snappy with little errors/mis-steps that I usually have in AT. However, problem is now it doesn't like to switch between characters and crashes with a macro indication:
Code: Select all
Loading profile Default.xml
Testing 'ingamefunctions' macro. If it gets stuck here, please update the 'ingamefunctions' by copying the 'ingamefunctions' folder from 'rom/devtools' to the games 'interface/addons' folder.
The communication to the game with the MACRO function seems not to work.
Did not find any crashed game clients.
11:28pm - scripts\rom\bot.lua:604: onLoad error: Define ingame an empty macro at
the FIRST macro space and assign that to your MACRO hotkey 'F9'.
so far I've deleted macro.bsd files and then reloaded the game. I also recopied the ingamefunctions folder into the game/addons directory. Thinking it has something to do with the windowed vs fullscreen mode since that's when i noticed the problem. Also tried doing what's indicated with the 'F9' hotkey but ended up moving it back to the switch views/guild thing.
Re: Heads up! Big update comming. Looking for testers.
Posted: Sat Nov 10, 2012 2:07 am
by rock5
It's very possible some things might be different when in fullscreen mode. I haven't used it since starting the game years ago. I can confirm that Thunderstorm doesn't work if the fullscreen is minimized. There could be a few things that don't work so I suggest leaving it in window mode. Maybe I'll have a look at fullscreen mode in the future and see if it's worth adding support for it.
Re: Heads up! Big update comming. Looking for testers.
Posted: Sat Nov 10, 2012 6:10 am
by grande
Thx Rock5. IDK why but fullscreen was just running sooooo smooth with the exception of character login. Maybe there's something with fast autologin. When's the last time you fiddled with Thunderstorm in fullscreen mode?
Re: Heads up! Big update comming. Looking for testers.
Posted: Sat Nov 10, 2012 7:49 am
by rock5
grande wrote: When's the last time you fiddled with Thunderstorm in fullscreen mode?
I tried it just before the last post. Why? Does it work for you when minimized? I have 2 screens, though. That might contribute to the problem too.
Re: Heads up! Big update comming. Looking for testers.
Posted: Sat Nov 10, 2012 1:13 pm
by nightclaw
geting this error again seams to be only on my rogue/scout and after few hours of farming Dog meats

Re: Heads up! Big update comming. Looking for testers.
Posted: Sun Nov 11, 2012 8:32 am
by grande
rock5 wrote: Why? Does it work for you when minimized? I have 2 screens, though. That might contribute to the problem too.
I've never really played a mage before. I went back to the latest live revision and reverted to see if I could fix some errors. The new Andor mini-event is a PITA... seems to randomly crash midway through the event. More quality --Froggy-- product, not.
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Mon Nov 12, 2012 11:22 am
by rock5
I've posted my current version for public testing on the first post. Check it out.
http://www.solarstrike.net/phpBB3/viewt ... 078#p42078
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Mon Nov 12, 2012 11:55 pm
by Budzer
Well as for tests CPU efficiency it's insane. As for previously my MM eats about 33% more CPU than KS client + alt. Now MM is using over 60% less CPU. That should allow me to run 50% more clients. Of course in theory, cuz I am running 4, while I could 6 maybe 7
As for problems not a big deal, but I have to reconfigure my NTbuff, but it is not a bot problem at all

Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Tue Nov 13, 2012 1:40 am
by lisa
RC1 seems a lot smoother/faster than "current" bot, nice work.
Still testing it, might hit up DoD tomorrow for some party fun and see how it goes on a boss fight.
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Tue Nov 13, 2012 3:44 am
by nightclaw
i still geting taht error i posted up above ...and seams be only with rogue/scout so far not sure if its do me runing muti boxes or what...
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Tue Nov 13, 2012 4:02 am
by rock5
nightclaw wrote:i still geting taht error i posted up above ...and seams be only with rogue/scout so far not sure if its do me runing muti boxes or what...
What line number does it say now? And can you confirm exactly what you have on that line.
To test if it's because you're multiboxing is easy. Just run 1 box and see if it still happens.
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Tue Nov 13, 2012 8:46 am
by rock5
Updated the list of changes on the first post.
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Tue Nov 13, 2012 5:23 pm
by newton666
hi with the new rombot i've got a problem with skills which are on cool down.
with the old rombot if the skill was on cool down it would just bypass it and go onto the next skill on the list .
with this new rombot it would wait till the skill in no longer on cool down before it carrys on . Anyway to solve this ?
Code: Select all
<!-- # 9 --><waypoint x="2243" z="2462" y="401">speed(80);
if not player:hasBuff("Evasion") then
player:cast("ROGUE_EVASION")
end
if not player:hasBuff("Premeditation") then
player:cast("ROGUE_PREMEDITATION")
end
if not player:hasBuff("Assassins Rage") then
player:cast("ROGUE_ASSASSINS_RAGE")
end
if not player:hasBuff("Assassins Rage") then
player:cast("ROGUE_FERVENT_ATTACK")
end
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Wed Nov 14, 2012 12:03 am
by rock5
Ah, because you're manual casting. I'll look into it.
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Wed Nov 14, 2012 1:29 am
by rock5
I just added a cooldown check to player:cast. I also noticed you can't cast skills like Discharge unless you have a target. I've changed it so you can. That way you can use custom code that runs to the middle of a group of mobs, does an aoe and then does a lootall, without having to target a mob first.
Re: Heads up! Big update comming. Public Release RC1 ready.
Posted: Wed Nov 14, 2012 8:39 am
by newton666
that did the trick thx rock