[Release] Grepolis 2 bot

05/28/2011 15:24 Quigonjeen#331
sorry but this happend without need of farm or warehouse it is 3 days that I tryied evrything beacause the building is allways the same entrepot in french I play the french version that is warehouse, each time I start a new queue and I save it, the first building is warehuose, I hoped that in this version the problem was solved because it was the same with 1.15 anyway at my developpement stage I do not need more warehouse, Ihave 5518 in size of warehouse and the other buildings need 2800 at least
05/28/2011 15:41 Utharnl#332
At the moment the bot will add an extra warehouse when all those requirements met:
-You don't need a farm
-The first building in the building queue (bot) is not a warehouse
-The building queue (ingame) does not contain a warehouse
-You have enough resources to build a warehouse
-Your warehouse isn't at his maximum level yet

Because of those checks it works most of the times perfect, but in your case it has just a small problem. I would suggest to just keep the bot running and the problem will be solved when the warehouse is complete.

~Uthar
05/28/2011 15:50 Quigonjeen#333
there is a way do not get a warehouse on first built? I do not need it at the moment
05/28/2011 15:51 Utharnl#334
Oh the warehouse is also displayed in Building queue (bot)?

~Uthar
05/28/2011 15:57 Quigonjeen#335
no just the first building in queue (bot) became warehouse, exemples first in queue senat +temple+anything else result in game queue warehouse, senat disappeard from bot queue, it seems to me that the first building in the bot queue became always warehouse is not warehouse +senat+temple but warehouse+temple+anythingelse
05/28/2011 16:05 Utharnl#336
The bot doesn't change anything in the Building queue (bot), it will never add a warehouse in front of that queue.
When the bot thinks you need a warehouse it will immediately add it to the building queue (game), you won't see this in the building queue (bot).

Does that explain your problem?
I'll have to go now, will check your answer tonight.

~Uthar
05/28/2011 20:06 Quigonjeen#337
it is not correct that you do not believe me, it is something that do not work with bot, I have a warehouse size10 silver 24 stones 24 wood 27 senat 16 farm 12 temple 10 and I started 5 minutes ago a building queue (bot) wirh senat+stone+wood+silver +temple and I savec like this, when I came back I founded in the game queue warehouse+stone+wood+silver+temple and I did it 10 times and the result was alway do the same, why do not believe me
05/28/2011 23:25 ouinouin#338
Quote:
Originally Posted by Towers View Post
For the sake of bot detection there needs to be a random 3- 10 second timer between farms. There is no way you could do all 8 farms in under 10 seconds.
yes !
05/28/2011 23:31 Utharnl#339
No worries Quigonjeen, it's not that I don't believe you. I only think it's very strange what your describe. Probably I understood it wrong but I'm sure we can locate your problem.

Let's first make sure we are talking about the same building queue, I'll use your example.
Building Queue (bot):
[senat][stone][wood][silver][temple]
Building Queue (Game):
[warehouse][stone][wood][silver][temple]

When the bot adds a new building to the ingame queue it will be added at the end, so your building queue will become:
Building Queue (bot):
[stone][wood][silver][temple]
Building Queue (Game):
[warehouse][stone][wood][silver][temple][senat]

As long as you are building the warehouse it will always be in front, new buildings are always added at the end.

I hope I understood it correctly, if not please explain it again and I'll try to help you.

//edit
@ouinouin
Working on it.

~Uthar
05/29/2011 00:32 Quigonjeen#340
I try to explain last timeok?
I start the bot then I chose the building queue(bot) senat+stone+silver+wood.........
the I save and I go to take a shower ok?
I came back and I found in the game queue warehouse+stone+silver+wood........
senat have disappeared and in place of senat I found warehouse, I hope Iwas clear if not I try to do better
thank you
05/29/2011 10:42 Utharnl#341
Ok, I understand that part now.
Two more questions thought:

-What did you Building Queue(Game) look like before took a shower? Was it empty?
-What did you Building Queue(Bot) look like when you came back? Was it empty?

//edit
I found the problem that is causing your senate to disappear. But haven't found a better way to decide whether or not the bot should build a warehouse.

~Uthar
05/29/2011 11:21 Fire2nd#342
Utharnl go to skype pls
05/29/2011 11:23 Utharnl#343
Sorry can't have to work in 45 minutes

~Uthar
05/29/2011 11:31 Fire2nd#344
ok....
05/29/2011 12:22 Towers#345
Ok one thing I've seen is alot of people have a problem with the size of the buildings. It even drives me nuts. How about you make the part of the panel that displays the Image and Target level box a flow layout panel. Make a new object that is used to display those two items for each building. You can increase the size, have no worries about display issues. Now you may get a wrap around, but for those don't have issues with icon size there can also be a setting to adjust the size.

Sort of make the entire a dynamically resizeable control based upon the width of the program. The wider the fewer that will be wrapped. The narrower the more control grows from top to bottom.