The AI level should have a randomised variation!

How to make the computer AI look less the same for all races

One of the problems with the AI in this and other games (Age of Empires comes to mind) is that different AI levels use a level factor of some sort but the level is fixed. So all the races finish things at about the same time, do things at the same time, discover techs at the same time, have the same cost to reach each easponiage level etc.

My suggestion is that while the AI level should average to whatever factor it is set, that each turn or each series of turns that a random variation is generated for that factor. This would be generated differently for each race so that each race on the same AI level will behave slightly differently. This is the whole point of this post after all.

I'm speaking a little abstractly here because I don't know eactly how the AI works but say Cakewalk=1, Simple=2, Easy=3, Beginner=4, Standard=5 etc. Well, suppose you set all the AI races to Standard level. This would give them level 5. But you could then generate a random variation on that number. Level 5 might in fact mean anything from 4.5 to 5.5. So, first turn, one race might get a level of 4.7, another 5.4 and so on. But at regular intervals, the levels are randomised again. That regular interval might be as often as each turn; however my thoughts on this is that it might average out too much to be the same for each raceif it is each turn so it might be better to only randomise ever so often. That way, each race could have a consistent trend of pace and races on the same AI level will show apparent differences. The randomisation routine could also make sure that each race on the same AI level has a different variation from any other race just to make sure they are different.

You would have to make the interval of randomisation regular enough that one race doesn't become that predictable. It could be a random interval and in fact each race could change their AI vairation at different times to keep the unpredictablity factor in. Certain regular events could trigger recalulating the AI level for a race such as whenever it discovers a new technology or at some pivotal moment.

Make sense Brad? Anyone?
9,742 views 13 replies
Reply #1 Top
Actually, there are 10 different AI in GalCiv, although some of them are derivative of each other (I'm not sure, but I think there is only 3 core AI). There is no "level" factor like what you describe, there is only what routines it has access to. The basic AI from fool to sub-normal has only the very basic funtions, colonizing, planetary construction, etc... all 10 AI are different in how they go about it. Then every level up from there, normal, bright, intelligent it has some more ability to recognize human strategies so that it can respond to it.


What you are observing is not at all what you are thinking:

1) They don't finish things at the same time... at all. How can they? they are all different, with different planets, and different amounts of money to fund the different amount of factories...

2) The reason they SEEM to get research at the same time is because they trade their discoveries with one another. If you spy on them you will see that it's pretty obvious. SImply trade with them, and you too will seem to get the same technology the turn they discover it.

3) Espionage value, as I recall is based upon amount spent on espionage versus the total population of the galaxy (although I might be wrong about this). So if you spend the same for all races, you will get to the same level at the same time, because there is only one value for total population.


With that said, I'm pretty sure what you suggest pretty much doesn't make anysense, especially to Brad who's probably going, "Huh? I sure as heck didn't write the AI that way..."
Reply #2 Top
Well, Rusty Garner, as Kalin said every AI is different (although now the Yor is apparently a variation of Drengin AI), they all have different attributes, and different ways of acting. The Drengin are pretty much always going for conquest victory, while the Humans and the Drath always stir things up. Plus, in 1.1 there is a randomised AI level, you select the game level and number of opponents, the game weighs the average level of AI at that level, and makes some AI's less intelligent while some more so. So, nothing you said makes sense because it's all already in the game
Reply #3 Top
His reasoning for this may be somewhat faulty, but I believe you misinterpet his post somewhat.

He actually has a fairly interesting idea: randomise the AI level DURING THE GAME. We already can have the Drengin turn into saints due to a random event. If randomize AI is checked during universe creation, why not include a random event that allows the AI to change within the same range as they do during game creation?
Reply #4 Top
Hmmmm... So basically, this is to mimic my poor decision skills as I get drowsy from the lack of sleep caused by "one more turn syndrome"? IMO, while the IDEA is nice, the AI itself just isn't good enough that I would want it to get worse in a game (I am playing at genius anyways, so it can only go down).
Reply #6 Top
Hmm.. I just wonder the AI already does get randomized in the latest BETA version if you check it.

During the game ? Why? What would this lead to ?

Pros: ? Those who like randomness and uncertainty? But other than that, what?

Cons: It may lead to some problems. If I start a 'normal' game and someone turns to 'intelligent' after finding an anomaly. I'd be pissed. Conversely, if I choose to play a hard game on intelligent or better and some empire turned into galactic tards (down to easy level), I'd be upset too. I had chosen the AI settings for a reason.



Reply #7 Top
I thought I read in one of the dev journals or somewhere else in the fourms that the AI is indeed programmed to make a few 'mistakes' randomly once in a while - I.e. reverts back to a lower level decision algorythm. Doesn't this qualify as what the OP wants?
Reply #8 Top
No, what he meant was that every single turn the AI would be a little smarter or stupider. If 10 was smartest and 1 was stupidest, and you chose a diffculty of say 7, the AI would be anywhere from 6-8 every turn. Get it? THis doesn't really work though. Why? THere are only 3 core AIs. ALl the otehr difficulty and "AI" levels come from changes in thh economy. It's all in the manual.
Reply #9 Top
All the otehr difficulty and "AI" levels come from changes in thh economy. It's all in the manual.


Not all of them. Some changes revolve around which sub-routines and protocols the AI will use.
Reply #10 Top
Not all of them. Some changes revolve around which sub-routines and protocols the AI will use.


Anyone playing above intelligent wouldn't notice anything, other than the AI's abilities and economy dropping off for a turn on the chart. This would really irritate those playing suicidal, the AI just lost a huge bonus, and it doesn't get harder. Conversely, for people playing cakewalk, the AI suddenly gets a stat and cash boost, which would also be annoying as hell. Like he said, only 3 actual "difficulties" of the AI.
Reply #11 Top
I would like to see an option to change the general AI difficulty in-game. This way I don't find myself getting overwhelmed by the AI early on, but later, once I've established myself, and feel like I can take on tougher opponents, I can jack up the AI's intelligence for a more challenging game.

Typically, I can't even finish a game on normal setting without losing. But if it's on Beginner, I win really easily. I don't know if it's just my game style, or what. Considering I'm especially pacifistic, I generally find myself with better research and industry than the AI, but no actual warships when I get attacked. [But if I do have warships, they're usually just those basic Defenders.]
Reply #12 Top
Well Sibko, I think it's your gameplay style. Not having any type of fleet is wearing a "kill me" T-shirt. Make sure to build a decent fleet and the AI should may give you some breathing room.
Reply #13 Top
Yup, that's a playing style. NEVER use those defenders, just chuck on two weapons onto any old hull, and you have an effective defense force. Cheap, and it works. Then you use your tech advantage to show them who's running the damn galaxy, (My favourite is designing a ship which is basically flying death. No engines, support, defence, huge hull, about 60 attack). Park 8 of them around a planet with the Spin control center, and watch your military rating skyrocket. ONE of these ships (sure, they cost 900 to build and 34 to maintain, but still) put me from 58 military to 101. And the Drengin towering over me backed off suddenly, and I could get the Torians (they've become powerful in 1.1) to kill them.

It's nice to enforce justice.