Empire Craft Bot

04/28/2010 21:14 Utharnl#106
It's not that far yet, needed to fix a few bugs in an other bot. But started with it last Monday.
It looks like I can use some things from the other version but will write most of it from scratch because there are some things that could use improvement.


//edit
Also uploaded a new version of this bot. This version is harder to detect by the Empire Craft servers (Should they ever start scanning for it).

Version: 2.4 Date: 28-04-2010
-Improved anti-detection

~Uthar
04/29/2010 04:33 sksg#107
Hi
I did some debugging for this error (same Unhandled Exception) which i am receiving. These are the details:

Method getBuildingsResponse() in Form1.cs has some issues as this gives an exception. when i debugged it i found that it is failing at m_Towns[m_TownCycle]).Buildings[0];
This gives an error as l_index is -1 and because of this m_Towns was never set as it never into the loop.
Then i checked why it is not going into the loop. I found the p_Response does not have {<area title=\"} and so the value of l_index is always -1.
Let me know if you want the p_Response, i can send it to you or if you can explain what will be the possible replacement for {<area title=\"} .
Let me know if i can help in any way to help you resolve this issue.
Thanks to you again for this wonderful code.
SKSG
04/29/2010 20:22 Utharnl#108
Hey sksg thanks for the debugging.
The new Empire Craft servers are running an other version of the game then the older servers. This bot only works for the older version. s1-s19 and w1-w23.

I'm currently working on a new bot that works only for the newer servers. Some of the code I can use again but other things have changed too much that I have to rewrite it. (Like the example you posted above).

Haven't done anything yet about the building queue for the new version. So, I have no idea yet for what I have to look in the http response. When the new bot is ready I will start a new topic but will also make a notice for it in this topic.

~Uthar
05/01/2010 22:18 stobenhaf#109
1st I'd like to say, awesome bot, I thought I had posted before thanking you, but appears I haven't

Long time user of v1.63 and love the new upgrades. Just switched to 2.4.

Thanks again for the work! When I get some time I hope to view the code and figgure this thing out :)

Is this as far as you plan on upgrading the ECv1 bot?
05/02/2010 20:23 ray83#110
as far as them scanning for bots i have a feeling its comming bcz a web site hacked in to ec and did a mass mail about a bot so just keep and eye out !
05/02/2010 23:43 Utharnl#111
@stobenhaf
Np :) Good to hear you like it!
And yes, this bot has now all the features I wanted to add. Only doing some bug fixes when they are needed.
I will now focus on the bot for ECv2

@ray83
Thanks for the tip. Since version 2.4 the bot is a lot harder to detect. So even if they start scanning you should be safe if you aren't running the bot 24/7.

~Uthar
05/19/2010 05:38 red_death86#112
hows it comming along for v2 Utharnl and again as always great work on all of your previous bots
05/19/2010 14:26 Utharnl#113
The login process and collecting towns is working. And I'm working on a new heroes overview. Also I started on a new interface.
But haven't had any time the last weeks to work on it. Currently busy finishing my intership, probably haven't time for it until the end of June.

~Uthar
05/25/2010 16:34 jacko444#114
how can i upgrade buildings? im so confused. do i need to open the site?
05/25/2010 18:16 Utharnl#115
No, there is no need for that.
First you have to login with the bot and after that you only need to click the "add" button.

~Uthar
05/30/2010 17:06 sonecas#116
Hey, i just wanna ask when ur going to make the bot for w24+? =P cuz yesterday when i trying the bot i got that error that pop up when the bot starts and stop on the scanning buildings saying "unhandled exception has occurred" ^^ many thanks for building this bot and i wait patiently for the second release.

thanks, Sonecas
06/06/2010 09:22 LibertyHS2927#117
Quote:
Originally Posted by Utharnl View Post
Last updated 28-04-2010: v2.3

Please note that this bot is for version 1 of Empire Craft. This means that the following servers are supported:
  • s1-s19
  • w1-w23
Empire Craft II started with s20+ and w24+. Will make a link here when I have a bot for that version.

The purpose of this bot is to train your heroes by attacking devil troops. It’s also possible to attack other towns to increase your resources. As a protection for your troops they will be send away when you are under attack. Since version 2.3 there is also a building queue.

Current functionality:
-Unlimited building queue.
-Train your hero’s by killing the nearest Devil Troops.
-Possible to train multiple heroes in the same town.
-Attack towns near you to increase your resources. (See farms.txt)
-Flee when you’re under attack. (Uses farms.txt to choose a target)
-Automatic reconnect when connection to server is lost.
-Support for the Logitech G15 Keyboard. (Bot works fine without this keyboard).

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

Quick start guide:
-Click View->Settings
-Update settings
-Click Actions->Login
-Wait till bot is ready
-Click Actions->Start

Detailed guide:
This is the main interface of the Empire Craft Bot.
[Only registered and activated users can see links. Click Here To Register...]
Menu's:
-File: Exit
-Actions: Login, Start, Stop
-View: Settings, Hero ID's

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

In the settings menu you will find everything needed to configure your bot.
Please note that your password is saved in settings.txt.

Fields:
-User name
-Password
-Server: After you press the menu item Actions -> Login you can no longer change this.
-Farm mode: Your hero’s will attack all towns in farms.txt
-Training mode: All the hero’s that you enter in trainees will attack devil troops. The heroes that you are training will not be used to farm resources.
-Build Timer (Min.): The time in minutes between each check of the building queue.
-Debug mode: Will log messages to debug.txt that helps the developer identify problems.
-Log attacks: This will log all your attacks.

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

This is the Hero ID’s window.
Here you can see the ID’s you need to enter for the training mode.
There are two kind of id’s, a long one and a short one. If you just enter the one that is shown in this window it works.
Example short: [21780]
Example long: [362b1a3d-1b0b-495f-b507-ce60b7d937e0]

Enter all the id’s in the following format:
[id][id][id]
If you don’t use ‘[' and ']‘ it won’t work.
Example: “Trainees” [21780][21781][362b1a3d-1b0b-495f-b507-ce60b7d937e0]

How to use farms.txt:
Example:

The farms.txt file is used to know which towns to attack during farm mode or when you're fleeing.
In my case I have 5 towns, called Aydind Nicoba Tamara Renwol and Hartla. Behind each town name you can type the coordinates you want to attack. Those coordinates should always be 6 digits long.
The result is:
My hero's in Aydind will attack: 466185, 467188, ....
My hero's in Nicoba will attack: 502208, 498217, ....
....

Requirements farms.txt:
Each town should be on a new line
All coordinates must be 6 digits long. Use zero's if it shorter. Example: 000228 or 123001

As a final note, if you want to go to the game on your browser first pause the bot!

Release notes:
Version: 2.4 Date: 28-04-2010
-Improved anti-detection

Version: 2.3 Date: 18-04-2010
-Added building queue.
-Fixed small GUI problem

Click spoiler for older release notes.

Download mirror: [Only registered and activated users can see links. Click Here To Register...]
How can i invade?
06/06/2010 12:34 Utharnl#118
Hey LibertyHS2927, Did you read the text you quoted above?
But here's the answer :) Make sure "Farm mode" is turned on and that the towns you want to attack are in the text file farms.txt

See the example for farms.txt to make sure you use it correctly.

//edit
The first version of the bot for Empire Craft II should be ready around 20th June.

~Uthar
06/07/2010 00:23 LibertyHS2927#119
noo, i know how to attack, the thing i wanna know is if you can invade, like take another players city by just leaving it on... does that make sense? other than that your bot is amazing, thanks!

SF
06/07/2010 00:29 Utharnl#120
Ow sry, understood you wrong.
But no, it's not possible to let the bot do that.

It's a nice idea though, maybe i'll add it in the Empire Craft II bot.

~Uthar