[Release] Grepolis 2 bot

05/09/2011 22:39 emina#166
utharn, i use your bot for grepolis for more than 1 year now. and it was a good bot.
but this bot for 2.0 is really the work of a genius. you are the houdini of the programmers.

respect.
05/09/2011 23:59 Utharnl#167
Thanks emina, it's good to hear that :D

~Uthar
05/10/2011 03:50 youdontknowme1#168
Quote:
Originally Posted by Utharnl View Post
No sorry, there isn't a good working Firefox component to use in .NET :(

//edit
Yeah!! :D Just managed to use the newest IE engine in .NET.
Grepolis works a lot better with IE 9.

It cost however some extra work on the users side. You need to have IE 9.0 installed and you need to change your register.

~Uthar
how do i go about changing the register?
05/10/2011 14:14 pcosmin#169
Hey,
in the next version, can you let the window resize ?
It would be useful in the browser to make the window bigger

Cheers
05/10/2011 15:57 Utharnl#170
In the next version the bot will be using IE 9.0, I recommend to install it if you want the bot to work properly. It will also fix the stackoverflow errors.

@youdontknowme1
I created a file for that, will be included in the next version.

@pcosmin
That's almost done, currently doing some tests.

~Uthar
05/10/2011 20:07 Unghiutza#171
Can't wait for it Utharnl. Currently, this browser is kinda moving slow and crappy :(, and sometimes when I click on a building or w/e it doesn't CLICK, and it's kinda annoying. And yeah, emina is right. You know Uthar that I am one of your first users that used your bots and always helped you with suggestions and feedback, but yeah, this v2 is a work of art :X
05/10/2011 21:44 Utharnl#172
It's ready Unghiutza, browser still acts weird sometimes but it's a lot better then before.

New features:
-Resize window
Bug fixes:
-Some timing issues with the farmers
-The bot wasn't using the latest IE version

~Uthar
05/10/2011 22:47 jmspaggi#173
Hi Utharnl,

Very good job. Beter than what I did ;)

Few "nice to have":
- Ability to see the resources of each cities to see if we have to much and need to spend it;
- Ability to setup a proxy ;) Nice to have the bot working at the office ;)
- Remove the tray-icon when the application is closed;
- Have some logs like "Starting construction of..." or "Recruiting 10 hoplites;
- Ability to run more than 1 bot on a single computer (When we are playing on more than 1 world).

I can find many other very usefull features if you want ;)

JM
05/10/2011 23:09 Unghiutza#174
IMO, the one with running more then 1 bot on a single comp is a must-have, cuz of new world opening tomorrow :), could you pop-up something like that by tomorrow uthar? :)
05/10/2011 23:14 Utharnl#175
Thanks jmspaggi, good to have an other programmer here!
Feel free to keep posting feature request if you think of something I'll post them all here:
[Only registered and activated users can see links. Click Here To Register...]
About your current ideas:
-Going to add this in a town overview, will also show traders/attacks/populations/revolts etc for each town.
-Proxy is going to be a problem. The bot uses two different classes to make webrequests, the webbrowser (GUI) for user interaction and a custom Webclient that makes all the intern webrequests. Those two are synchronized each login so they have the same session id.
It's easy to add proxy support for the Webclient but the webbrowser is giving problems. Because the webbrowser uses the IE engine the proxy settings can be found in the register. Unfortunately this is a global setting which means that each instance of the bot uses that proxy, so they all get the same ip. Because for most of the users proxy support would mean they can run multiple accounts on the same server this would be pointless. :(
-No idea how to remove the tray-icon, any tips?
-Added logs to the feature request post
-Already possible, just copy the directory :)

//edit
@Unghiutza
Already possible :) And how is the new browser working for you?

~Uthar
05/10/2011 23:27 Unghiutza#176
The browser is working quite good. I can actually make some posts on "Alliance forum", becouse before, with ie7 or w/e, it was super lagging xD

LE: It would be awsome if you could implement an option to schedule some attacks to other players towns.

Something like: I want to send X amount of troops (swordsman, slingers, hoplites, etc) at YY:YY pm/am time (server time so it can be easier to code i think).

If you remember, about 1 year ago you had competition, another programmer released a bot which had this option but it was kinda buggy :). If you could make something like this it would be great xD. An another option, like if you want to save your troops from an incoming attack, an option that can send at YY:YY am/pm an X amount of troops to support or w/e
05/11/2011 00:08 Utharnl#177
Nice! IE 9 seems to work fine here too. Unfortunately IE 8 is the latest version that works on XP, but at least it's a little bit better then IE 7.

Added timed support and attacks to the feature request post (Really thought I already did that last week :P but looks like I forgot it).

That other bot looked indeed great, too bad everyone was banned after a few weeks/month. Because of that bot I started to do tests with the GUI which resulted in this bot :)

~Uthar
05/11/2011 00:10 Unghiutza#178
Oh, and one more suggestion, at the "Building tab", written in white on their icon, it shows the buildings level. With that color (white), some numbers aren't quite visible, I just saying that imo black would be better then white in that case...
05/11/2011 00:15 Utharnl#179
Yeah you would think that, but did test a couple of colours and white gave the best result for most of the buildings. Although white with a black border would be the best solution, which is not possible unfortunately.

~Uthar
05/11/2011 00:56 jmspaggi#180
Quote:
Originally Posted by Utharnl View Post
Thanks jmspaggi, good to have an other programmer here!
As I said, my bot was a VERY SIMPLE one ;)

I did a very powerfull one for EmpireCraft. It was just owesome ;) Doing EVERYTHING.

Quote:
Originally Posted by Utharnl View Post
-Proxy is going to be a problem. The bot uses two different classes to make webrequests, the webbrowser (GUI) for user interaction and a custom Webclient that makes all the intern webrequests. Those two are synchronized each login so they have the same session id.
It's easy to add proxy support for the Webclient but the webbrowser is giving problems. Because the webbrowser uses the IE engine the proxy settings can be found in the register. Unfortunately this is a global setting which means that each instance of the bot uses that proxy, so they all get the same ip. Because for most of the users proxy support would mean they can run multiple accounts on the same server this would be pointless. :(
Ok, I see. I'm not using the internal webbrowser because it's not working at all for me ;) So I'm fine if it's not working when the proxy is enable... Also, I have the setting for the proxy in IE. So it should still be working?

Quote:
Originally Posted by Utharnl View Post
-No idea how to remove the tray-icon, any tips?
Not at all :( I don't understand that. The application is killed because when I walk my mouse through the icon, windows is removing it. But it's not done automatically.

Another request:
- Add the ability the automatically launch the planned orders

Thanks again!

JM