[Release] KryoBot FOE - Forge Of Empires Bot

07/28/2013 18:24 RGrand#1
KryoBot FOE
Forge Of Empires Bot

This bot is a side product of my current project. Therefore I wont say much about it. It's made for the game "Forge Of Empire". Some things wont work properly because the bot isn't finished yet. But it still works well.

KryoBot is a pixelsearch & image recognition bot. This means it needs the mouse to operate and
you can't do anything on your computer as long as it runs.

Features:
• Pickup gold
• Pickup supplies
• Starts production
• Train units (0.0.4)

Bugs:
none - yet

Requirements:
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
•AutoItX.dll ([Only registered and activated users can see links. Click Here To Register...])
•Fiddler2 ([Only registered and activated users can see links. Click Here To Register...])
•Latest modified game .swf

Tutorial part 1
1. Open Fiddler2
2. GoTo AutoResponder
3. Enable Automatic Responses
4. Tick Unmatched requests passthrough
5. Add Rule:
Code:
First gap:      regex:http://cdn.*.forgeofempires.com/assets/city/gui/citymap_icons/citymap_icons.swf
Second gap:    <PATH TO YOUR citymap-icons.swf>
6. Save

Tutorial part 2
1. Start Firefox
2. Clear BrowserCache
3. Log into Forge of Empire
4. Settings -> Disable Fog
5. Zoom out
6. Start Bot and switch to your browser
To close the Bot press the key "x"

Download Bot:
Alpha 0.0.5: [Only registered and activated users can see links. Click Here To Register...]
Alpha 0.0.5: obsolete (03.09.2013 - 27.11.2013) (expired)
Alpha 0.0.4: obsolete (26.08.2013 - 03.09.2013)[Only registered and activated users can see links. Click Here To Register...] Alpha 0.0.3: obsolete (28.07.2013 - 26.08.2013)

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

Virustotal:
The executable of my bot is to large for Virustotal. sorry..

Screenshots:
[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...]

~RGrand
08/04/2013 03:41 MAJ Madden#2
Think im not smart enough to do this install....tried to run the register_64bit batch file, but its trying to find it in an e:dropbox folder, and then it just closes.

are you making a version that loads everything?
08/05/2013 05:38 astrodog#3
appear to have problem registering dll, it registers but gets exception. module was loaded but the call to dllregisterserver failed with code 0x80070005
also when starting application get
"exception in thread main com.jacob.com.comfailexception
from progid
at java.lang.void.<unknown><unknown source>
at java.lang.void.<unknown><unknown source>
at java.lang.void.<unknown><unknown source>
at java.lang.void.<unknown><unknown source>
I do see the trap working in fiddler.
08/05/2013 13:31 RGrand#4
@MAJ Madden:
try to copy the AutoIt folder to desktop before executing.
Yes there will be a self installing version some day.

@astrodog:
Cause:
This behavior may occur if you try to register a DLL by using Regsrv32 while
you are logged on using an account that does not have administrative
credentials, such as an account that is a member of the standard users group.
An account that does not have administrative credentials cannot write to the
registry or change files in the System32 folder.

-------
The easiest solution for both of you is to install AutoIt (Google: AutoIt)

~RGrand
08/06/2013 06:19 astrodog#5
Thanks for the help
Got the dll registered and I got farther. Here is where I am know:

_ __ ____ _
| |/ / | _ \ | |
| ' / _ __ _ _ ___ | |_) | ___ | |_
| < | '__| | | |/ _ \| _ < / _ \| __|
| . \| | | |_| | (_) | |_) | (_) | |_
|_|\_\_| \__, |\___/|____/ \___/ \__|
__/ |
|___/

[KryoBot Engine]: KryoBot Engine by RGrand @ elitepvpers.com
[KryoBot Engine]: KryoBot Engine Version 0.0.3 Alpha
[KryoBot Engine]: Customized for Forge Of Empire
[KryoBot - Forge Of Empire]: Bot ChangeState::Started
[KryoBot - Forge Of Empire]: BotFunction Collect | ...
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: C
:\Users\xxxxx\AppData\Local\Temp\javacpp1682580608 85349\jniopencv_core.dll
at java.lang.Void.<unknown>(Unknown Source)
at java.lang.Void.<unknown>(Unknown Source)
at java.lang.Void.<unknown>(Unknown Source)
at java.lang.Void.<unknown>(Unknown Source)

The directory for the javacpp168258060885349\jniopencv_core.dll is empty.
08/06/2013 12:47 RGrand#6
Install both runtime components of Microsoft C++ 2010:
[Only registered and activated users can see links. Click Here To Register...][Only registered and activated users can see links. Click Here To Register...]
~RGrand
08/06/2013 20:42 moisesmetal#7
Hello, I did all the configurations of the mouse arrow is on the left at the top and not do anything else. what could it be?
08/06/2013 21:15 RGrand#8
Make sure hat the game looks like this:

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

If not:
•Make sure that Fiddler2 is running properly
•Clear BrowserCache (while game is not running)
•Restart Forge of Empires

~RGrand
08/06/2013 23:21 moisesmetal#9
Now is giving this error: Failed to load startup/startup
08/07/2013 00:22 RGrand#10
Make sure that the second gap in the rule is referring to an existing file

~RGrand
08/07/2013 06:40 astrodog#11
Got it working. Added c+ runtimes. Seems to have issues with some of the Progressive Era buildings , icons have been replaced with yours, but select is missing sweat spot and selecting wrong building.. Is there anything I can send you? Also icons on market place for PE are missing.

thanks for all the hard work you have put into this.
08/07/2013 21:29 RGrand#12
Prepare your city accordingly and send me a screenshot(unmodified size) over PM.

~RGrand
08/13/2013 05:52 astrodog#13
Any update for P.E. housing collection to test ?
08/13/2013 22:21 RGrand#14
The Update is ready to release.
Unfortunately, I'm on vacation and my teamviewer server crashed.
This means that I can only update it when I'm back home.
However, I am trying to find a quicker solution.

~RGrand
08/13/2013 23:41 Drefsab#15
I'm sure I've followed the process correctly though I get Failed to load startup/startup

Is this something that is going to be addressed in the new version?