Jester87's Bot Tutorial For Newbies

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Re: Jester87's Bot Tutorial For Newbies

Postby Jester87 » Tue Jan 17, 2012 3:45 pm

exiva wrote:
Jester87 wrote:
BangPow wrote:Jester thanks for all your help. Thank you for putting up with my dumb ass.


No problem. Sorry I had to go to bed.

You'll want to make sure the bot script is placed in the scripts folder, and you will want to make sure it has a .groovy extension. After that, while you are in game hit colon ":" and then set_bot1 logger_bot

Or you can rename your bot to something simple like logger.


It is in script folder with groovy extension already and I just tried placing the ":" before the command and it didn't make any difference.


Make sure you saved the script as .groovy . Sometimes if you save in text editor, it saves as .txt. You have to select save as all files sometimes.

Also, try running one of the other groovy bots that came included and see if it changes.
User avatar
Jester87
 
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Postby exiva » Tue Jan 17, 2012 6:06 pm

Jester87 wrote:
exiva wrote:
Jester87 wrote:
No problem. Sorry I had to go to bed.

You'll want to make sure the bot script is placed in the scripts folder, and you will want to make sure it has a .groovy extension. After that, while you are in game hit colon ":" and then set_bot1 logger_bot

Or you can rename your bot to something simple like logger.


It is in script folder with groovy extension already and I just tried placing the ":" before the command and it didn't make any difference.


Make sure you saved the script as .groovy . Sometimes if you save in text editor, it saves as .txt. You have to select save as all files sometimes.

Also, try running one of the other groovy bots that came included and see if it changes.


Yep, It's a groovy file 100% sure.
Couldn't run any of the other groovy bots either that came included.

Only thing that does something is f1 + f2.. Think they calculate the distance between 2 tiles i choose.. or offset or w/e.
exiva
 
Posts: 3
Joined: Tue Jan 17, 2012 7:10 am

Re: Jester87's Bot Tutorial For Newbies

Postby sabinati » Tue Jan 17, 2012 7:01 pm

are you typing the commands into chat window? don't do that. click on the ground and type a colon : followed by your command
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Jester87's Bot Tutorial For Newbies

Postby danvath » Tue Jan 17, 2012 11:31 pm

I'll give it a go at figuring out how to get it to grab logs first, and then if no logs find trees to chop.
danvath
 
Posts: 84
Joined: Fri Nov 26, 2010 2:05 am

Re: Jester87's Bot Tutorial For Newbies

Postby BangPow » Wed Jan 18, 2012 12:26 am

So the bot will some times hearth back and stock pile the logs, sometimes he will pick up a log and just stand there... how can i fix this... and is there a way to make him remove the stumps to?
says: pathfinder error: object ID is null!!!! when it stops
Before enlightenment - chop wood, carry water. After enlightenment - chop wood, carry water. ~Zen Buddhist Proverb
User avatar
BangPow
 
Posts: 427
Joined: Tue May 31, 2011 4:15 am
Location: Now.......... Awakened

Re: Jester87's Bot Tutorial For Newbies

Postby Jester87 » Wed Jan 18, 2012 3:47 am

BangPow wrote:So the bot will some times hearth back and stock pile the logs, sometimes he will pick up a log and just stand there... how can i fix this... and is there a way to make him remove the stumps to?
says: pathfinder error: object ID is null!!!! when it stops


Yeah thats the problem I've been having. I am not sure why it happens, though. Sometimes the bot will bring back 20+ logs, sometimes 3. Maybe we need to add something to the code to double check that the log is dropped or something.
User avatar
Jester87
 
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Postby BangPow » Wed Jan 18, 2012 7:27 am

How do we do that?
Before enlightenment - chop wood, carry water. After enlightenment - chop wood, carry water. ~Zen Buddhist Proverb
User avatar
BangPow
 
Posts: 427
Joined: Tue May 31, 2011 4:15 am
Location: Now.......... Awakened

Re: Jester87's Bot Tutorial For Newbies

Postby Jester87 » Wed Jan 18, 2012 2:40 pm

BangPow wrote:How do we do that?


I'm not sure yet.

Also, it appears that the bot has a memory leak. :cry:

Anyone good at fixing memory leaks?
User avatar
Jester87
 
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Postby Jester87 » Wed Jan 18, 2012 5:15 pm

I figured out the "Pathfinder ERROR: object ID is null!!!!" error. It simply means there are no more trees left to cut in the immediate area. :lol:

We can probably solve this by injecting a tree finding subroutine which is run before setting the target on a tree. As it stands now, it searches for a tree, and then sends that coordinate to the pathfinder to go over and chop it. When there are no trees around, the coordinate is blank, and thus the pathfinder is confused because it can't go to a blank coordinate.

Does that make sense?
User avatar
Jester87
 
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Postby BangPow » Wed Jan 18, 2012 7:10 pm

Ok, that makes sense. If you get it fixed, post up the script.
Before enlightenment - chop wood, carry water. After enlightenment - chop wood, carry water. ~Zen Buddhist Proverb
User avatar
BangPow
 
Posts: 427
Joined: Tue May 31, 2011 4:15 am
Location: Now.......... Awakened

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 0 guests