Jester87's Bot Tutorial For Newbies

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

Moderator: Phades

User avatar
Jester87
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Post by Jester87 »

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.
w6: Diet Pepsi (RIP), Mountain Dew (RIP), Peppermint Bark

Bot Tutorial for Noobs - viewtopic.php?f=27&t=24881&p=307831#p307831

Mvpeh Song - viewtopic.php?f=7&t=24872
Parchir Song -viewtopic.php?f=7&t=24587
exiva
Posts: 3
Joined: Tue Jan 17, 2012 7:10 am

Re: Jester87's Bot Tutorial For Newbies

Post by exiva »

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.
User avatar
sabinati
Posts: 15527
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Jester87's Bot Tutorial For Newbies

Post by sabinati »

are you typing the commands into chat window? don't do that. click on the ground and type a colon : followed by your command
danvath
Posts: 84
Joined: Fri Nov 26, 2010 2:05 am

Re: Jester87's Bot Tutorial For Newbies

Post by danvath »

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.
User avatar
BangPow
Posts: 427
Joined: Tue May 31, 2011 4:15 am
Location: Now.......... Awakened

Re: Jester87's Bot Tutorial For Newbies

Post by BangPow »

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
Jester87
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Post by Jester87 »

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.
w6: Diet Pepsi (RIP), Mountain Dew (RIP), Peppermint Bark

Bot Tutorial for Noobs - viewtopic.php?f=27&t=24881&p=307831#p307831

Mvpeh Song - viewtopic.php?f=7&t=24872
Parchir Song -viewtopic.php?f=7&t=24587
User avatar
BangPow
Posts: 427
Joined: Tue May 31, 2011 4:15 am
Location: Now.......... Awakened

Re: Jester87's Bot Tutorial For Newbies

Post by BangPow »

How do we do that?
Before enlightenment - chop wood, carry water. After enlightenment - chop wood, carry water. ~Zen Buddhist Proverb
User avatar
Jester87
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Post by Jester87 »

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?
w6: Diet Pepsi (RIP), Mountain Dew (RIP), Peppermint Bark

Bot Tutorial for Noobs - viewtopic.php?f=27&t=24881&p=307831#p307831

Mvpeh Song - viewtopic.php?f=7&t=24872
Parchir Song -viewtopic.php?f=7&t=24587
User avatar
Jester87
Posts: 195
Joined: Mon Dec 12, 2011 8:19 am
Location: Hell

Re: Jester87's Bot Tutorial For Newbies

Post by Jester87 »

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?
w6: Diet Pepsi (RIP), Mountain Dew (RIP), Peppermint Bark

Bot Tutorial for Noobs - viewtopic.php?f=27&t=24881&p=307831#p307831

Mvpeh Song - viewtopic.php?f=7&t=24872
Parchir Song -viewtopic.php?f=7&t=24587
User avatar
BangPow
Posts: 427
Joined: Tue May 31, 2011 4:15 am
Location: Now.......... Awakened

Re: Jester87's Bot Tutorial For Newbies

Post by BangPow »

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

Return to “The Wizards' Tower”