Welcome to this week's Dev Diary! Today I'm back to talk about some of the changes we've made to the AI for 1.34.
National Ambitions
For a long time, there has been code and script for the AI to be aware of the conditions of its missions and decisions and try to achieve some of them. But because of various issues this has not had a significant impact.
For 1.34, weve made sure the AI takes many of these conditions into account, especially those related to conquests. We also made the AI pursue cultural unification, depending on government rank. These changes will work together with the AIs more organic desires to shape its ambition and strategy. The result is an effect which is just noticeable in terms of AI behavior, but compounds over time to create AI empires - sometimes historically reminiscent - that provide a real challenge to players who continue into the late game.
We were a little worried that this might cause games to all look the same, but our hands-off overnight games look arguably even more varied than before.
Here are a bunch of recent hands-off 1821 maps, only slightly cherry-picked:
It makes us happy and proud to see the AI form historical countries such as Germany, Italy and Qing.
Typically, these AIs balance off each other nicely. If your plan as a player is to Kill Ottomans early, then chill, you may find that youve just aided some other AI in taking their place as your end-game boss. Admittedly though, a downside of this more opportunistic AI is less clean borders.
Peace Negotiation
What started out as an investigation into why AIs often left OPMs alive in peace deals, turned into a slightly bigger project.
When the AI is winning a war, and making demands, it has a bunch of preferences that it tries to balance against each other for an optimal peace deal. This is unlike when it is losing, where it will only care about objective measures such as war score cost. However, when the AI is winning, but receives an offer, it has previously relied on very coarse-grained expressions for whether the offer matches its preferences:
- Does not want parts of the offer
- Requires X to be part of the offer
- Wants other concessions than gold
Here, I was trying to get out of a bad situation by giving away my allys land, but Nassau wouldnt have it. Its not that they dont want Candar to be released - note the green thumb - its that theyd much rather have me release some of my own land. Unlike the old Requires X to be part of the offer, this new condition can not be circumvented by completely filling the peace deal with less important treaties. As a consequence of this, weve also been able to loosen up the Does not want condition by making the thumbs green in more cases. One more subtle but important change is that when an AI warleader considers a separate peace with individual enemies, it will be more lenient. This helps expanding AIs take more stuff, while also reducing the risk and cost of war, compared to just waiting for the enemy warleader to sign a deal. It will also make it more risky for players to start a war where they rely too heavily on their allies. As a related side note, weve fixed a crash related to the PRESS_THEM_FURTHER moddable define. If enabled, it makes your war allies who have been promised land get mad at not getting enough land, even if the war leader doesnt take anything for itself. Independence Wars
Given that were doing a Scandinavia-themed update, it seemed appropriate to do something about subjects willingness to declare independence. We havent changed a lot, but subjects will overall be a bit bolder when it comes to declaring independence. In particular they may now do it while at war, if at 100% Liberty Desire, so no more constant wars to pacify your subjects. Theres not much more to say about it, but we can for example see independent Sweden a bit more often, as well as a collapsing Timurids and occasionally breakaway nations in the Americas. War Evaluation
(But Tunis will accept once I start the war) When the AI considers starting a new war, it will look at basically the same information as the player can see in this window to figure out who will join on either side. Unfortunately, this has had a couple of bugs, related to the Attitude towards enemies and Distant war reasons potentially changing as the war starts and additional countries join. This has made both players and AIs declare suicidal wars. These inconsistencies have now been fixed, where we could find them. But the problem remains when predicting acceptance for recursively called allies (such as allies of the Holy Roman Emperor when attacking a member state). Because of this, already in 1.33, the player interface doesnt try to tell you whether those countries will join or not. But the AI still tried to look at the checkmark. In 1.34, the AI will simply assume that recursively called countries would all join. This will fix the Burgundy suicides into Liege bug. Passive Subjects Players with Rights of Man are able to set their subjects military focus to Passive and Defensive, but these focuses have been a bit wonky for some time. We fixed a number of bugs with these for 1.34, and there is one I would especially like to share. In very simplified terms, this is how Passive was originally coded:
Objective #1: Avoid foreign territory.
Objective #2: Avoid enemy armies on home territory.
Objective #3: Avoid attrition (with a big margin if possible).
But then single-province subjects with big armies would stay and take attrition (especially if another country is also standing there), as well as when enemy armies are approaching. So the objectives were reordered:
Objective #1: Avoid enemy armies on home territory.
Objective #2: Avoid attrition (with a big margin if possible).
Objective #3: Avoid foreign territory.
And it turns out the AI knows you cant take attrition while fighting a battle So passive subjects would sometimes actively seek out enemy armies on foreign territory in order to avoid attrition!
Other
There have been a number of improvements to for example army and navy handling. This Dev Diary is already long enough, but the biggest bug worth mentioning is when the AI would just lock its armies in place near the coast, while its navy was too afraid (often irrationally) to come and pick them up. This easily caused e.g. Denmark/England/Spain not making themselves useful in wars.
Historically, many AI bugs have been caused late in the development cycle of a patch, perhaps because they often need time to be found. Right now, were quite happy with the state of the AI in our internal builds so we will try not to repeat that mistake by stirring things up before 1.34 releases.
Patch Notes
Here are roughly the AI-related patch notes so far. This is still WIP and a more final and curated list will be released in connection with the update as usual.
Buildings
- AI will now properly calculate when to construct Docks based on a multitude of factors such as sailor percentage, idea group choices, capital position and more.
- Fixed that AI sometimes deleted all forts right after a bad war.
- Fixed another case of AI deleting forts unnecessarily.
- Fixed bug that 'Conqueror' ruler personality made AI delete all/most forts.
- AI less keen to build fort in capital (though still preferred). This will somewhat reduce the fort slog in Central Europe.
Budgeting
- Changed AI budgeting algorithm to be more flexible. Fixes e.g. small CNs sometimes not colonizing when they should.
Geopolitics - Declare wars
- Fixed some cases of AI declaring war over provinces it can't/won't take.
- Made AI less likely to declare war on island nations it lacks the transports to invade.
- Fixed bug that revolutionary AI could declare war on coalition target with any cb, thinking coalition members would join.
- AI is no longer blocked from declaring independence when at war.
- Fixed bug that sometimes made aggressor AI erroneously think HRE allies would refuse to join when attacking HRE minors.
Geopolitics - Missions and Decisions
- Added AI weights to mission trees which make them now more considerate which mission they want to strive for and how much (for context related reasons).
- AI now understands and tries to achieve army_size and army_size_percent triggers in missions.
Geopolitics - Other
- Fixed bug that AI couldn't get hostile towards, and hence rarely attacked, others vassals and some other subjects.
- AI is now better at evaluating when to annex/integrate a subject.
- Fixed bug that catholic AI colonial nations avoided expanding into overlord's Tordesilla regions.
- Reduced AI avoidance of having interest in provinces that are vital to allies.
- AI Duchies are now permanently interested in provinces of their culture, Kingdoms their entire culture group, and Empires also all provinces on their border.
Peacemaking
- Fixed some issues with AI peace acceptance 'wants other concessions than gold' and 'does not want anything else', causing AI to often leave OPMs in peaces.
- Fixed bug sometimes preventing AI from taking the last enemy province.
- AI warleaders are now more happy to make separate peaces with non-cobelligerents.
- AI will unconditionally surrender in more cases.
Army
- Fixed one bug that made AI send armies far away instead of defending home.
- Made AI more likely to reinforce adjacent battles.
- Improved AI attrition handling. Should get both less attrition and less confused behavior.
- Fixed bug that AI helped allies with rebels even when at peace.
- AI overlord now treat subjects' rebels like their own in more cases.
- Fixed bug that made AI ignore flanking when evaluating battle.
- Fixed multiple cases of AI subjects being stupid when set to Passive or Defensive.
- Increased preferred size of AI armies, especially late game.
- Increased AI desire to disrupt sieges, especially with high progress.
- Improved AI logic for when to abandon sieges.
- Made AI armies prioritize coordinated offensives more.
- Made army AI try to stay close to enemy armies when it has nothing else to do.
- AI somewhat more likely to defend homeland.
- Improved AI for consolidation before battle.
- Fixed instance of AI armies going back and forth when sieging.
- AI vassals no longer delete exiled armies if they can get home.
- Fixed issues with autonomous sieging and rebel suppression missions.
- Fixed case of AI armies canceling movement every other day
Navy
- Fixed some issues with AI naval invasions.
- Made AI better at understanding when a naval invasion risks being intercepted.
- Fixed bug that made AI often unassign general when naval invading.
- Fixed yet another case of AI naval invasion stalling forever.
- Made AI fleets consider troops further away when protecting straits.
Trade Company
- Fixed bug that AI sometimes wouldn't ever core Trade Company provinces.
- AI will no longer accidentally remove trade companies by creating states.
Cheats
- Fixed bug that AI could add provinces to HRE when emperor, even if not a member.
- Fixed bug that AI could use Break Alliance for Favors diplomatic action with Leviathan disabled.
That's it for today. I hope you found this Dev Diary interesting!
Next week my colleague Pava will be showing all the new Monuments that will be added in the 1.34 Update, along with some game balance and changes we want to share and discuss with the community, coming also for free in the update.Europa Universalis IV
Paradox Development Studio
Paradox Interactive
2013-08-13
Strategy Simulation Singleplayer Multiplayer
GameBillet
5.09 /
€
Game News Posts 498
🎹🖱️Keyboard + Mouse
Very Positive
(86987 reviews)
http://www.europauniversalis4.com
https://store.steampowered.com/app/236850 
The Game includes VR Support
EU4 LINUX [50.69 M]
Europa Universalis IV: American Dream DLC
Europa Universalis IV: National Monuments II
Europa Universalis IV: Conquest of Paradise
Europa Universalis IV: Conquistadors Unit pack
Europa Universalis IV: Native Americans Unit Pack
Europa Universalis IV: Songs of the New World
Europa Universalis IV: Songs of Yuletide
Europa Universalis IV: Native Americans II Unit Pack
Europa Universalis IV: Colonial British and French Unit Pack
Europa Universalis IV: Muslim Advisor Portraits
Europa Universalis IV: Wealth of Nations
Europa Universalis IV: Muslim Ships Unit Pack
Europa Universalis IV: Trade Nations Unit Pack
Europa Universalis IV: Res Publica
Europa Universalis IV: Anthology of Alternate History
Europa Universalis IV: Indian Subcontinent Unit Pack
Europa Universalis IV: Indian Ships Unit Pack
Europa Universalis IV: Wealth of Nations E-book
Europa Universalis IV: Republican Music Pack (Skopje Sessions)
Europa Universalis IV: Art of War
Europa Universalis IV: Evangelical Union Unit Pack
Europa Universalis IV: Catholic League Unit Pack
Europa Universalis IV: Songs of War Music Pack
Europa Universalis IV: Guns, Drums and Steel Music Pack
Europa Universalis IV: Art of War Ebook
Europa Universalis IV: El Dorado
Europa Universalis IV: El Dorado Content Pack
Europa Universalis IV: Guns, Drums and Steel Volume 2
Europa Universalis IV: Common Sense
Europa Universalis IV: Common Sense Content Pack
Europa Universalis IV: Common Sense E-Book
Europa Universalis IV: The Cossacks
Europa Universalis IV: The Cossacks Content Pack
Europa Universalis IV: Sounds from the community - Kairi Soundtrack
Europa Universalis IV: Catholic Majors Unit Pack
Europa Universalis IV: Sabaton Soundtrack
Europa Universalis IV: Mare Nostrum
Europa Universalis IV: Mare Nostrum Content Pack
Europa Universalis IV: Kairi Soundtrack Part II
Europa Universalis IV: Rights of Man
Europa Universalis IV: Rights of Man Content Pack
Europa Universalis IV: Fredman's Midsummer Epistles
Europa Universalis IV: Songs of Regency
Europa Universalis IV: Mandate of Heaven
Europa Universalis IV: Mandate of Heaven Content Pack
Europa Universalis IV: Evangelical Majors Unit Pack
Europa Universalis IV: Ultimate Music Pack
Europa Universalis IV: Ultimate E-book Pack
Europa Universalis IV: Early Upgrade Pack
Europa Universalis IV: Third Rome
Europa Universalis IV: The Rus Awakening
Paradox Development Studio is back with the fourth installment of the award-winning Europa Universalis series. The empire building game Europa Universalis IV gives you control of a nation to guide through the years in order to create a dominant global empire. Rule your nation through the centuries, with unparalleled freedom, depth and historical accuracy. True exploration, trade, warfare and diplomacy will be brought to life in this epic title rife with rich strategic and tactical depth.
Main Features
- Make your own decisions: Nation building is completely flexible and the possibilities are endless.
- Use your Monarch Power: Experience the new system of monarch power where your choices are influenced by the caliber of the man or woman you have at the top and will direct the ebb and flow of gameplay.
- Experience history coming to life: The great personalities of the past are on hand to support you as you make your mark on thousands of historical events.
- Turn the world into your playground: Enjoy hundreds of years of gameplay in a lush topographical map complete with dynamic seasonal effects.
- Experience the all new trade system: The trade system adds a new dimension to the great trade empires of the period. Gain control of vital trade routes and make the wealth of the world flow to your coffers.
- Bring out your negotiating skills in a deeper diplomatic system: Use coalitions, royal marriages and support for rebels and explore the possibilities of the new unilateral opinion system.
- Engage in Cross-platform Multiplayer: Battle against your friends or try the co-operative multiplayer mode that allows several players to work together to control a single nation with up to 32 players. Featuring improved chat and new matchmaking servers.
- Create your own history & customize your game: Europa Universalis IV gives you the chance to customize and mod practically anything your heart may desire and uses Steam Workshop.
- Processor: Intel Core i3-2105 / AMD FX 4300Memory: 4 GB RAM
- Memory: 4 GB RAM
- Graphics: Nvidia GeForce GTX 460 / AMD Radeon HD 5850Video Memory: 1 GB RAMIDIA GeForce 9600 or higher. 1024MB graphics memory requiredHard Drive:6 GB HD spaceOther Requirements:Broadband Internet connectionAdditional:GLSL 1.3. OpenGL 2.1. Controller support: 3-button mouse. keyboard and speakers. Internet Connection or LAN for multiplayer
- Processor: Intel Core i3 3240 / AMD FX 8120Memory: 8 GB RAM
- Memory: 8 GB RAM
- Graphics: Nvidia GeForce GTX 560 TiVideo Memory: 1 GB RAMHard Drive:6 GB HD spaceOther Requirements:Broadband Internet connectionAdditional:GLSL 1.3. OpenGL 2.1. Controller support: 3-button mouse. keyboard and speakers. Internet Connection or LAN for multiplayer
[ 5951 ]
[ 3198 ]