Grepolis bot (Now with attack option)

04/13/2010 21:59 Psidawg#331
A barracks que would be great. I like the idea of training more army while I build my city and farm. Also a research que would be nice also. Thanks for the hard work. :)
04/15/2010 00:48 Stukkeman#332
Quote:
Originally Posted by FistOne View Post
[x] -Separate units for attack and support mode.

(and still production queues for the barracks would be soo awesome ;)
I agree:
1. Separate units for attack & support
2. Barracks queue

Fantastic work btw. Much appreciated.
04/15/2010 09:04 Sgarrista#333
I'd like the Queue for the barracks. :D
04/15/2010 20:04 alexgeo#334
i have a problem with gr server i download the 1.8.2 ver but i have problem to login..in settings.txt i have that myname;password;20;gr.grepolis.com;gr1.grepolis.co m;True;debug.txt;settings.txt;True;1;90;40;True;0; True;True;70 but i cant login...some help thnx
04/15/2010 21:32 FistOne#335
New idea! What about an army save function? The bot will check for incoming attacks and send all the troops away (supporting a target)... might that be possible?

Even though we're all cheaters, I'm not sure if this is too hardcore and if i would feel good using that. Just an idea ;)

@alexgeo: gr1.grepolis.co m;

remove the space?
04/16/2010 07:33 alexgeo#336
Quote:
Originally Posted by FistOne View Post
New idea! What about an army save function? The bot will check for incoming attacks and send all the troops away (supporting a target)... might that be possible?

Even though we're all cheaters, I'm not sure if this is too hardcore and if i would feel good using that. Just an idea ;)

@alexgeo: gr1.grepolis.co m;

remove the space?
no the space its ok i made a mistake with copy-paste...all its good
04/16/2010 07:48 Sgarrista#337
Made it would be a good idea to be able to bot in 2 servers at the same time?
04/16/2010 21:15 Utharnl#338
@alexgeo
Could you give me some more info about your problem?
What is the last message you see in the status bar? And is there any info in debug.txt?

@Sgarrista
Already possible with some extra work. Copy the bot to an other directory (including the text files). After that run the bot from both directories.


And about the votes. Both the barrack queue and separate units for attack/support were very popular. I will start with those two features first.
The other features will follow later, including the new suggested features (fleeing and attacking other players).

Will first finish the building queue I'm making for my Empire Craft bot this weekend.

~Uthar
04/17/2010 00:33 papari55#339
I get an Application error: The application failed to intialize properly (0xc00000135). Click on OK to terminate the application.

I am using winXP SP3, english. At first i thought i needed the latest version of firefox, i installed it but i get the same error... Maybe it needs net.framework 3.5? I am downloading it now.... If the developer could help i'd much appreciate it.


**EDIT: Problem solved after installing MS net.framework 3.5 as I predicted. Utharnl it would be better if you mentioned it on your first post, coz some old pc's (like the one I unburried from the attic) doesnt have it installed.

**EDIT 2: Im looking forward to the unit production queue.
04/17/2010 12:37 Utharnl#340
Yeah will add it to the start post. I thought I did that already but seems I only updated the post on my blog.

~Uthar
04/18/2010 09:35 Venessens#341
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.
Parametername: index
bei System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)
bei System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()
bei System.Collections.Generic.List`1.get_Item(Int32 index)
bei GrepolisBot.Form1.refreshBuildingLevels()
bei GrepolisBot.Form1.getTownsResponse(String p_Response)
bei GrepolisBot.Form1.client_DownloadStringCompleted(O bject sender, DownloadStringCompletedEventArgs e)
bei System.Net.WebClient.OnDownloadStringCompleted(Dow nloadStringCompletedEventArgs e)
bei System.Net.WebClient.DownloadStringOperationComple ted(Object arg)


************** Geladene Assemblys **************
mscorlib
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3603 (GDR.050727-3600).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
GrepolisBot
Assembly-Version: 1.8.2.0.
Win32-Version: 1.8.2.0.
CodeBase: file:///C:/Users/Computer-PC/Desktop/Desktop/GrepolisBot_v1.8.2/GrepolisBot.exe.
----------------------------------------
System.Windows.Forms
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Configuration
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3053 (netfxsp.050727-3000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3074 (QFE.050727-3000).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
mscorlib.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.3603 (GDR.050727-3600).
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
System.Windows.Forms.resources
Assembly-Version: 2.0.0.0.
Win32-Version: 2.0.50727.312 (rtmLHS.050727-3100).
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
04/18/2010 10:37 Utharnl#342
@Venessens
Did that error occur when you were being conquered?.
If so, I fixed that problem in the next version.

~Uthar
04/18/2010 11:49 KingM4x#343
hmm the bot always attacks the village which is far avay, how can i make him attacking the nearest village? I already tried it with the reverse attack order but then he attacks the village which is as far avay as the first, just located at the other side.
04/18/2010 12:12 Utharnl#344
At the moment that isn't possible. But in a future release it will be possible to choose which farmers you want to attack.

~Uthar
04/18/2010 12:24 KingM4x#345
So he randomly choose the farm? How does he decide which farm he attacks? And what software do you use to build? I tried it with Borland Delphi but i couldn't open your source-File...

I opened the file now with borland but, i think it doesn't show the complete text. Isn't it possible to create a variable for the distance between town and farm, or the position of the farm? I just want to understand how the bot choose the farm^^

MaX