[Release] ForgeBot - Forge of Empires

07/21/2012 22:43 andypockett92#1
This is the bot i made for [Only registered and activated users can see links. Click Here To Register...]. It is still in development stages and might have bugs and errors.
Please post here any bugs or difficulties you encounter. as this bot was only tested by me, i need some feedback so i can create a more stable future version. Feature suggestions are also welcome.

Last version: v0.6.79.1208 (08.12.2012)

Download:
[Only registered and activated users can see links. Click Here To Register...]



Quote:
Changes in v0.6.79.1208:
White screen bug fixed.
Bot now connects to a second botserver if first one fails.
New option to choose default game server added (see settings).

Changes in v0.6.64.1207:
Bot now skips the waiting time before starting production if it didnt collect any production.
Added feature that detects specific buildings in order to click on them correctly.
Awesomium CPU usage is slightly lower now.
Bot now scans for a closebutton if the popup window isnt recognized in the first place.
Refresh option added.

How to use:
Launch the bot and wait for the website to load.
Once logged in you can start the bot.
Please make sure there are no open popup windows inside the game.
Also make sure you are zoomed IN. (the bot doesnt work if the game is zoomed out).

Settings window:(click to expand)


Building recognition:
The bot doesn't click some tall buildings? Enable building recognition in the settings menu. also make sure your building is listed there.

To add a new building in the list:
Basically you need to send me a '.png' picture of the building with the 'box' and/or 'moon' signs over it(usually when the production is ready).
Use the 'save Image' button from the bot to save a new image called 'userPicture.png' in the bot folder. Make sure this image has your building in it. Upload this image to a site which doesn't convert it to .jpg (imgur.com usually works) - optional: for multiple images you can archive them, then upload anywhere.
I will then analyze the image and update the building recognition list.



Make sure u have .Net Framework 4 installed.

Scan:[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]
07/22/2012 20:33 isnog00d#2
hi...just tested...out of 15 houses the bot clicked just 1!!!
So i think u need more work to do!!!
But no matter what u deserve a thanks,for the try!!
i hope v0.2 to be better!!
07/22/2012 20:43 Else#3
Why not use Backgroundworker? Or http requests for clicking?
07/23/2012 03:09 andypockett92#4
Quote:
Originally Posted by isnog00d View Post
hi...just tested...out of 15 houses the bot clicked just 1!!!
So i think u need more work to do!!!
But no matter what u deserve a thanks,for the try!!
i hope v0.2 to be better!!
did it say it detected only 1 house? or did the bot scan all the houses and didnt clicked all of them. im not really sure how to fix it unless i know exactly what happened - ill make a feature in the next version that will help me figure that out.

Quote:
Why not use Backgroundworker? Or http requests for clicking?
http requests wont work because the whole game is implemented in adobe flash player. a backgroundworker(or other thread functions) will probably be implemented in in the next versions to avoid freezing while scanning and clicking...
07/23/2012 04:24 Markal88#5
Hi this is good idea but i have problem.i have 4 buildings for diamonds what make supplies and all is ready for click and in bot log i see message find item 1 ,find item 2,after click only on this 2 supplies building and other 2 my supplies building not click and go next time wait for click..
07/23/2012 09:24 isnog00d#6
says that scanned item #1 #2 #3
and just click one..
the thing is that all of 15 were ready to be harvested.

[10:24:42] Bot loaded succesfully
[10:25:04] Page finished loading.
[10:25:23] Page finished loading.
[10:25:50] Page finished loading.
[10:26:55] Started scanning...
[10:26:58] Item #1 found
[10:26:59] Item #2 found
[10:26:59] Item #3 found
[10:27:05] Scanning done!
[10:27:05] Started clicking...
[10:27:05] Clicked item #1
[10:27:06] Clicked item #2
[10:27:06] Clicked item #3
[10:27:07] Bot: Done clicking!
[10:27:07] Bot: Idle for 5 min.

but only 1 was clicked..
[Only registered and activated users can see links. Click Here To Register...]

and the second scan
said about 5 scanned and clicked ,but just 2 actually
[Only registered and activated users can see links. Click Here To Register...]

and third scan
3 clicked
[Only registered and activated users can see links. Click Here To Register...]
07/23/2012 12:32 andypockett92#7
Quote:
Originally Posted by isnog00d View Post
says that scanned item #1 #2 #3
and just click one..
the thing is that all of 15 were ready to be harvested.

[10:24:42] Bot loaded succesfully
[10:25:04] Page finished loading.
[10:25:23] Page finished loading.
[10:25:50] Page finished loading.
[10:26:55] Started scanning...
[10:26:58] Item #1 found
[10:26:59] Item #2 found
[10:26:59] Item #3 found
[10:27:05] Scanning done!
[10:27:05] Started clicking...
[10:27:05] Clicked item #1
[10:27:06] Clicked item #2
[10:27:06] Clicked item #3
[10:27:07] Bot: Done clicking!
[10:27:07] Bot: Idle for 5 min.

but only 1 was clicked..

and the second scan
said about 5 scanned and clicked ,but just 2 actually

and third scan
3 clicked
you problem is that you zoomed out in the game...
zoom back in or the bot wont function correctly
07/23/2012 15:55 isnog00d#8
ok!!!gr8!!!
it works,on all buildings now!!!
-----
next step
add jobs in production line??
07/23/2012 20:35 Santosvlp#9
It workk :d
07/24/2012 16:56 WumpE78#10
Nice Work with AswBrowserFramework to run in Background

To the popup problem
-> after login save the URL
string for example:
http://COUNTRY.forgeofempires.com/start?nosession ->unlogged
http://CountryServerNumber.forgeofempires.com/game/index?login=1****** ->logged
-> for doClick() reload this saved URL 2 times

optimize the CPU usage
-> load the google url, while the duration timer count up
07/24/2012 18:56 Jame#11
Please give him a Thanks that he made one! It's the first one i see, respect!
Good work. :)
But he do also the jobs?
Or is he only for money?
07/24/2012 19:38 Markal88#12
i need help,bot is very nice,your work is great but i have problem,when i use bot and any player motivate my building or anything and in game i have warning bot stoped cliking on buildings..any idea how i can solve this problem?
07/24/2012 21:07 mkiiing#13
hei ^^
nice work !!
but would it be hard to do a version for mac ? ;)
07/24/2012 21:42 mahangsch#14
the bot doesn´t work at all... i have 16 buildings and it finds only 3 and it only picks the money of 1 building

Quote:
Originally Posted by andypockett92 View Post
you problem is that you zoomed out in the game...
zoom back in or the bot wont function correctly
how could I zoom in in this "browser" ?
07/25/2012 21:27 grinsefuchs#15
Hey,
i've another problem. I have a black screen in the right window after starting the bot.

[09:23:37] Bot loaded succesfully
[09:23:41] Page finished loading.

I play on a .de server. Has it something to do with this?
Or must I enter my logins anywhere before starting?

Greetz