Grepolis bot (Now with attack option)

10/04/2010 22:06 Aadnan#871
Hmmm i'll try at my friend's PC
10/06/2010 05:07 gronga#872
Heya, first off, great program. Just want to get that out there.
since 1.9.5 came out theres been some connection issues. I couldn't connect at all, until I looked into the settings.txt file...
Here is what mine says:
;;7;;;False;debug.txt;settings.txt;True;6;90;40;Tr ue;0;True;False;70;100
yeah, well thats not going to work is it?
I replaced it with my original (yes I saved it before the install)
MyName;MyPassword;4;en.grepolis.com;en4.grepolis.c om;True;debug.txt;settings.txt;True;11;85;50;True; 0;True;True;70

This works. However, if I make a change to my build list and try to save it, I get prompted with a "Are you Sure" message. If I choose yes, it erases the settings.ini, and replaces it with the blank info.
Occasionally, it just replaces it anyway and Iget the 'cannot log in' error.
I'm running Win7 x32 so the .net should be correct.

From the deguglog:
10/3/2010 10:35:19 PM Exception in loadSettingsRequest(): Index was outside the bounds of the array.
10/3/2010 10:35:35 PM The remote name could not be resolved: 'en.grepolis.com'
10/3/2010 10:35:35 PM Connection to server lost. Reconnect in 60 seconds
10/06/2010 20:47 Utharnl#873
@gronga

Your settings.txt file is only saved when you goto View->Settings and press OK.
The "Save" button you are talking about saves only information about your town, including:
-Farmers
-Army
-Buildings

Could you go to View->Settings, enter your username/password and press OK. Your settings file should be fine then.

~Uthar
10/07/2010 00:59 Battal Gazi#874
Still the reconnect issue. I will now kill my notebook and try ist after complete new installation of Windows. But first I will check the bot on my PC.
10/07/2010 07:06 Utharnl#875
@Battal Gazi

I'm tracking a new bug at the moment which is caused by invalid farmer information. Which could be given the same error as in your debug file.
Quote:
Exception in attackFarmer(): Die Eingabezeichenfolge hat das falsche Format.
Could you try to find out on which town it disconnects?
You can do this by watching the last town name in the statusbar before the disconnect.
If it's possible go to View->Farmers of the bugged town and compare the names with the one ingame. Let me know if they don't match.

~Uthar
10/07/2010 20:41 Battal Gazi#876
Hi Utharn,

I located the corrupt city. It was the last city in my list. The farmers do not match in the bot with the farmers in Grepolis. I closed the bot, renamed my cities and started the bot again. Logged in, set the army to max as usual and clicked on start. The bot did run until this corrupt city and lost connection again and said "reconnect in 60 seconds".

I tried several things:
I unchecked first all the farmers of that corrupt city, applied and closed this settings, started th bot again, and again reconnect in 60 seconds as the status bar showed th name of this city. Shit.

Then I recognized that all minus 1 farmers of this city was checked again! But I unchecked them. So, I unchecked again, applied and closed this view. But this time I opened the farmers again and all tickboxes were still checked!

Then I recognized that these farmers are farmers on an another island of me!! I unchecked now first the farmers of the other city and than the farmers of this corrupt city. And they stayed unchecked. Great.

I started the bot again and again reconnect as the status bar reached this shitty city. Why? All boxes are still unchecked. He should not try to send my army to that farmers.

How can I correct these wrong farmers information? I checked the farmers.txt (the number of my city in that file with the city number in grepolis and it matchs).

Do you have an idea why these farmers are doubled? I believe the bot does not save the names of the farmers, or does it? It should retrieve the names of the farmers after every start completely new from the server.

Can you fix this problem as it seems to affect more and more players? Or is there a possibility to deactivate this corrupt city completely to enable the bot to work on all my other cities?

I need your help, please.
10/07/2010 21:04 Utharnl#877
@Battal Gazi

I'm currently looking for a solution. It's not going fast because I haven't any problems myself. But I'm in contact with someone that does have the problem and I hope to find it this weekend.

Unfortunately it hasn't to do anything with your settings, so you can't fix it on your side.

It looks like the html code is different for some towns/Islands for some reason. First I thought town names with special characters were causing it but that was not the case.

Quote:
Do you have an idea why these farmers are doubled? I believe the bot does not save the names of the farmers, or does it? It should retrieve the names of the farmers after every start completely new from the server.
Yes that is correct, the bot retrieves the information every time. The only information that is saved is which farmers you want to attack.

//edit
One more thing you could try besides unchecking the checkboxes of the farmers is going to View->Army and set everything to 0 for the bugged town.

I'll send you a pm with some questions regarding the problem.

~Uthar
10/08/2010 20:08 LouisQ#878
Der Programmierer spricht zufällig Deutsch? Wenn ja, hätte ich einige interessante Informationen für ihn. Bitte mal melden. Danke.
10/08/2010 22:11 Utharnl#879
@LouisQ
I can only understand it a little bit, but not good enough to reply whole messages in German. Reading a short message in German is no problem though.

~Uthar
10/09/2010 21:55 Battal Gazi#880
Utharn, replied to your PN and sent you an email.
The other issue with unchecking the army I will try and report if it works.
10/09/2010 22:06 Battal Gazi#881
Utharn, it did not work. I did not set any value in for the army of my corrupt city.
It was already zero as it is, when you start it. And again, as the status bar reached that city, it lost connection and said "reconnect in 60 seconds" Aaaaarghh. I can´t read it anymore.
10/10/2010 23:18 ikdestudent#882
I want to farm my opponents aswell, ONE BOT TO FARM THEM ALL !!!
10/11/2010 06:42 XS1CHT#883
ty ++++++
10/12/2010 19:01 youngpopal#884
i dont see the building queue time? is that mean that my queue is not working?
10/12/2010 23:49 Skeletor99#885
Hi Utharn,

would it be possible to make a seperate window where you can play grepo and the bot is working at once? Like in the grepolisNET bot?

That would be perfectly!