QAI! V2.45! New (03/09/2007)
Moderators: hoijui, Moderators
I rarely find somthing amazing enough to login to post about, but QAI + SSP = TA2. Seriously, I just played my first game of NanoBlobs, and hot damn, great job. Any AI that doesn't require a config file is A+ in my book, let alone one that can play nanoblobs. (Even if it is just target practice) 
Keep up the good work.

Keep up the good work.

The 2.02 source still does not compile without intervention.
(Due to the Command.h alias command.h and FileHandler.h inclusion issues, and because g++ doesn't like the extra UNIT:: qualification in UNIT.h for some reason.)
More importantly though, QAI still seems to hang on Green Comet Basic and The Cold Place, or rather, on any map with OTA-style metalspots (that I've tried), which is somewhat befuddling since all the necessary directories are created now AFAICT and there is no platform-specific code in the metal class...

More importantly though, QAI still seems to hang on Green Comet Basic and The Cold Place, or rather, on any map with OTA-style metalspots (that I've tried), which is somewhat befuddling since all the necessary directories are created now AFAICT and there is no platform-specific code in the metal class...
Doh, missed that filehandler include, and fixed up the unit:: thing. Will try to upload new version soon. And can you be more specific about the "Command.h alias command.h" issue?Kloot wrote:The 2.02 source still does not compile without intervention.(Due to the Command.h alias command.h and FileHandler.h inclusion issues, and because g++ doesn't like the extra UNIT:: qualification in UNIT.h for some reason.)
I'll test out those maps specifically tonight and see what is going on. Thanks for the feedback! :)Kloot wrote:More importantly though, QAI still seems to hang on Green Comet Basic and The Cold Place, or rather, on any map with OTA-style metalspots (that I've tried), which is somewhat befuddling since all the necessary directories are created now AFAICT and there is no platform-specific code in the metal class...
When I play on Small Supreme battlefield, I've noticed that the units often get mixed up when my units attack them...sometimes they will shoot one unit but then not shoot the other afterwards, or after the commander kills my scout, he will continue firing a few seconds in the place where my unit was. The commander also fires his d-gun at the ground once in a while long after any enemy units were destroyed.
It's awesome having an AI that can play any mod
It's awesome having an AI that can play any mod

-
- Posts: 87
- Joined: 23 Dec 2006, 21:36
What I don't like about this Ai is, that it trys to build shipyards only on Supreme Battlefield. The first thing it does is building a shipyard, which leads to 100% looose afterwards (It just builds on water, nearly nothing on land).
The quote below is just a generall though about AI, nothing specific about your AI, it just came into my mind while writing this.
The quote below is just a generall though about AI, nothing specific about your AI, it just came into my mind while writing this.
I'm not saying this AI is bad, it just needs improvement in this section.General Ai water/ map behaviour wrote: IMO some AI's are kinda like "if water is more then land, built a army of ships", instead they should be like "theres water, let's build ships to assist my land army". But then you would have a problem with maps which have isles, so either the AI makes use of transport units or just let them build ships when there are no land connections between them and their enemys.
I don't know if any AI does this, but maybe also mapsize should be taken into account when deciding if it is "water map only", let's make an overrated guess: We got a mapsize of 80x80 (yeye, not possible for now). so 90% of it is water, but still the land would be huge enough for Massive unit armys.
I dont know if the game distinguishes between land and water, if yes you could try to calculate the space of land and water, comparing it with the mapsize and maybe using a 6x6 pattern (for example so a goliath can pass).
So if this part calculates that the smallest part is enough for 6 goliaths it's considered a "land army" map, if water size is even bigger, it adds "water army" map.
However fiddling around and writing this code may actually take longer than it's worth in the end.
I agree, and that was my intent when making the AI. I haven't worked much on optimizing water map stuff, but I basically check if the map is <10% water or >90% water if I'm only building land/ships, and build both if it's in the middle. Looks like it needs a bit of tweaking. :)Engine Of Darkness wrote:What I don't like about this Ai is, that it trys to build shipyards only on Supreme Battlefield. The first thing it does is building a shipyard, which leads to 100% looose afterwards (It just builds on water, nearly nothing on land).
The quote below is just a generall though about AI, nothing specific about your AI, it just came into my mind while writing this.
I'm not saying this AI is bad, it just needs improvement in this section.General Ai water/ map behaviour wrote: IMO some AI's are kinda like "if water is more then land, built a army of ships", instead they should be like "theres water, let's build ships to assist my land army". But then you would have a problem with maps which have isles, so either the AI makes use of transport units or just let them build ships when there are no land connections between them and their enemys.
I don't know if any AI does this, but maybe also mapsize should be taken into account when deciding if it is "water map only", let's make an overrated guess: We got a mapsize of 80x80 (yeye, not possible for now). so 90% of it is water, but still the land would be huge enough for Massive unit armys.
I dont know if the game distinguishes between land and water, if yes you could try to calculate the space of land and water, comparing it with the mapsize and maybe using a 6x6 pattern (for example so a goliath can pass).
So if this part calculates that the smallest part is enough for 6 goliaths it's considered a "land army" map, if water size is even bigger, it adds "water army" map.
However fiddling around and writing this code may actually take longer than it's worth in the end.
-
- Posts: 87
- Joined: 23 Dec 2006, 21:36
oh and your ai seems to crash with LLTA. it came till building a mex and then it stood there doing nothing, (the mex at 0 hp buildstatus)
Iif you need a Link to the mod, here you go: http://spring.unknown-files.net/file/2240/LLTA_V_0.2/
Iif you need a Link to the mod, here you go: http://spring.unknown-files.net/file/2240/LLTA_V_0.2/
-
- Posts: 87
- Joined: 23 Dec 2006, 21:36
-
- Posts: 87
- Joined: 23 Dec 2006, 21:36