How do I make a farming bot work?

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.

How do I make a farming bot work?

Postby eightbitman » Fri Aug 24, 2012 8:36 am

First, this is not a post about the "morality" of botting. If you want to talk about that there's more appropriate places. I am asking questions about bot assistance(after spending several hours reading different forum posts and trying to get the bot to do anything besides wander around a bit). I have the pande client and the groovy client. I have both because the forums say that groovy is inferior, but it is the most prominent post on botting. At present I have not been able to successfully get the bot to perform any kind of farming, which is my interest. Due to a disgraceful lack of documentation there's no easy way of understanding the code base, unless I've missed some obvious API file that explains the use and function of the code without having to look line by line through every single file in a 50 mb download. Can anyone help me?
eightbitman
 
Posts: 23
Joined: Mon Jun 04, 2012 11:42 pm

Re: How do I make a farming bot work?

Postby brohammed » Fri Aug 24, 2012 10:46 am

Drink bleach.

BANNED 7 DAYS
Last edited by sabinati on Sun Aug 26, 2012 2:43 am, edited 1 time in total.
Reason: no
User avatar
brohammed
 
Posts: 526
Joined: Sun Jun 20, 2010 2:41 pm

Re: How do I make a farming bot work?

Postby joojoo1975 » Fri Aug 24, 2012 5:47 pm

brohammed wrote:Drink bleach.


+1

BANNED 7 DAYS
Last edited by sabinati on Sun Aug 26, 2012 2:44 am, edited 1 time in total.
Reason: -1
To Protect The Helpless From The Heartless
User avatar
joojoo1975
 
Posts: 2262
Joined: Mon Sep 28, 2009 5:23 pm
Location: no where specific

Re: How do I make a farming bot work?

Postby mvgulik » Fri Aug 24, 2012 5:49 pm

(reported "Drink bleach" post as [troll]. and will ignoring any additional comments on this part.)

For starters you need some general coding experience. (unspecified)
Than you need to get acquainted with Groovy(Java flavor) coding. (unspecified) (or, I think, just Java for Arksu type clients)
... Or ask if someone sends you something working per PM ...

Pande client: there is not such modded-client as far as I'm concerned. (CQ: "Pande client+res pack": contains two modded clients. see
Game Clients ... topic, if not seen already. And update the Kt-client parts with the one available on github. As it has a newer Doc help file.)

Groovy client: Assuming Groovy-Bot. (as there is also something called Groovy-maid, which is technically not really a client. See same topic as specified above for link.)

For a full blown farming bot: Erm ... that's a bigger task I currently like to remember.
mvgulik
 
Posts: 3775
Joined: Fri May 21, 2010 2:29 am

Re: How do I make a farming bot work?

Postby eightbitman » Fri Aug 24, 2012 9:33 pm

mvgulik, thank you very much for the reply. I haven't looked at groovy maid yet, so I'll give that one a chance. I'm a little worried about it though because the last comment in the groovy maid thread was a request for API, which has no answer as far as I can tell, and is the major stopping block to my ability to write a proper "harvesting" and "planting" bot. I know enough software that I can bang out a shitty script to plant crops, harvest crops, and do the other basic tasks a farming character would need to do, but the reason I haven't done this yet is because I can't seem to find documentation on what the arguments for the methods and classes are, and having to figure it out by hand is a major turn off. If nobody has any documentation on how to use this bot I'd actually be tempted to write one up, because it's fucking shitty as hell to waste time pouring over thousands of lines of code just so I can write a shitty farming bot
eightbitman
 
Posts: 23
Joined: Mon Jun 04, 2012 11:42 pm

Re: How do I make a farming bot work?

Postby foomanchu » Sat Aug 25, 2012 1:47 am

no need to pour over thousands of lines of code
download the "pande client" package.. (it contains 3 clients)
in the scripts folders you will notice a few farming bots.. just modify the row/columns variables and you should be good to go.
if you want to make your own custom farming bot (preferable), just copy and paste some useful functions from said scripts into your own. all syntax, functions, etc can pretty much be understood and ripped from there to serve your own purposes. adding new features to your scripts are just as easy as checking other scripts and using them as guides for either understanding or copy/pasting
foomanchu
 
Posts: 121
Joined: Wed Jun 29, 2011 6:13 am

Re: How do I make a farming bot work?

Postby eightbitman » Sat Aug 25, 2012 1:56 pm

Having looked through all of those links and many others on the wizards tower I'm beginning to notice a serious deficiency in anything like a proper tutorial of how to use any of these tools. As I said in my first post I downloaded the pande client and the groovy bot already and have been trying to get them to do anything at all, but the most I've managed is to run some random script that did very little in the groovy bot client. This is after reading through each of the threads several times. I will go through them again to see if there's a decent explaination of which scripts do what, or if there's some proper tutorial somewhere, but this situation is looking more and more hopeless. Can anyone help explain this in a simple and straightforward way? Here's a few points of confusing I'm having, I have more questions, but these are the ones that come to mind. I'm really really hoping a brilliant individual will be able to help lay a beginning guide to how to get the basics of this to work, instead of pointing me to threads that aren't particularly informative beyond obscure problems that people who already got useful scripts running would have:

On the pande client, it's 3 clients, but does that mean they're separate, or do they are all available when you boot up the run file? If they are what do you type in the console to get the different scripts to run? Do the .bot files only run with one type, and the .groovy run with another? If this is the case, why does the groovy bot come with so many .bot scripts? The farmer script doesn't work, it is .bot, and I can't get it to do anything at all. It says "Script FINISHED" as soon as I run it, regardless of the extension name. If the pande client runs 3 different clients, and they're separate, how do you run them? Is there compiling that needs to be done by me? For that matter, does the groovy maid require me to compile it? If that's the case, will I need to grab the java SDK to even use it, or is there a pre-compiled version of it that will save me the hassle? Most importantly of all IS THERE A SIMPLE GUIDE FOR ANY OF THESE BOTS, OR AT LEAST A PROPER API?! I've searched high and low, and I see numerous requests for a proper API for each and every bot, but it seems like there's no API anywhere, or any kind of documentation. Is there some actual documentation, or am I going to have to go line by line to figure this whole thing out?
eightbitman
 
Posts: 23
Joined: Mon Jun 04, 2012 11:42 pm

Re: How do I make a farming bot work?

Postby borka » Sat Aug 25, 2012 2:11 pm

There is no "HnH Bot coding for Dummies" if you're looking for something like that. ;)

So you got to read the Bot threads over and over, have a look into the scripts (comments), read ScriptEngine.chm contained in Kthaven\docs, look if there's more than one "run".bat in pandepackage and do more experimenting yourself...

And don't scream ... if you can't manage it and are unpatient it's not others fault!
Last edited by borka on Sat Aug 25, 2012 3:09 pm, edited 1 time in total.
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: How do I make a farming bot work?

Postby eightbitman » Sat Aug 25, 2012 3:06 pm

borka, thanks for the reply. After fiddling around I was able to get the ktrun file to work. Sorry about getting worked up, having spent the past few days futzing around I was getting a bit stressed, but managed to get the little guy to harvest some stuff through a bot! So as far as I can tell there's different *run.bat files with prefixes on them for which bot client they are. Ktrun is best for me right now because it has the scripts right in the build menu, so it's easy to tell it to run them, and it has a harvesting bot included. Will have to mess around with it to do more sophisticated stuff, but this is a start. Thanks for the help y'all!
eightbitman
 
Posts: 23
Joined: Mon Jun 04, 2012 11:42 pm

Re: How do I make a farming bot work?

Postby borka » Sat Aug 25, 2012 3:13 pm

good you got it now - btw. if you had read the great posts foomanchu did in the mvgulik thread you'd known earlier ;)
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Next

Return to How do I?

Who is online

Users browsing this forum: Ahrefs [Bot], Claude [Bot] and 2 guests