KAI v0.2 Unnoficial - Page 4

KAI v0.2 Unnoficial

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

You may have the wrong files. I recommend redownloading Gundam.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

If this isn't the right file, which one is?
User avatar
Neddie
Community Lead
Posts: 9406
Joined: 10 Apr 2006, 05:05

Post by Neddie »

That is the right file. However, the servers sometimes garble the data on transfer. I got an empty map once.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

Do me a favor kloot, and make it ablke to use hubs
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

And use the logs in your svn commit so I dont have to spend 10 minutes reading code to figure out what could be written in a 5 word sentence.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Some updates:

0.12 now has basic support for EE-style hubs, although the chance that they actually build something is somewhat... low... since currently they use a naive (ie. stupid) placement algorithm that produces all sorts of borkedness and really really really needs replacing.

Still haven't gotten Gundam to not crash, so no fixes on that front as of yet.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Try offsetting the hubs position when you pass it to closestbuildsite, then randomly offsetting and repeating if its outside the hubs build radius or it overlaps with the hubs position.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

The KAI in the spring release dguns commanders.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

That's by design, there's not much point to outright preventing it since commanders can be part of an attack group and get blasted accidentally while dgunning another target.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

Its a golden rule, but having a lone KAI com with a downtrodden base suddenly appear next to your commander and dgun it loosing any chance of rebuilding is bad and its annoying.

Instead NTai and OTai avoid it. NTai will reclaim while running away. Both AIs had better success results because of this.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Alright, commanders are now ignored as direct targets.

Still I think the main issue is that KAI relies far too heavily on its commander for early expansion (so it comes into contact too soon which also leaves it vulnerable to raids), later in the game it shouldn't be such a blow to either party.
BDCoolio
Posts: 40
Joined: 08 Jan 2007, 03:55

Post by BDCoolio »

I've seen this multiple times as well. As far as EE goes, especially when playing as URC, KAI likes to build lots of plasma towers as it approaches your base, usually not even building mexes along the way. Then it gets its com killed off because it doesn't retreat fast enough when it comes under attack - partially because EE coms aren't combat units.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

is there any progress on this?
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

Regarding Gundam support, no.
Last edited by Kloot on 13 Jun 2007, 23:18, edited 2 times in total.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

I think i just realised, the reason this KAI is a bit ropey is that it dosnt have a working maphack anymore, so it no longer flanks and attacks properly. when I gave it full radar coverage it suddenly sprung into life. could this be the case?
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

You're right KAI is f*cked if its maphack is taken away from it, evne more so because KAI cant scout.

You see KAI builds thigns absed on what the enemy builds and because it cant see the enemy a large portion of the AI simply ceases to exist for the majority of the game. This is why it sometimes does nothing, and why it sometimes just techs to lvl 2 and builds resources.

This means that the maphack needs fixing/putting back in or the code it supports needs to change.
User avatar
1v0ry_k1ng
Posts: 4656
Joined: 10 Mar 2006, 10:24

Post by 1v0ry_k1ng »

horay! kloot is this the case and if so is it fixable??
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

fix the maphack and it should be a lot fiestier ingame.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

I am not aware of any changes to the cheat versions of GetUnitPos() etc. (which KAI still uses, although oddly it also calls the regular one) that would account for the do-nothing syndrome, which I have yet to experience myself TBH and so is difficult to analyze. Replays would be helpful.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I asked krogoth this mornign what would happen if the maphack suddenly vanished and that was his answer basically. KAI builds at the beginning according to what its enemy builds. If it cant see its enemy it doesnt build.
Post Reply

Return to “AI”