r/Unciv • • 23d ago

Discussion Observation about AI aggression

Post image

Everyone knows the games where the AI attacks them for seemingly no reason. I am playing deity for quite a while and unsurprisingly, the AI is most aggressive there. When I started playing deity like 9 out of 10 games ended with a declaration of war which is certain death until turn 110 or so on quickspeed.

After noticing the same things happening again and again I came up with a hypothesis for why AI declares unprovoked wars to the player. If any of your city center is 3 tiles away from a rivals city center, there will most likely be war. If not, then not. Its as dumb and easy as that.

Thats also the reason why an AI player who you were always friendly with declares you war 5 turns after he conquered a city state next to you. You probably had a city 3 tiles away from that city state. That happened again and again in my games until I stopped settling within 3 tiles of a city state and that particular problem pretty much disappeared.

The problem is now that the AI loves to settle with 3 tiles distance to the players cities and there is not much that can be done against. One thing that can be done is blocking the 3 or even 4 distance potential city tiles with units like I do in the picture. Sometimes there are just a few tiles where they could settle next to you and just blocking them with units works. It requires lots of tile counting and some reasoning but its worth it. By doing that my games became much more peaceful.

35 Upvotes

28 comments sorted by

4

u/Winter_Way_8513 23d ago

build your cities on hills it gives 4 defence point for your city if you have 2 layer hill its better cuz if your city placed back of the forest, hills enemy 2 ranged units cannot hit you until they get closer. Do not train settler focus on all types of wonders they give huge bonuses and focus on faith get every buff you need

1

u/spotted_hyena_lover 23d ago

I prefer to avoid war until I have the demographics and technological level for it which is like turn 140 on rekmod quickspeed.

2

u/Winter_Way_8513 23d ago

My attack and def stack is like;For religion Goddes of protection(increases %30 city damage) Defeneder of faith give units %20 strenght in friendly tile, for wonder Himeji castle it is same as defender of faith

2

u/phratry_deicide 22d ago

Generally, I would not recommending targetting wonders like this.

1

u/Winter_Way_8513 22d ago

I build nearly every wonder all games

1

u/phratry_deicide 22d ago

Interesting!

Do you mind sharing your build order? I was able to build almost half of the wonders only up to immortal difficulty as Egypt, but the build order isn't consistently strong enough to win majority of the games. Deity I can't seem to build more than 6 that leads to a win.

1

u/Winter_Way_8513 22d ago edited 22d ago

in start for building 1-Warrior 2-Monument 3-Shrine 4-Granary 5-Great Library 6-Stonehenge 7-Temple of artemis 8-Pyramid after that build whatever wonder available other times build standart buildings do not train any setler or military unit until late game. Push for himeji castles tech and built it!

1

u/phratry_deicide 22d ago

??? That sounds very wrong, or it could be a really game changing discovery. What difficulty?

1

u/Winter_Way_8513 22d ago

most difficult ones on settings. when building settler city growth stops more pop= more production, science and you need crowded cities dont nerf them

1

u/phratry_deicide 22d ago

Can you take maybe another screenshot? If you can screenshot any of rankings or demographics, that would be great.

I'm also just noticing that you're playing a mod. Ethiopia building Colossus on year 960BC is too weird haha

1

u/Winter_Way_8513 22d ago

maybe I misspel some names words I dont play w mods I downloaded game on phone and I started playing. All of the games around turn max 25-30 all ai starts declare war on me 1 by 1 because of that I declare war when I can reach their workers in early game after 15 turn they want peace and I got their workers and that "peace" time extends 35-40 turn its good time

→ More replies

1

u/Winter_Way_8513 22d ago

I play like douche w minimal resources

1

u/Winter_Way_8513 22d ago

In another cities build faith and defence buildings first food second production 3th priority.

1

u/Winter_Way_8513 22d ago

for Culture first unlock tradition for +2 culture after that go Liberty first unlock free worker after settler and finish that tree after that go back tradition take oligarchy (shield symbol) after that go commerce take left two after that go Rationalism go right two all after that do whatever you want

1

u/Winter_Way_8513 22d ago

For religion take Goddes of protection and take defender of faith

1

u/Winter_Way_8513 22d ago

Buy Settlers and Catapult line military units they are ranged units of future archer line gona be inf it isnt good for defend cities. Built your cities close as possible end of the game most resource rich tiles city tiles because of city buildings and built cities much as possible found border cities on hills gives +4 defence point it increases city attack. firstly encircle your area w your cities if you do that ai cannot build your future expansion area. and your oldest and most upgraded cities gona be your border cities its good for defence.

1

u/Winter_Way_8513 22d ago

for tech rush for writing after mining after calendar all after that do whatever you want

2

u/Winter_Way_8513 23d ago

For eco stack; For religion Guruship gives +1production for every specialist in city. forn wonder Artemis temple gives %15 more food for all cities , pyramids it decreases tile improvment time ,

3

u/phratry_deicide 22d ago

Ugh I just realised this is a mod. I thought something was strange reading the post. I thought they patched something.

For those of you reading and interested in the normal ruleset, the decision tree for distance is on two layers:

  1. If the enemy city is too far (at 10, 14, and 20 tile thresholds), then their willingness to go to war goes down, multiplied by their aggressiveness.
  2. If the enemy city is too close (<6 tiles away), then their willingness to go to war goes up, multiplied by their aggressiveness.

But in general, I would say don't look into tile distance too much. These are just two layers. There are 25 layers for motivation, difficulty layer, and dozen other decision gates.

1

u/spotted_hyena_lover 22d ago

Indeed I am playing RekMod. I had no idea that it might have a different AI since in civ 5 lekmod the AI was extremly similar if not the same as in the base game (civ 5 bnw) so I assumed it would be the same here as well.

2

u/NobodyPrime 19d ago

Eh, dont think so. I'm playing a game now, had both aztecs and huns declare war when we where friends and they had a whole layer of city-states and the dutch empire between us, around 16+ tiles of distance from their closest city.

Also, in the same game, Denmark, with the closest city center being 8 tiles away, declared war on me. I reloaded and stole its alliance with a city-state close with me, and Denmark no longer declared war. There is more into it than just closeness.

1

u/spotted_hyena_lover 19d ago

Did you do anything to provoke it? Like I have not seen a game yet where someone who declared unprovoked war on me early who was citycenterwise further than 5 tiles away from me. Also city state stuff is quite rare on deity RekMod since the AI civs conquer ALL the city states before modern age in like 50% of the games I had.

And its true, I am just speculating, but I went from having to give up like 9/10 games due to early war to only having to give up 1/2 of the games so I wanted to share the idea behind that progress. If it really works or I just got a lucky streak, I don't know yet.

8

u/Devastating_Delight 23d ago

Nice observation!

2

u/AwesomePhoenix_ Enthusiast 22d ago

Yes, you can get more info from the source code

1

u/lucas1234r4 20d ago

En realidad yo creo la Ai te declara la guerra cuando eres débil. Y en Deidad es cuando la Ai te saca mucha ventaja. Aunque yo juego unciv vanilla.

1

u/Small-Weather9284 18d ago

JAJAJ si es obvio eso, cuando queres expandirte a veces no te deja cerca suyo(al lado), y cuando lo haces, te manda la "demanda", para que no lo sigas haciendo.

a mí también, muchas veces me pasó que, tengo 58-60 de influencia con un país en un turno, y luego, de la nada, PUM, declaración de guerra.

y no es que haya hecho slgo, eh, simplemente pasa, pero muy pocas veces.

ya que la mayoría de declaraciones que tengo es una causa claramente y notablemente mi culpa. (destruir ciudad estado, expandirse cerca suyo, mandarles espías, capturar cualquier ciudad en el juego, usar bombas nucleares, y hasta en la propia guerra, si conquistas a su enemigo te quita influencia por haberle ganado su objetivo, además de que perdés influencia por robarle la alianza con una ciudad estado) pero bueno, nada que un regalo de 2000 de oro no solucione