Page 1 of 1

Weird Casting Error

Posted: Fri Jan 21, 2011 3:32 pm
by jduartedj
My castbar isn't always checked properly for some reason!
Many times have found the bot not collecting a feed bag f/e with

Code: Select all

player:target_Object(112956,nil,true);
in this case the castbar reaches aprox. 2secs and quits.

if I use

Code: Select all

player:target_Object(112956,5000,true);
or

Code: Select all

player:target_Object(112956,4250,true);
it works but weirdly if I use

Code: Select all

lagtime = 100; 
player:target_Object(112956,4250+lagtime,true);
it doesn't. (Note: if I set lagtime=0 it works also.)
In this second example where I add 100 to waittime the cast bar fills up to aprox 4/4.5 secs.

again my question... why?

if this where a non-sense british sitcom I'd be laughting my ass out!

Re: Weird Casting Error

Posted: Fri Jan 21, 2011 11:48 pm
by rock5
It's probably some weird bug with your setup as all of those commands worked for me and logically they should.

Are you sure you don't have any conflicted files?

Re: Weird Casting Error

Posted: Sat Jan 22, 2011 7:27 pm
by jduartedj
To tell the truth It's hard to tell because some of my files are merged and not clean from SVN, this because I'm using some scripts that require alterations to player.lua and bot.lua :P but these should not influence Casting as far as I know... Also I reduced the unstick time to less 1 sec.

Re: Weird Casting Error

Posted: Sat Jan 22, 2011 7:57 pm
by rock5
A good way to go through your code looking for anything that might affect your casting is to right click the rom folder and select "TortoiseSVN/Check for modifications" and doubl click the files. Then you can see if any changes look like they could be the problem.

Re: Weird Casting Error

Posted: Sat Jan 22, 2011 9:03 pm
by jduartedj
I go through that AT every revision or almost, Bu ti see that in last revision loads of stuff regarding casting changed I have to test it now b4 speaking anymore :P