AI vs. AI

Which one is best?

There are 9 different AI personalities in Galactic Civilizations II.  Which makes debugging oh so fun.  But there are significant advantages to it as well.

First question, why write 9 different AI personalities? Most games have one.  The answer to this is because in a single player game, players usually find a weakness in a given AI and then it's boring.  So we coded up 9 different ones.  They are all derived from the same base class so there are a lot of similarities, but there are many differences too.

It's fun to test to see the AI play against itself.  See each one do their thing:

Watch the Drath manipulate other races to declare war on each other.  Or see the diplomatic Terran Alliance (the humans) build up coalitions to win.  Or of course, the Drengin, grinding one civilization down after another. 

So who wins? It really depends on the game.  It's usually quite amusing to watch the Torians and the Drengin start out near each other.  The Torian AI is very unstable (strategicaly I mean) so they will often do very well or crash and burn.

In the 10 games I've had them play each other, the Drengin have won twice, the Humans have won twice, the Drath have won once, the Korx once, the Torians twice, the Altarians once and the Iconians once.

But this was on a medium galaxy.  Different sized galaxies yield different results.

35,461 views 19 replies
Reply #1 Top
Can we do this as well? I mean, watching the AI play without a human player? If so, how?
Reply #2 Top

The Torian AI is very unstable (strategicaly I mean) so they will often do very well or crash and burn.

That is one of my favorite aspects of the game.  You can definately see different behavior in each race and they way the approach the game.

Reply #3 Top
Can we do this as well? I mean, watching the AI play without a human player? If so, how?


I second this question . I do like how all races seem unique and you can actually say "damn Terrans and their diplomatic ways" knowing you're not giving the AI more than what it really has.
Reply #4 Top
I'll third that motion. I know one of the other devs said it wouldn't take much effort to enable this for the everyone.
Reply #5 Top
If you want to watch the AI play by itself search the forums for a beta post by Frogboy. I remember he said something about using it for testing late in beta and people ask if they could do it to.

You have to enable cheats and then enter a code so the AI will take over your spot. It should be possible though. Just do a search (sorry I don't feel like doing it right now, but it's out there). You might search for general cheats too. Or just wait for someone to post it in here (I'm sure it'll turn up sooner or later).
Reply #6 Top
I looked but didn't turn up the exact post you're refering to. However, based on some related comments I suspect it currently only works in debug mode.
Reply #7 Top
I recall the post. It think it was very near the time of code freeze in early Feb. This site needs better search capabilities! It should be easy to pull up all threads authored by or replied to by a given user, but it is not! Or all messages all by a given user. Whenever I try to add a Watch to a thread, it always times out!
Reply #8 Top
Yes it would be very interesting to know the end results of 100 random games where the AI played against itself... it would let us know which AI personality is the strongest.
Reply #9 Top
I've searched for cheats and found nothing regarding a full AI game. I would love to watch the AI fight itself.
Reply #10 Top
I wonder, If you kept playing the same X ammount of AI's on the same preset map, Would the results be the same?

Or would random events really kick it into gear..
Reply #12 Top

I wonder, If you kept playing the same X ammount of AI's on the same preset map, Would the results be the same?

Or would random events really kick it into gear..




Well the galaxy would have to be balanced for all those players on the same map... not sure how easy that is to setup. 100 random maps for small, medium and large should give a good estimate with which AI is the deadliest for each type.
Reply #13 Top
I think I'd just rather play.
Reply #15 Top
the dreneg always puff out for me. they seem to be the first out nearly every game.
Reply #16 Top
I'm surprised nobody has mentioned the cheats page on the GalCiv Wiki . . .
Reply #17 Top
Well it might be interesting if one of the AI races was one you'd customized, either with just the regular customization options, or perhaps for the more hardcore modders, actually changed the AI it's using. I think that would make it a viable game feature, from the aspect of being fun and interactive.
Reply #18 Top
So do some of the races share a personality? Since technically there are 10 playable races and the Dread Lords that would leave 2 personalities that would need to be duplicative if there are nine unique ones.

I am just curious. I think that having this many unique AI personalities is one of the things that make this game great. I apologize if this has already been gone over.

Thank you.
Reply #19 Top
I suppose the Dread Lords don't count; they are pretty much hack and slash and probably don't require a fully fleshed-out AI like the other races. Of course that still leaves a pair to share an AI, unless he was miscounting. Actually, he probably wasn't. You're never going to need more than 9 in one game, because the 10th player is the human. So probably each race has a preference list of personalities and when the game is generated the 9 personalities are doled out accordingly. If a race's first preference is taken by another race the game gives them the next choice on the list. Heck, it could be a random roll among 3 or so appropriate personalities, weighted toward a favourite and second favourite choice.