Even a single wrong AI parameter may break the AI

Infixo

Deity
Joined
Jan 9, 2016
Messages
4,001
Location
Warsaw
Just some food for thought on topics like why QA is important, why in a game with tens of thousands params even a single one is important, why AI is so fragile, etc.

I found out yesterday while working on a new release of Real Strategy the following line in Nzinga's AI:
<Row ListType="SettleOneContinent" Item="Foreign Continent" Favored="false" Value="120"/>
Nzinga's ability shines when you settle a home continent (+10% yields) and she should avoid settling foreign continents (-15% yields).

This line actually almost forces her to settle foreign continents...:wallbash:
Positive value increases the scoring. The proper value to limit settling on foreign continents should be negative.

Here is the default behavior. She actually goes out to settle on a foreign continent and each city gets -15% hit.
broken.jpg


After the fix. With value = -20. Each city is on home continent and gets +10% boost.
fixed.jpg


And the last one is just to compare with a little tweaked settlement rules from Real Strategy.
rst.jpg


She has 9 cities by turn 150 and all except 1 are with access to fresh water :)
 
Going off of the last part of your post, I’d like to add how much I appreciate your recent revision to Real Strategy to limit the AI setting cities away from coast or fresh water.

Seeing those poorly placed cities is my biggest pet peeve in the game, and I honestly don’t remember it happening much before NFP but maybe I’m wrong.

At any rate, keep up the good work and I hope you can continue to tweak this to further stop this behavior :D
 
Seeing those poorly placed cities is my biggest pet peeve in the game
Being a fairly active domination player myself, these cities (especially ones with no good aqueduct locations) drive me insane when I capture them. I'd raze them if it weren't losing out on yields.
 
I know a similar bug where the barbarian camps don't produce cavalry units due to a typo. I just modded it myself but I haven't checked if this bug still exists until now.
 
I know a similar bug where the barbarian camps don't produce cavalry units due to a typo. I just modded it myself but I haven't checked if this bug still exists until now.
The specific Modern era unit called Cavalry unit or cavalry units generally because I've seen barbarian horsemen on the current patch.
 
IIRC 'CLASS_HORSE_ARCHER' is an old, old Tag - like early pre-expansion pack old. I think it went away when they introduced 'CLASS_RANGED_CAVALRY'. FWIW, the Barbarian Clans mode also lists this tag.
Yeah, looks like they just copied the entire table from normal game. So, the fix will also work with Barbarian Clans :thumbsup:
 
She has 9 cities by turn 150 and all except 1 are with access to fresh water
She is already a powerful Leader not sure I want her to be better :lol:
 
I don't know if it is a fluke or actuality, but for my latest game using Infixo's latest update of the Real Strategy mod, I am having the best time on Civilization 6 thus far. Given I purchased Civilization 6 only 18 months ago and have completed probably no more than 20-25 games, with my latest game as Theodora, I lost a city to the Americans on turn 55, and nearly lost my capital to Sumeria a few turns later. America declared a surprise war on me, took over one city and then we scrimmaged back and forth on the outskirts of another city of mine. Sumeria took advantage of my weakness and also declared a surprise war on me a few turns after America, but I was able to hold them back. I managed to re-take my lost city about 30-35 turns later and now crashing the Americans, but something like this has never happen before, at least for me. I know I am only playing on King and win fairly comfortably, Emperor is still pretty impossible for me... All I wanted to say is, this "fun challenge" got to do something with the Real Strategy mod as every AI move appears to be "smarter" than the base game AI.

PS. I am playing on continents, huge map with 12 Civilizations and 18 City States. The AI has taken over / destroyed at least half the City States so far and I am almost half way through the game.
 
I don't know if it is a fluke or actuality, but for my latest game using Infixo's latest update of the Real Strategy mod, I am having the best time on Civilization 6 thus far. Given I purchased Civilization 6 only 18 months ago and have completed probably no more than 20-25 games, with my latest game as Theodora, I lost a city to the Americans on turn 55, and nearly lost my capital to Sumeria a few turns later. America declared a surprise war on me, took over one city and then we scrimmaged back and forth on the outskirts of another city of mine. Sumeria took advantage of my weakness and also declared a surprise war on me a few turns after America, but I was able to hold them back. I managed to re-take my lost city about 30-35 turns later and now crashing the Americans, but something like this has never happen before, at least for me. I know I am only playing on King and win fairly comfortably, Emperor is still pretty impossible for me... All I wanted to say is, this "fun challenge" got to do something with the Real Strategy mod as every AI move appears to be "smarter" than the base game AI.

PS. I am playing on continents, huge map with 12 Civilizations and 18 City States. The AI has taken over / destroyed at least half the City States so far and I am almost half way through the game.
Agreed, the AI seems to be a lot more fun to play against now; feels more like civ 5. My only gripe with the AI now is how inefficient it is at warfare and maximizing yeilds, but that's probably not possible to fix (if at all) until firaxis releases the dlls.
 
Top Bottom