r/civ • u/RealRomanHoliday • 8h ago
VI - Discussion Finally, after over 160,000+ lines of code and 10 months, I released the V5 beta of my Civ 6 AI mod and played the base game AI, V3 and V5 side by side for 150 turns to see the difference!
Hi, I'm RomanHoliday! You may or may not have heard of my AI mod RHAI over the years, whether it's Ursa Ryan experiencing it (I still remember when he lost as Rome in V3 TSL by a single turn; what an exciting day lol) or VanBradley watching it nuke people.
I have been working on the next version of my AI mod, RHAI V5, for the last 10 months whenever I had the chance (my room was very hot during the summer!), and it is finally out as a public beta for everyone to enjoy! In total, since V3, I have spent over 2,000 hours watching and analysing AI test games (237 in the last 2 weeks alone lol, my computer and my electricity bill are temporarily cooked) and more than 1,500 more hours writing code for it. It's basically a second volunteer job I have taken on at this point, but I guess I don't mind lol.
So be warned, this AI is significantly harder. I have managed to completely push the limits of what is possible over the four versions with the modding tools we have, and it has all come together in V5. Ursa Ryan is not looking forward to this, this time!
I do a load of testing, but I am normally comparing the mod to the previous version and A/B testing a new feature/idea. So I thought I would compare the latest version to the base game and V3 out of interest.
I ran one map three times, one with the base game AI, V3 and the V5 beta (eight AIs on Deity, Quick speed, 150 turns, one game each), to compare the metrics. Below is an example of one key area that is significantly improved that I spent ages working on: Settling! As any Civ player will know, this is really important for a good old snowball and a bit of tempo.
From a lot of trialling different ideas I had and looking at how we could improve behaviour trees, unit operations, targeting/ pathing, scoring, reducing stuck settlers in the unit trees and also, importantly, stopping them from just walking into enemy territory (or sending an unprotected settler to the tile next to a barbarian camp), I have managed to significantly improve the settling system with the existing modding access we have! As you can see below. The mod is full of a countless number of changes, and this is just one example.

A few examples of fun features in V5:
Your (very friendly, I promise) neighbours settle the map. Each AI plans up to three new cities at once and buys settlers while there's room (especially with Monumentality golden age!). By turn 100, they have roughly 86% more cities (V3 34%)! That spot you were saving for later? It might not exist anymore.
Wars that don't bounce off walls anymore. Like in V3, a winning AI stops offering peace, and a beaten one can't simply ask for it (with another AI). The base game AIs were at war the same amount of time in the early game, but the beta's took 180% more cities from each other through much improved behaviour trees, ops and attack unit composition (V3 220%)!
Navies that fight. Up to two fleets per AI hit coastal cities, back up sieges and defend ports. That's 678% more ships by turn 100 (V3 422%), and 228 attacks on cities where the base game's ships made zero (V3 39)!
Each AI tries to calculate one long-term victory path. It picks one from turn one and can change course dynamically depending on its environment. By turn 100, all eight were focused on a long-term victory goal they chose, 300% more than in the base game (V3 50% fewer), where three were going for four victories at once! I also have countless micro strategies to develop the AI based on its situation, such as placing encampments next to an aggressive player lol (don't play next to Jadwiga; it's not fun lol).
District clusters planned ahead.Ā District clusters are planned out turns in advance with special slots saved for Industrial zones, future dams and aqueducts, wonders, etc. (I dare you to play against Hungary or Ludwig). They even place down their districts early and switch production to lock in the cost (PotatoMcWhiskey's favourite thing ofc).
Gandhi absolutely adores this mod! I will save the data on that for your own test game ;)
It's on its own Workshop page, RomanHoliday's AI Rework v5.2 (Beta), until it moves to the main page in a few weeks (only run one of my AI mods at a time). Bug reports with saves and logs are very welcome, as always! Thanks so much! RH
Gandhi is still dying to meet you (and this time he knows where your Spaceport is) ;)

