Grepolis bot (Now with attack option)

04/23/2010 08:05 jago#376
i suggest you follow the instructions on page 1.

Quote:
Originally Posted by Utharnl View Post
Requirements
-[Only registered and activated users can see links. Click Here To Register...]
04/23/2010 10:05 FistOne#377
God hekagentes, wtf?! Check the start post. It's so easy.

So Uthar.. Any weirdness going on this night? :)
04/23/2010 12:04 Utharnl#378
Nope, haven't had any problems last night.

~Uthar
04/23/2010 19:07 tguts#379
i have gone back to 1.8.2..some recurring errors with 1.8.4 on english server
24/04/2010 3:07:26 AM Error in attackFarmerResponse(): Probably a corrupt http response(0)


******;******;20;en.grepolis.com;en2.grepolis.com; True;debug.txt;settings.txt;True;1;65;90;True;0;Tr ue;True;65


my wish list for it would be for me not to have to log on to see if ther is in game mail and to see what attacksa i have sent etc..

so
1.to be able to see if i a have new mail
2.to have a visual account of the outgoing attacks etc..
04/24/2010 08:14 Beastygirl#380
There seems to be a small bug with the separate support field. When I write in 1st town a.e. 25 Supporter and 65 Attacker and I opened the 2nd town than there i see also the 25 supporter.
The problem is when I change the supporter in one town the program changed it in all my towns. [ I remember that the same thing was when u included first time the army view ;-) ].

maybe u can look at this.

thanks for your hard work :-)




edith says: it would be nice some kind of log-file where i can see what actions the bot made ( maybe a separate window which can be set to visible/unvisible under the bot )

edith says again: I just saw the bot doesn't send any support troops ( Server is .de )
04/24/2010 10:34 webmekler#381
Works very well! Good Job ;]
My server - Polish s1

It's freeware so I'll public it on polish forum
04/24/2010 13:41 Utharnl#382
Important update regarding detection problems.
Version: 1.8.5 Date: 24-04-2010
-Fixed detection problem. Will be harder now for Grepolis to detect the bot.

@tguts
Working on a farmers overview now. Will show also if that farmer is under attack. I know I was first planning to make the army queue first but need the farmer overview first to locate some bugs.

@Beastygirl
Thanks for the reports will look in to it.

@webmekler
Sure, as long you don't forget to link this forum or [Only registered and activated users can see links. Click Here To Register...] so everyone knows were to find the latests updates.

//edit
Located the problem why support isn't working. For some reason bot thinks mood is always at 100%. Will fix this tonight.

~Uthar
04/24/2010 16:51 ruheto#383
I canīt open de file... I canīt extract from win zip and open the file... WHy are this?
04/25/2010 00:36 Utharnl#384
Do you get any error messages when you try extracting the files?

~Uthar
04/25/2010 12:15 IRoxasI#385
i cant chosse the server, the is an silver protection field... =(
04/25/2010 12:30 shadowolf25#386
Thank you very much for this great job, Uthar !

I would like to ask to include a function, if you think that it is possible, in a future release.

The Problem.
There is not a "box" in the settings menu to set the "Max. Strength (support)" that we want a farmer to have in order the bot not to send support after that ( lets say 95%).As a result , the bot keeps sending supporting armies to farmers even if their strength is 99%, but it would be better if this support has gone to a farmer with less strength.

To further expose the problem, as you have described to the [Only registered and activated users can see links. Click Here To Register...], there is Min. mood & Min. Strength for the attacking , but only Min. mood (support) for the supporting , where it should be (in my opinion) the "Max. Strength (support) " feature.

Min. mood The minimum amount of mood a farmer should have before you attack it.
Min. Strength The minimum amount of strength a farmer should have before you attack it.
Min. mood (support) The minimum amount of mood a farmer should have before you support it.
"Max. Strength (support) The maximum amount of strength a farmer should have in order to receive support. "

I've managed to locate two pieces of code that maybe help you further understand the problem.

Code:
public int getAttackableFarmer(String p_Mood, String p_Strength, bool p_Reverse)
public int getSupportableFarmer(String p_Mood, bool p_Reverse)
When the bot gets the supportable farmers , it doesn't receive as a parameter the "String p_Strength". It could be a comparison between the "String p_Strength" and the value the "box" of the settings menu "Max. Strength (support) " have, in order to limit the supporting to the desired ""window"" (from Mood=x to Strength=up to y). Of course it is not as simple as I present it , but I only mention it to you just to understand the problem.

Nevertheless if you think that this is not a good solution to the problem, what about making some priorities to supporting ,depending of the farmers strength? For example a farmer who have 99% strength will have small priority next to a farmer with 60% strength.

When you have the time, consider if you could do something about it.
Thank you very much once again for the great job you do !

~Sorry for my bad English~
04/25/2010 13:08 Utharnl#387
@IRoxasI
That field is protected after you press login. It works if you restart the bot and go to settings. After that press login.

@shadowolf25
Thanks for the feedback. Although I'm already working with a maximum strength for supporting (100%). But you are right this isn't included in the settings menu. Will add it in a future version so that you can choose your own value.


And the new version is ready. Highly recommended to update because of detection issues with previous versions (1.8.4 and older) and fixes the problem with switching between attack/support.

Version: 1.8.6 Date: 25-04-2010
-Added farmers overview.
-Fixed issue with switching between attack/support.

~Uthar
04/25/2010 16:07 remca#388
The new update is great, but i have a problem.

The Farmers List is incorrect, he shows me Farmers where not exists.

Bsp:

On the Island
Town A, Town b, Town C,

The Bot shows:
Town Z, Town g, Town Q

sorry for worst english, hope you understand my Problem.

greets, and great work
04/25/2010 18:07 Utharnl#389
Will be a bit difficult to find that problem. Only have one town at the moment, lost my other one :/
It worked find by me when I use it for one town. Maybe something goes wrong when switching towns, will look in to it.


//edit
Found the problem but don't have an idea yet how to fix this. But the problem should only occur when you have towns on more then one Island.

~Uthar
04/25/2010 22:29 XXXScarfaceXXX#390
Hi for the moment thank you for then bot offered! have problem with the new bot and cannot use, unfortunately, also any more older bots because he throws me always from server out!!! problem I have with all bots please around quick help ^^

soory me english is not so good ;-)

my server is a german.

Thanks for the help
Scarface