Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 21:04

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Grepolis 2 bot

Discussion on [Release] Grepolis 2 bot within the Browsergames forum part of the Other Online Games category.

Reply
 
Old 05/11/2011, 21:28   #196
 
elite*gold: 0
Join Date: May 2011
Posts: 47
Received Thanks: 0
There is also VirtualBox under Linux. There might be a version for Mac too. And it's free! That's what I'm using to make the bot working
jmspaggi is offline  
Old 05/11/2011, 22:41   #197
 
elite*gold: 0
Join Date: Apr 2011
Posts: 4
Received Thanks: 0
I have an idea for your bot.

- The bot will automatically turn on on the startup of your computer (you never have to click it manually)
pronkjuweel is offline  
Old 05/11/2011, 23:17   #198
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
@jmspaggi
Nice tip, should also be useful for other linux users.

@pronkjuweel
You can also create a shortcut of the bot and place it in your startup folder. Windows will start it then automatic. But you'll still need to press the "login" button.
I could however add an option to login automatic when the bot starts, then everything is automatic

~Uthar
Utharnl is offline  
Old 05/12/2011, 02:35   #199
 
elite*gold: 0
Join Date: May 2011
Posts: 47
Received Thanks: 0
+1 for the autologin option at startup.

Also, will be nice to have the Login name in the title bar...

JM
jmspaggi is offline  
Old 05/12/2011, 05:54   #200
 
elite*gold: 0
Join Date: Mar 2009
Posts: 100
Received Thanks: 1
Uthar, what's up with that "Daily limit reached: true" thingy? Now my bot doesn't want to farm anymore after it shows that :-<
Unghiutza is offline  
Old 05/12/2011, 06:43   #201
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
You can only loot 12500 resources (can be more/less depending on server speed) daily from farmers.
The bot is currently resetting the limit each day at 00:02 but that doesn't seem the right time. Tried last night to reset it at 00:15 but that wasn't either the correct time.
If someone has more info please let me know.

~Uthar
Utharnl is offline  
Old 05/12/2011, 09:39   #202
 
elite*gold: 0
Join Date: May 2011
Posts: 10
Received Thanks: 0
Small improvement

Small improvement for building queue
If population is below small amount (for example 10), bot should build farm, no matter what is next in queue.
Below small example
in checkBuildingQueue() just before line: if (!l_Building.Equals("")):
Quote:
if ((m_Player.Towns[m_CurrentTownIntern].Population < 10) &&
!m_Player.Towns[m_CurrentTownIntern].getIngameBuildingQueue().Contains("farm"))
{
int j;
for ( j = 0; j < m_Player.Towns[m_CurrentTownIntern].Buildings.Count; j++)
if (m_Player.Towns[m_CurrentTownIntern].Buildings[j].DevName=="farm") break;
if (m_Player.Towns[m_CurrentTownIntern].Buildings[j].Upgradable)
{
l_Building = m_Player.Towns[m_CurrentTownIntern].Buildings[j].DevName;
}
else
{
if (m_Player.Towns[m_CurrentTownIntern].Buildings[j].Level < m_Player.Towns[m_CurrentTownIntern].Buildings[j].MaxLevel)
l_Building = "";
}
}
Jarisk is offline  
Old 05/12/2011, 12:46   #203
 
elite*gold: 0
Join Date: May 2011
Posts: 47
Received Thanks: 0
+1 for the farm automatic creation!!!! I'm always blocked because of that

Other possible options:
- Ability to order the cities in the display;
- Ability to schedule the "friendly request only" for the farmers. Like, I want friendly between 4h and 6h so when I wake up, they are above 80% and I can do some commerce.

From the exemple above, if you have the population below 10, and you have 10 buildings in the queue, then the farm. Will the bot not be stuck?

JM
jmspaggi is offline  
Old 05/12/2011, 13:07   #204
 
elite*gold: 0
Join Date: May 2011
Posts: 10
Received Thanks: 0
It mean: if population is less than 10 and there is no farm in game building queue (to prevent more then one farm in queue)
[edit]
We must also check max level for farm before ignore bot queue:
if (m_Player.Towns[m_CurrentTownIntern].Buildings[j].Level < m_Player.Towns[m_CurrentTownIntern].Buildings[j].MaxLevel) l_Building = "";
Jarisk is offline  
Old 05/12/2011, 13:14   #205
 
elite*gold: 0
Join Date: May 2011
Posts: 47
Received Thanks: 0
Ok, I see! I mixed-up the building queue and the bot queue... So I understand. Thanks for the clarification.

Another request:
- When we select 100 troops in the target, display is 00. Which is a bit disturbing. Might be better to have 100? Or change the color? Or reduce the font size?

JM
jmspaggi is offline  
Old 05/12/2011, 14:50   #206
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
@Jarisk
Was already added in the feature request post but thanks for the code will probably add it in the next release.

@jmspaggi
Added the scheduler to the feature request post.
What do you mean with this one:
Quote:
Ability to order the cities in the display;
I will make the font a bit smaller in the next release but I think it also depends on your pc settings because mine are displayed correct up to 999.

~Uthar
Utharnl is offline  
Old 05/12/2011, 15:54   #207
 
elite*gold: 0
Join Date: May 2011
Posts: 10
Received Thanks: 0
Feature request: random building in automatic queue mode

sometimes it's good to randomize choose building in automatic queue mode.
In checkBuildingQueue():
Quote:
//Automatic mode activad
int l_LowestLevel = 41;
int l_Level = 0;
string l_BuildingTemp = "";
// place for upgradable buildings
StringCollection UpgradableBuildings = new StringCollection();

for (int i = 0; i < m_Player.Towns[m_CurrentTownIntern].Buildings.Count; i++)
{
l_BuildingTemp = m_Player.Towns[m_CurrentTownIntern].Buildings[i].DevName;
l_Level = m_Player.Towns[m_CurrentTownIntern].Buildings[i].Level + m_Player.Towns[m_CurrentTownIntern].countIngameBuildingQueueByName(l_BuildingTemp);
if (m_Player.Towns[m_CurrentTownIntern].Buildings[i].Upgradable)
{
if (l_Level < m_Player.Towns[m_CurrentTownIntern].Buildings[i].TargetLevel)
{
if(l_Level < l_LowestLevel)
{
l_Building = l_BuildingTemp;
l_LowestLevel = l_Level;
// store upgradable building
UpgradableBuildings.Add(l_Building);

}
}
}
}
// randomize available buildings
Random l_rnd = new Random();
if (UpgradableBuildings.Count>1)
l_Building = UpgradableBuildings[l_rnd.Next(0,UpgradableBuildings.Count)];
l_rnd = null;
UpgradableBuildings = null;
Jarisk is offline  
Old 05/12/2011, 16:01   #208
 
elite*gold: 0
Join Date: May 2011
Posts: 47
Received Thanks: 0
Quote:
Originally Posted by Utharnl View Post
Added the scheduler to the feature request post.
Thanks

Quote:
Originally Posted by Utharnl View Post
What do you mean with this one: Ability to order the cities in the display;
My cities are called "City 1", "City 2", "City 3", and so on up to "City 40".

In the display, they are not ordered by number. I have "City 4" on the top, "City 1" in the middle, etc. And I'm a bit mixed up.

I would like to be able to order them using drag and drop. So I can put my defense cities on the top, and my attack cities on the bottom. Or would like to have the ability to order them by name at least?

Quote:
Originally Posted by Utharnl View Post
I will make the font a bit smaller in the next release but I think it also depends on your pc settings because mine are displayed correct up to 999.
Ok. So I will try to play with my settings.

Last thing, I see some are posting some part of you code. If you tell me how I can get the code and the required tools to compile, I will be VERY hapy to help. Seems to be close to Java language, so I might be able to learn pretty quickly...

JM
jmspaggi is offline  
Old 05/12/2011, 16:11   #209
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1,656
Received Thanks: 703
@Jarisk
Thanks for all the ideas But do you have any specific point why to randomize them?

@jmspaggi
Shouldn't be a problem to sort them. But drag and drop is going to be a problem I think, I'll look in to it later. First I want to complete some more features
You can find the source code at my blog (see signature) in the download section. The only tool you need is Visual Studio 2010.

~Uthar
Utharnl is offline  
Old 05/12/2011, 16:24   #210
 
elite*gold: 0
Join Date: May 2011
Posts: 5
Received Thanks: 0
has ny1 experianced a hanging bot?i run the new .4 version and some times i check up on the bot and i find that the farms havnt been harvested. then i see that the count down timer has frozen, when i click stop and start again it will start again and will run for a few hours but finally the same thing happends again
maxsssss is offline  
Reply


Similar Threads Similar Threads
grepolis hack help
12/22/2011 - Browsergames - 21 Replies
sorry, i'm italian and i don't speack english well. i've got the bot version of grepolis 1.9.7 and i compleate the settings and he tell me reconnect in 60 seconds and he doesn't work. where do i make a misktake? please help me! i play in the italian server, if you have the solution post it please! thanks
grepolis
04/22/2011 - General Gaming Discussion - 4 Replies
Hello,please help grepolis bot.
Grepolis Bot?
02/20/2011 - Browsergames - 4 Replies
Huhu, wollte mal fragen ob es einen grepolis Bot gibt ? wenn ja vllt könnte einer den link posten dank euch
Grepolis Acc
01/22/2011 - Browsergames - 1 Replies
Hey Leute! Ich suche nach einem Grepolis Acc, egal auf was für eine Welt oder in was für einem Land :) Ich bezahle demjenigen auch was dafür, umso größer der Acc, umso mehr Geld bekommt derjenige dafür. Sagen wir mal der Acc hat zwei Städte, so bin ich bereit demjenigen 100 € pro Monat zu geben ;) Also meldet euch bitte, N.C.S.
Grepolis Help
04/05/2010 - Main - 1 Replies
Hey ich will den Bot benützen !!! aber wie geht der eig. der hier >>>http://www.elitepvpers.com/forum/browse rgames/438818-grepolis-bot-now-attack-option.html



All times are GMT +1. The time now is 21:06.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.