Grepolis bot (Now with attack option)

06/12/2010 16:22 ceaserslegion#526
hello,

i have used this bot alot and i have just got the new version and it is having problems workin, i hate to sound like a newbie at this, i have teh correct server (main) and my setting correct, right password, but when i load it my debug file filled up with this

6/12/2010 11:39:02 PM Exception in attackFarmer(): Input string was not in a correct format.
6/12/2010 11:40:22 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:40:23 PM Exception in attackFarmer(): Input string was not in a correct format.
6/12/2010 11:41:43 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:41:43 PM Exception in attackFarmer(): Input string was not in a correct format.
6/12/2010 11:43:04 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:43:04 PM Exception in attackFarmer(): Input string was not in a correct format.
6/12/2010 11:44:24 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:44:24 PM Exception in attackFarmer(): Input string was not in a correct format.
6/12/2010 11:45:45 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:45:46 PM Exception in attackFarmer(): Input string was not in a correct format.

it is prob something very simple but if you could help you are a champion, i will try to answer any oter question you have (i am using .network 3.5)

Cheers mate
6/12/2010 11:47:05 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:47:06 PM Exception in attackFarmer(): Input string was not in a correct format.
6/12/2010 11:48:27 PM Connection to server lost. Reconnect in 60 seconds
6/12/2010 11:48:27 PM Exception in attackFarmer(): Input string was not in a correct format.
06/12/2010 20:17 c4t4lyst#527
I'm getting the same thing as above using en4. The bot sees my cities, buildings, farms, and troops, but it is unable to attack/support. Using .NET 3.5 SP1 on Vista.
06/12/2010 23:39 Utharnl#528
@ceaserslegion and @c4t4lyst could you open the army view? View->Army
And check if there are no empty text fields. (Also there should only be numbers here).
If you don't want to use an unit enter "0" otherwise enter how many you want to use. But the text field should never be empty.

This will probably fix your problem. Let me know what happens.

~Uthar
06/13/2010 04:22 ceaserslegion#529
thanx mate, look like it has worked, not sure i dont think i was doing it with the old bot but must have :)

Cheers
06/13/2010 17:07 c4t4lyst#530
yes, that was it for me as well. thanks!
06/14/2010 10:16 kingwill03#531
i cannot open the zip file with winzip or winrar. it says the file is damaged.
06/14/2010 10:26 Utharnl#532
Try downloading it again, it should work then. Or use this mirror: [Only registered and activated users can see links. Click Here To Register...] if you keep having problems.

~Uthar
06/15/2010 13:30 hombree#533
Works fine, BUT BUT for [Only registered and activated users can see links. Click Here To Register...] players go to settings.txt document and modify from [Only registered and activated users can see links. Click Here To Register...] (don't forget this is for en2 players)
06/15/2010 16:42 Cheatator#534
Suggestion for next version :

+add a label with the number of population free.
->with this feature, it's easy to know when we need to level up the farm ;)

+add a system who allow to make unit
->with this feature, we don't need to go in the web page of the game for build units.

+your system build checker is based to the check every X minutes. But after reflexion, why you don't base your system in the time left ? When time left is near 0 you make the request ?
->it's only a suggestion, not really needed ^^ (this suggestion is too for the attack units mode)

Best regards.
I continue my oGame bot project ;)
06/15/2010 19:18 Utharnl#535
@hombree
Not really necessarily to open settings.txt, you can also go to View->Settings to change your server. And I would recommend that you go to View->Settings after every update (and first time use) to configure the bot.

@Cheatator
Thanks for the tips. The first two are already a work in progress but will remember the third one for the future.
And gl with the oGame bot. I know someone who wants to help you with that, will send you a pm about it later today.

~Uthar
06/16/2010 12:45 Andastra#536
The bot don't work on the new grepolis version 1.15?

debug:
16.06.2010 10:49:03 Connection to server lost. Reconnect in 60 seconds
16.06.2010 10:57:17 Connection to server lost. Reconnect in 60 seconds
16.06.2010 11:08:38 HardCore Play: Building levels not found
06/16/2010 13:11 Utharnl#537
Can't test it right now but seems the latest patch made some changes in the html code. Will look for the problem tonight.

~Uthar
06/16/2010 17:20 predi2k#538
its the update 1.15 on german Servers or others - the bot musst patcht for this

can u do this great master of Bots? :handsdown:

if you release the source code of 1.8.8 i can look too - if i understand the changings ;-)
06/16/2010 21:32 Utharnl#539
New version ready, works now with patch 1.15

Version: 1.8.9 Date: 16-06-2010
-Fixed compatible issue with patch 1.15

~Uthar
06/17/2010 07:58 tinyphrag#540
Thanks for the quick fix. So was thinking about an addition you could make. First of all this one might possible make it a little safer to use, and that is a timer. A simple version could just be a small calendar with the option to select when to run. (Maybe a drop down box for month/day but I think there's a calendar object sorta like a textbox object that might make it easy). Another simple idea for that could just be a drop down box with hours/minutes and to run for however many hours/minutes are selected. Or even simpler, a text box with a minutes label and just toss in how many minutes to run for.

More complex versions could be run until a certain building has been made, or run until the building queue is done, or run until you've made a certain amount of resources.

I was also thinking that being able to build units would be awesome but that might not be very easy to implement.

Also a simple forum viewer would rock so that we could browse/post new posts on our alliance forums. I know that's a whole nother level of this bot that really isn't priority but it would make it so I didn't have to stop it as often but I'm sure there's many more important things to figure out first. Maybe if i saw the code for the latest version I might be able to figure something out.