infyquest Posted December 24, 2011 Report Share Posted December 24, 2011 I think in qBot, we also need to take care of below in ALPHA 9 attack bonuses,the idle workers if resources are not theretrade or barter handling allies Quote Link to comment Share on other sites More sharing options...
quantumstate Posted December 24, 2011 Author Report Share Posted December 24, 2011 added a config.js file http://pastebin.com/vCrGg2t4need to modify the rest of the code, check it outI have put this into qBot now, I changed the style to the json style of object definition because I think it looks clearer. Working out how dynamic properties will be defined still needs to be decided. Quote Link to comment Share on other sites More sharing options...
Pureon Posted December 24, 2011 Report Share Posted December 24, 2011 I have put this into qBot nowThat's great! Could it eventually also be the way difficulty is set? Quote Link to comment Share on other sites More sharing options...
quantumstate Posted December 24, 2011 Author Report Share Posted December 24, 2011 That's great! Could it eventually also be the way difficulty is set?Yes, there aren't enough options exposed to do that very well right now, but in the future it should be the way to adjust things like that. The config file should be powerful enough to produce specific AI play styles, so there could be booming/rushing/... types of AI all sharing the same base logic. Then this can be randomly picked or specified in the game setup. Quote Link to comment Share on other sites More sharing options...
ac892006 Posted December 25, 2011 Report Share Posted December 25, 2011 (edited) i've played a game in Median oasis map. At the beginning the ai is aggressive, but after some time it became inactive: i think that ai players finish their resources and don't know how to use the bartering system... when i have attacked their territories, i've found plenty of women doing nothing near the border of the map ready to be slaughtered.I'm a very slow player (the game finished after 2 hours), so maybe the ai players are just tired but overall the ai has made great improvements since the last alpha release I played Alpha 8 in oasis 2 alpha 8 for 50 minutes and the same issue propped up . Qbot was great for the first 35 minutes but the moment I constricted Qbot's territory Qbot fell apart . It ran out of resources and stopped producing units that could defend its position . As a result 6 war elephants was all that it took to destroy Qbot . Apart from that Qbot is a large improvement over Jubot from alpha 7 . Edited December 25, 2011 by ac892006 Quote Link to comment Share on other sites More sharing options...
Spahbod Posted December 26, 2011 Report Share Posted December 26, 2011 (edited) Wow, the first time a bot defeated me in the game. qbot in Alpha 8 is much better than before. Well done.Edit:I've got some warnings playing against qbot. Perhaps you would like to know:WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 102reference to undefined property this.path[0][0]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 102reference to undefined property this.path[0][1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216reference to undefined property this.path[0][0]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216reference to undefined property this.path[0][1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 225reference to undefined property this.path[0][0]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 225reference to undefined property this.path[0][1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216reference to undefined property this.path[0][0]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216reference to undefined property this.path[0][1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216reference to undefined property this.path[0][0]WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216reference to undefined property this.path[0][1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3reference to undefined property b[0]WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4reference to undefined property b[1] Edited December 26, 2011 by Spahbod Quote Link to comment Share on other sites More sharing options...
wraitii Posted December 26, 2011 Report Share Posted December 26, 2011 (edited) Do you plan on improving the military aspect of qBot?Additional question to anyone: is there any way to simulate LOS for the AI? Edited December 26, 2011 by wraitii Quote Link to comment Share on other sites More sharing options...
quantumstate Posted December 26, 2011 Author Report Share Posted December 26, 2011 Edit:I've got some warnings playing against qbot. Perhaps you would like to know:Thanks I will get this fixed. It shouldn't affect the bots play significantly.Do you plan on improving the military aspect of qBot?Additional question to anyone: is there any way to simulate LOS for the AI?Yes the military aspect will be improved. At some point LOS will be added (probably as a optional thing), the bot doesn't have enough military sophistication to make this very significant currently though so it is not going to happen in the near future. Quote Link to comment Share on other sites More sharing options...
JuliusColtranePille Posted December 30, 2011 Report Share Posted December 30, 2011 played against qBot on the "The Nile"-map of spahabi. unfortunately qBot only trained women and had no military after 5 minutes...anyone encountered this problem already? Quote Link to comment Share on other sites More sharing options...
Spahbod Posted December 30, 2011 Report Share Posted December 30, 2011 played against qBot on the "The Nile"-map of spahabi. unfortunately qBot only trained women and had no military after 5 minutes...anyone encountered this problem already?How many players were on the map? Bots don't work if there are 8 players on the map. Quote Link to comment Share on other sites More sharing options...
JuliusColtranePille Posted December 30, 2011 Report Share Posted December 30, 2011 there were 3 players... is that too much? Quote Link to comment Share on other sites More sharing options...
hhyloc Posted December 30, 2011 Report Share Posted December 30, 2011 This happened on other maps as well, in my game of Celts vs Hellenes I rush him after 5~6 minutes and constantly attack his base but he only recruit female citizens. After around 15 minutes he repelled my raid with his superior economy and troops trained from those newly constructed bases. Quote Link to comment Share on other sites More sharing options...
infyquest Posted January 2, 2012 Report Share Posted January 2, 2012 (edited) I have shamelessly copied the code for treasure hunting from the wraitii's new bot (Marylin).I am giving the link for the code, http://pastebin.com/PK78eMXY (updated version, a slightly btter one)Please test it. Edited January 3, 2012 by infyquest Quote Link to comment Share on other sites More sharing options...
quantumstate Posted January 5, 2012 Author Report Share Posted January 5, 2012 I have shamelessly copied the code for treasure hunting from the wraitii's new bot (Marylin).I am giving the link for the code, http://pastebin.com/PK78eMXY (updated version, a slightly btter one)Please test it.Marilyn equivalent treasure hunting is now in qBot. Quote Link to comment Share on other sites More sharing options...
infyquest Posted January 5, 2012 Report Share Posted January 5, 2012 We need to have a hit and run tactic for raiding purpose (a separate module).Also we need to put high priority for military buildings and farms in the early game. Quote Link to comment Share on other sites More sharing options...
wraitii Posted January 5, 2012 Report Share Posted January 5, 2012 I'm likely going to work on my free time on an improved attacking system. But I wouldn't want to try and do something that Quantumstate is already doing... Quote Link to comment Share on other sites More sharing options...
quantumstate Posted January 5, 2012 Author Report Share Posted January 5, 2012 I'm likely going to work on my free time on an improved attacking system. But I wouldn't want to try and do something that Quantumstate is already doing...I'm not currently working on much to do with qBot, I am fairly busy with other things in life currently and the next main thing with qBot is probably going to be working out/integrating new API changes. Quote Link to comment Share on other sites More sharing options...
Echelon9 Posted January 22, 2012 Report Share Posted January 22, 2012 I believe qbot has issues with the new Punjab map. The presence of so many Asian elephants close to civ centre starting spot that can kill villagers and buildings, means that qbot's economy is totally shut down. It does not seem to have an effective counter. Quote Link to comment Share on other sites More sharing options...
wraitii Posted January 22, 2012 Report Share Posted January 22, 2012 I can answer that: no, it does not, because qBot has no means of processing threats to determine what they are. It only detects enemy soldiers... This is actually one of the things I worked on in Marilyn, but I haven't gone out of my way to implement it yet. Quote Link to comment Share on other sites More sharing options...
wraitii Posted February 27, 2012 Report Share Posted February 27, 2012 The latest qBot gives me a "cannot serialise function" fatal error when I try to time warp... Any idea why? Quote Link to comment Share on other sites More sharing options...
Spahbod Posted February 27, 2012 Report Share Posted February 27, 2012 Time warp? How do you do that? Quote Link to comment Share on other sites More sharing options...
feneur Posted February 27, 2012 Report Share Posted February 27, 2012 Time warp? How do you do that?Enable the developer overlay, click the box, press spacebar (Maybe it's time to add a "developer overlay" page to the Trac wiki?) Quote Link to comment Share on other sites More sharing options...
gameboy Posted February 28, 2012 Report Share Posted February 28, 2012 The final AI: qBot version will be released? It can solve because qBot causing game lag problems? :o :( Quote Link to comment Share on other sites More sharing options...
feneur Posted February 28, 2012 Report Share Posted February 28, 2012 The final AI: qBot version will be released? It can solve because qBot causing game lag problems? :o :( The final version of the AI is not likely to be released until earliest when the final version of the game in its entirety is released. Improvements to speed are likely to be done and released before that though, but there could be new features added in a later release making it slower again, so don't expect it to be as good as it can be until the game is finished Quote Link to comment Share on other sites More sharing options...
quantumstate Posted February 28, 2012 Author Report Share Posted February 28, 2012 The latest qBot gives me a "cannot serialise function" fatal error when I try to time warp... Any idea why?This was due to the AI sending bad stuff to the serialization code. It is fixed by revision 11198. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.