Page 1 of 1

Bot losing control and getting "stuck". *SOLVED*

Posted: Wed Jul 28, 2010 3:58 am
by Wundervice
Danke :)

Re: Bot losing control and getting "stuck". Have a looksee

Posted: Wed Jul 28, 2010 5:29 am
by rock5
Wundervice wrote:Somebody wrote something on this back when but Im not sure what happened with that. Anyway, Im using my own tweaked version of the Millers Ranch Egg/Milk harvesting scripts (MAJOR points to the creators, much more refined than my original) and its working great except as usual my bot just seems to lose control as its running to a point. At times it'll just start panning the camera left and right or it never stops at the point its supposed to and just keeps going in circles around it. When either one happens, the bot will try to "unstick" itself and lgos out after 10x. Id like this bot to go on forever, but with scripts like the miller ranch ones you need total precision.

So, how do I fix this problem? Is it a game setting conflict or a bot issue or something?


EDIT: Going to sleep but as a random idea I have set the bot to walk instead of run. maybe thatll help. Let me know if you guys know anything better!
First of all it sounds like you have "QUICK_TURN" set to "false" in your profile. It might work better if it was true. That said, it should work when set to false as well. So there is some other problem. Maybe lag?

Re: Bot losing control and getting "stuck". Have a looksee

Posted: Wed Jul 28, 2010 5:28 pm
by Wundervice
Nah its not a lag issue. Well, maybe a framerate issue POSSIBLY. But, setting myself to walk handles the problem about 4/5 of the way. i will set quickturn to true and that should polish it off. As long as i have you here, though:

For the millers ranch milking I just downloaded the compiled script off an upload soeone has here but randomly the script ends and displays the following at random during a goat harvest:

[string "..."]:2: attempt to compare number with nil


Whats causing that? People were having a similar problem but with line 13 or something. Does it have anything to do with loot timers or..?

Re: Bot losing control and getting "stuck". Have a looksee

Posted: Wed Jul 28, 2010 10:38 pm
by rock5
Wundervice wrote:Nah its not a lag issue. Well, maybe a framerate issue POSSIBLY. But, setting myself to walk handles the problem about 4/5 of the way. i will set quickturn to true and that should polish it off. As long as i have you here, though:

For the millers ranch milking I just downloaded the compiled script off an upload soeone has here but randomly the script ends and displays the following at random during a goat harvest:

[string "..."]:2: attempt to compare number with nil


Whats causing that? People were having a similar problem but with line 13 or something. Does it have anything to do with loot timers or..?
Basically, as I understand it, RoMScript has a timer that says 'if it doesn't get a response in x time then return nil'. That time has been increase lately so it should happen less often but it can still happen. What I usually do, when I'm expecting the value not to be nil, is something like this;

Code: Select all

repeat value = RoMScript("ingame command") until value ~= nil
Also getItemCount can cause nil errors that's why I changed them to itemTotalCount in version 1.2 of the egg script.

Here's an updated version of my milk script with the same changes I did to the egg script to avoid nil errors. Both my scripts are now at version 1.2.

Re: Bot losing control and getting "stuck". Have a looksee

Posted: Sun Aug 01, 2010 5:28 pm
by Wundervice
I've been in missouri awhile and still some more days but thanks for the update I will give it a try when I return home. I will let you know how it goes with my char walking and then with it running.

Until then, thanks for the assist and the excellent work.

EDIT: Oh yeah, setting it to quickturn was a great idea. Handled the control issue just fine.