Empire Craft Bot

02/17/2010 05:32 Zraelin#31
Quote:
Originally Posted by Volaxad View Post
I have a problem: after pressing "Start" the bot freezes(not right away, but after a couple of minutes or so). It works in the background (he is giving me lots of roses:handsdown:) but the whole GUI becomes blank, and the only way to stop it is to kill the process. I'm running Windows 7.
From first post:

Quote:
Originally Posted by Utharnl View Post
Known Issues:
-The interface will freeze every 10 seconds when bot is updating data.
It still works fine, just give it a moment!
02/17/2010 05:36 Zraelin#32
Utharnl,

Looking forward to seeing what you add in! And that makes sense, don't know why I was thinking would have to wait for whole city to finish.

/salute
~Zraelin
02/21/2010 22:35 Utharnl#33
It's going to take a bit longer to make 2.0
The login process is working again and the hero/town data.
Working now on scanning for incoming attacks and sending hero's away.

Will keep you updated

~Uthar
02/26/2010 08:30 PracticeMakesPerfect#34
does this work on s19? it gives me Exception in logIn(): Unable to connect to the remote server
02/26/2010 16:49 Utharnl#35
@PracticeMakesPerfect You get that error when there's a maintenance or if the server doesn't exist.
Could you check your settings file? Maybe there's a typo that causes you to connect to the wrong server.


//edit

Finally done with version 2.0
The functionality is the same as the previous version (1.63).

I rewrote almost the whole bot to make it faster and easier to add new functionality.
Also I fixed the interface freezes.

I have tested it now for two days and everything seems to work fine. But could use some feedback if it's working for you or not.
Now that this is done I will start working on some new functionality

~Uthar
03/01/2010 04:06 Zraelin#36
2.0 is consistently locking up for me on "Scanning for incoming attacks." The first time it ran through all cities successfully once, and then froze up, then future attempts froze on the first scan.
03/01/2010 09:20 Utharnl#37
@Zraelin
Too bad, looks like I still missed something then.
Could you give me some more information?
-Which options have you turned on?
-Which text is shown in the statusbar?
-Is there new information in debug.txt?

I will look for a solution this evening.

~Uthar
03/01/2010 16:48 airplane468#38
Thanks for the 2.0. The interface is not freezing any more.

I have the same problem as Zraelin. The 2.0 sotps at "Scanning for incoming attackes" (which is the message shown on the status bar). I have only enabled the "training mode" and "debug mode". However nothing is logged in the debug.txt

In addition, I use some extended ascii characters (ascii code greater that 127) as my cite names. The characters are not shown up correctly. I don't know whether this is the root cause.
03/01/2010 22:55 Utharnl#39
Thanks for the feedback airplane468
I found a problem related to your issue, the bot could hang when there were no rested hero's in town.
Uploaded 2.1 and it works fine now when there are no rested hero's in your town.
There could be more cases like this that the bot would hang but hope I fixed them all now :)

~Uthar
03/02/2010 14:56 Zraelin#40
I will test it out when I get home! Thanks once again for your work, and sorry I didn't log in earlier to see the request for debug info :(
03/02/2010 18:49 Utharnl#41
No problem Zraelin :) It's fine already that you reported it, could have taken some time otherwise before I had found it.

@airplane468 Forget one thing to say. The ascii characters aren't any problem, the bot only uses the townid which are only numbers. The town name is only used to show something on the GUI.

~Uthar
03/04/2010 18:33 airplane468#42
Thanks for the version 2.1.

I have tried it yesterday for over 5 hours. It was running good without any problem except getting 2 connection timeout. Probably the server was too busy. However even I chose 'continue', the program didn't look like "continue". It will be perfect if in case of connection timeout, the program can automatically re-connect and resume the execution.

I will use it for the coming Friday event to kill devils. Unfortunately the devils close to my cities were all killed yesterday. The remaining devils are 1+ hours away.

Looking forward the new features. Many thanks!
03/04/2010 18:40 Utharnl#43
@airplane468
The reconnection was already working in the 1.6 version but not yet with 2.1 it seems.
It's a bit hard to test, only when the server is busy/offline (maintenance). Or maybe I could just turn off internet when the bot is running..
Will look into it this weekend :)

~Uthar
03/07/2010 13:17 Kito#44
have a problem

************** Exception Text **************
System.ArgumentOutOfRangeException: Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at EmpireCraftBot.Form1.scanConstructionsResponse(Str ing p_Response)
at EmpireCraftBot.Form1.client_DownloadStringComplete d(Object sender, DownloadStringCompletedEventArgs e)
at System.Net.WebClient.OnDownloadStringCompleted(Dow nloadStringCompletedEventArgs e)
at System.Net.WebClient.DownloadStringOperationComple ted(Object arg)

my os is windows 7 64 bit , maybe a framework problem?
03/07/2010 22:49 Utharnl#45
Using Win7 64bit myself and that works fine. Only framework you need is .Net Framework 3.5.

Do you remember when you got that error?
As soon as you started the bot or after it was running for some time?

//edit
One more thing, did you maybe have the game open in your browser when you got this error?

~Uthar