Grepolis bot (Now with attack option)

03/08/2010 13:23 Unghiutza#106
Uthar any news on the attack option ?
03/08/2010 13:50 Utharnl#107
Maybe it is done today.
Listing all farmer towns is working. (With mood and strength info)
Listing all available army units is working.

But still have to make a few things:
Send units to target.
Save which target you are attacking and remove again when attack is done.
And some testing if this is done


//edit
An other thing is complete now:
Save which target you are attacking and remove again when attack is done.

Going to do the last part this evening


//edit
And there it is :D

Version: 1.6 Date: 10-03-2010
-Added option to attack farmers

It still need some testing and tweaking but it seems to work fine.
If you got any problems you can report them here in the forum.

ps. Will rewrite the howto guide in my start post soon to explain this new option. But here's the short version already:
-Start the bot
-Login
-View->Army (Choose how many units you want to use for the attacks on the farmers)
-View->Settings (Turn "Attack farmers" on. Change the attack delay if you want. Change the minimum mood and strength of the farmers).
-Actions->Start


//edit
I let it run last night but found a few problems.
-Building queue doesn't seem to work
-Mood/Strength farmers isn't updated after attack

Going to fix this today.

~Uthar
03/10/2010 22:59 Utharnl#108
Fixed the issues of 1.6

Version: 1.6.1 Date: 10-03-2010
-Added option to attack farmers
-Fixed problem with building queue
-Fixed problem that mood/strength info of farmers wasn't updated

~Uthar
03/11/2010 14:17 Donging#109
can u also push the strenght?

it would be fine if this works for the 2nd city too....
03/11/2010 14:53 Utharnl#110
It's not yet possible to push the strength but that's coming soon.
Support for a second town could take a while because I don't have any account with more then 1 town. But going to work on that as soon as I have my second town.

//edit
Small bug fix.
Army units weren't updated correctly

//edit
Looks like the building queue still has some problems.
New version coming this evening/night

~Uthar
03/12/2010 17:56 SlayerABC#111
it doesn´t work on the new world hyperborea can do it work?
03/12/2010 18:09 Utharnl#112
No idea why it shouldn't work.
Did you use de7.grepolis.com in your settings file?

//edit
Tested it and you are right, doesn't work on the de7 server.
Will upload a new version so that it works

//edit
New version uploaded.
Works now too on German server Hyperborea (de7)

~Uthar
03/12/2010 21:08 Beastygirl#113
The Bot got a problem when it counts my army. The debug-file says that.....

12.03.2010 21:01:00 Der Index lag außerhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.
Parametername: index

.....................
************** Ausnahmetext **************
System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er muss nicht negativ und kleiner als die Auflistung sein.
Parametername: startIndex
bei System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, Int32 count, CompareOptions options)
bei System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex)
bei GrepolisBot.Form1.countArmyResponse(String p_Response)
....................

Hope that info will help you.
03/12/2010 22:17 Utharnl#114
@Beastygirl
Do you get that error everytime?
Because I have the bot running atm and haven't any problems.

And do you know when you got the error?
As soon when you started the bot or when it was running for some time?

~Uthar
03/12/2010 22:47 SlayerABC#115
at view army there are not the speacial units supported, can you do that harpies are supported? and the other units too?

sry for my english
03/12/2010 23:43 Utharnl#116
No problem Slayer.
But the special units will take a while. As soon as I have them myself I can test how it works.

Also uploaded a new version some minutes ago.
Gives better debug info and reconnects automatic when you get disconnected from server.

~Uthar
03/12/2010 23:45 SlayerABC#117
thx and i have a question. can i use a bot on the same time on two worlds?
and on which world do you play?
and a last question^^ can you speak german?^^
03/13/2010 00:15 carl douglas#118
hi,i'm from poland and i got problem-i don't know what i have to write in 'settings'.I'm playing in polish server.further in this line 'nl.grepolis.com;nl1.grepolis.com'.I need only change 'nl.grepolis.com' in 'pl.grepolis.com'?thank you in advance and greet

BTW:sorry for my english :)


//EDIT:

already advised but thank you
03/13/2010 00:21 Utharnl#119
Not sure if that works.
You could try it with version 1.6.4 If it doesn't work it will show "Reconnect" in the statusbar.
(Also you need to copy your bot directory. Because you need two different settings.txt)

My German isn't very good. I can read/understand it a bit, but not enough to write/speak in German. So let's keep it English :)

I have almost on all servers an account now to test it but most of them are very weak. Most of the time I play on nl1, that town is doing fine.

~Uthar
03/13/2010 00:37 SlayerABC#120
i test it over night with using on 2 worlds on the same acc