Age of Wonders: Planetfall - Dev Diary #62: AI Personalities & Diplomacy Improvements

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

ThomdeM

Programmer
Paradox Staff
Aug 6, 2018
56
45
Hello Everyone!

I’m Thom and part of the gameplay programming team at Triumph where I’m usually the person working on Player vs Player Diplomacy. Today I would like to discuss and show you some of the biggest changes we have made to the Diplomacy systems. All of these changes will be part of a free patch that we’ll give out on the 26th of May, along with the Invasions expansion. That’s in less than a week from now!

Diplomacy has been one of those ever evolving systems in the game just like the economy and AI systems. A lot of you have been discussing diplomacy here on the forums and have been sending us lots and lots of feedback which has been such a great help in guiding the changes that we make to the game! It’s really great to see so much love and insight about the game!

A couple of important aspects about diplomacy that we wanted to address in the free patch are that AI controlled commanders would often feel the same and lack depth and flavor. At the same time diplomacy has largely been a closed system which would make the AI’s behavior unpredictable or unreadable at times. That is why we have worked hard on addressing these issues and came up with the following big changes for diplomacy:

AI Personalities

AI controlled players now have a personality, which introduces a whole new way of interacting with them and gives you more agency in steering the relationship you have with them. These personalities consist of two traits:
  • The Strategy Trait
This trait determines how the AI will go about managing their empire, what kind of focus they will have as a player and what their general diplomatic plans will be. For example: The Operative might put in more research into covert operations and deploy those more often where the Mercantile player is more focused on building an economy and dealing with NPC factions.

  • The Preference Trait
This trait is all about what kind of things the player will like and what they dislike, it offers you more ways of influencing their opinion of you. For example the Xenophobe player will dislike it if you become too close friends with the NPC factions but the Elitist player will adore you for parading large armies.

AfGNQENWoJ1cyhdACDH8KdC0bZt-lL7S9MbzXH_PJC9Yruqf3a-0vJrkZYO4ECyBXod97jJgzduaGEVATBK2h3qa5MQdVL18NULJY6bIiemKgl8o5E8RXXTvRh8TLfCBssnH09ue

AI players will speak out about their likes and dislikes which can reveal their personality.​

However, you don’t know the personality of the AI players right from the start! Luckily there are multiple ways to discover them; Both can be discovered through infiltrating the other player or by sharing an intelligence sharing pact with them. However, you also discover the Preference trait by simply interacting with the other player by trading, complementing (or insulting) or denouncing them. You also discover the trait once you trigger one of their likes and dislikes if you like a bit of a gamble.

Once discovered, the traits will show you how they influence the AI and what things trigger this like or dislike. We wanted each AI to feel like a different person, who had to be treated in a different way in order to be befriended. Rather than playing against a group of identical puppets, you now feel like you're playing against a group of individuals who need to be understood and dealt with separately. You can still influence their opinion through the regular means but it’s always good to know the person you are dealing with!

dzpy1lkbdYfCzL1tBfiX-1BfUYiTYAMN5qtxAVjiAqAcGGBRW1qIDxRnU8VmC7uvNDcglFzf0iknQG1MlVtYt6YjONt98YnFbfFeznDzSifzUFFlfiNcmR__NfsfM3m5q8OOxb6j

Nyla doesn’t seem all that impressed with us at the moment.​

Diplomacy Cleanup

You’ve likely seen this trade response before: “Unfortunately, I must decline your proposal as it does not align with my plans.”

No matter how much energy you would throw at the AI player, the numerous compliments you sent, they simply do not want to agree to that defensive pact. That is really annoying! Previously AI players would have their own agenda and would evaluate each player based on a number of factors (a lot of them invisible to the player), but only one of those factors was their opinion of the player. This would essentially close off a lot of the system and as such the player would not always know why the AI behaves the way they do or how to influence that behavior.

mG7GQmoFZb8DFQxZKHpWBJW_pDPlMHk-kqQ9b236xJgp_43OY_RjPQMyf0ERuqbgBtUlqGxWf6VjHMGwADO_g3e5YXX-e-HJpryHPJv05PXnWUz1ZJKRRZvwmjPEwPrBlYkHO81k

A thousand energy and still nothing! Argh!​

That is why we reworked the AI planning system and have exposed all of these internal hidden factors as part of their opinion. Additionally, we have also made sure that this AI “plan” is much more reflective of the current situation by updating it more frequently and basing it almost entirely on their opinion of the player. The AI planning budget has also been reworked to be more flexible and more accurate towards the player. With these changes we want to make diplomacy more transparent and give the player more feedback on how they can influence the opinion of the AI player and eventually also the diplomatic state you share with them. The AI may still show you this message, but now, you know that it means they don’t like you enough to agree to a better diplomatic state.

Sqt3VZ6fJecwbcan7hAX3-Qh0DWNwv4x52mOfbTqYvAke2VEdhv6Lsf4p_TD7OtIDo_yAm9RntDnkYEjCtkYOspBl6J9L0qgvDyaM6dUBf3h4mNBDj-SJATjn6szYi9Irx4U3YMo

Even though I ignored their claims, they are in need of another ally
and we share a common friend in Kleopesia which are now visible modifiers in the breakdown.
There is still hope for the relationship!​

The Diplomacy Feedback System

Many of the issues in diplomacy came from readability of the system and from a lack of player agency. With this expansion we strive to solve these problems as best we can and another solution for this is the new feedback system. Sometimes the AI would send you messages to inform you about a situation or to express their diplomatic intent. However flavorful these messages could be, they would sometimes only give you a vague idea of their actual meaning.
That is why we’ve slightly altered some of the messages but we’ve also introduced a new system which will now add an extra bit of text to these messages to show their meaning or how you can deal with the situation. It will also notify you of any relation modifiers or casus belli being given to either you or the opposing player. For example, an AI would send you an insult because they are just that type of personality, it also gives you a Casus Belli for having been insulted, the new system will now tell you about that!

hlMJwU80ORfHnMOuNLGHNmCcRqAGrUbVdK_K6A9XXS6Iic6xdVSPiEIwtLOZZZKlIEUL_gk1xNOSG8HPgrWxlUFo1SvMTGrKGUeptoOh7q_Qj03vUou9-fQplxUIoup_t0bqnZxz

At least now we know we got 3 Casus Belli points out of it.​

The Neglect System

With their newly gained personalities, AI players will want to stay in contact with players they like. If neither side of the relation has started interactions in a while and the relationship is quite positive, they will start to feel neglected. This starts off very minor at first but will grow over time. Completing a successful trade, achieving a new diplomatic state or sending a compliment will negate the neglect. We’ve introduced this system to engage players more in active diplomacy, similar to NPC factions giving quests and the occasional demand to keep the relationship up.

Minor Features and changes

Of course we’ve also been hard at work to address a lot of small issues, bugs and hilarious exploits in the system to improve the diplomatic experience and stability of the system. Your feedback and reports have been an enormous help in making these changes! There’s still a couple of more small but exciting changes however:

  • Since the opinion of a human player does not have any direct gameplay consequences these are no longer visible in order to streamline the diplomatic interfaces.
  • You can now also trade equipment from your Arsenal in negotiations.
  • During team games and vassalized relations you can now trade treaties and resources per turn.
  • You can now exceed the max influence (200) during your turn so you still have a chance to spend it before it is lost at the end of your turn. You’ve likely had it happen where you completed a quest but you had no storage for the influence reward, now you can still use that influence!
  • When a vassalage is formed, all occupied structures will go to the overlord in the relationship to prevent players getting new sectors or colonies by surrendering as vassal after occupying these.
  • AI players will now only threaten about war and declare war if they can actually launch an attack. This also includes a distance check as AIs may not be able to guarantee an attack if they are too far away.

There is still more to come but you can discover all those diplomacy changes and more when the free patch launches next week on the 26th of May along with the new expansion!
 
  • 19Like
  • 2
  • 2
Reactions:
Any chance of tweaking the AI's economy, unit management and aggression as well? I'm tired of the AI being way too cowardly even in FFA team games (where everyone is in a separate team and permanent war with each other) on Extreme difficulty, not building enough race/tech units or putting enough people/colonies on energy, and buying way too many dwelling units. I remember AoW3 AI being more aggressive in creating and using its units compared to the AI in this game right now.
 
  • 2
Reactions:
Any chance of tweaking the AI's economy, unit management and aggression as well? I'm tired of the AI being way too cowardly even in FFA team games (where everyone is in a separate team and permanent war with each other) on Extreme difficulty, not building enough race/tech units or putting enough people/colonies on energy, and buying way too many dwelling units. I remember AoW3 AI being more aggressive in creating and using its units compared to the AI in this game right now.

Yes! We have been putting in changes and general fixes for these systems. The patch will address some of the AI issues causing them to expand their empire more and behave more aggressive as well. Additionally we have been making some general changes to the war behavior of the AI which should prevent them from going to war when they are too far away to launch an attack, although that last bit would not be applicable for your FFA games.
 
  • 2
Reactions:
This sounds like a really good step in the right direction! Excited to see how things continue to develop and for the upcoming expansion!
 
  • 2
Reactions:
With their newly gained personalities, AI players will want to stay in contact with players they like. If neither side of the relation has started interactions in a while and the relationship is quite positive, they will start to feel neglected. This starts off very minor at first but will grow over time. Completing a successful trade, achieving a new diplomatic state or sending a compliment will negate the neglect.
426l4t.jpg
 
  • 9Haha
  • 1Like
  • 1
Reactions:
  • AI players will now only threaten about war and declare war if they can actually launch an attack. This also includes a distance check as AIs may not be able to guarantee an attack if they are too far away.

That is great news! Does this also include a check for other ongoing wars? No AI can effectively wage two hot wars at once.
 
Finally, hopefully now I will know why the f*ck that Amazon faction does not want to have an alliance with me even though I have +800 Relations with them!

Possibility to sell your arsenal in diplomatic relations is also a nice feat, usually you don't get that much Energy after scrapping an item so maybe at least it will help you sugarcoat that Syndicate AI player...
 
Can we trade things that we can manufacture but are not in our arsenal? If not, can we voluntarily make stuff without equipping it to a hero so we can trade that to another empire?

I do hope that there's the option to buy stuff off of the AIs too, especially stuff they can manufacture but are not in the arsenal. That would actually be a great reason to engage in trade with the AI empires that just doesn't really exist right now.

PS: Have the AI bonus resources been tweaked or delayed? A huge amount of extra cosmite and influence in particular in the higher difficulties really screws with the capability rankings, makes the AI spam covert ops, and they get huge amounts of NPC units.
 
  • 1Like
Reactions:
Can we trade things that we can manufacture but are not in our arsenal? If not, can we voluntarily make stuff without equipping it to a hero so we can trade that to another empire?

I do hope that there's the option to buy stuff off of the AIs too, especially stuff they can manufacture but are not in the arsenal. That would actually be a great reason to engage in trade with the AI empires that just doesn't really exist right now.
Equipment needs to be in the arsenal to be eligible for trading however you can trade anything you can buy from the shop. Purchases from the shop go straight into your arsenal so there's no equipping involved however you do need to pay the base resource costs.

PS: Have the AI bonus resources been tweaked or delayed? A huge amount of extra cosmite and influence in particular in the higher difficulties really screws with the capability rankings, makes the AI spam covert ops, and they get huge amounts of NPC units.
We've not made any changes to the difficulty settings in this patch. A lot of the issues you describe should have been addressed for a large part in the Tyrannosaurus Update, but we're always working on improving the AI. If you have any specific examples and saves please make a bug report or send them to us at logs@triumphstudios.com with a description of the situation and we'll have a look.
 
We've not made any changes to the difficulty settings in this patch. A lot of the issues you describe should have been addressed for a large part in the Tyrannosaurus Update, but we're always working on improving the AI. If you have any specific examples and saves please make a bug report or send them to us at logs@triumphstudios.com with a description of the situation and we'll have a look.
I was still seeing a lot of AI who were running around with multiple stacks of tier 1 NPC units. I guess I haven't noticed the covert ops being as much of a problem.
 
I thought the diplomacy system was clear enough. It did need some improvement in some areas such as super good relations but continuing to decline the alliance offer as such. I generally do extra legwork such as check AI's relations with other players and me. An idea can be gleaned from it but usually a maybe. It isn't good for the AI to tell player everything. Human players don't tell AI everything as well. And they need to be capable of betrayal as well. Humans can betray too. :p

I've had AIs that always declined the alliance offer because they wanted to be on their own and didn't wanted to be burdened with being in a relationship. They generally one of the two choices when the game is nearing its completion, they choose to join me in alliance or they choose to try and fight me. I just let them be free and go on my own way until they want to join me or they want to kill me instead. No need to stress over each tiny detail xD

I'm curious, how do the AI manage the relations with NPC Factions now? Cuz when I turned out the aggressiveness of NPC factions to max and i got results like this.. as shown in the screenshot, in bottom right where the minimap is, The AIs just told the NPCs off and then ended up in wars against many npc factions. at least two AIs was torn apart and then on top of it, they both had the gall to insult me saying I'm weak while they was getting killed Autonoms, Forgotten, Spacers, the growth all at same time. Needless to say, i slided in and blew up the AI right next to my capital, his defenders was nowhere to be seen, all cleansed by the autonoms and forgottens. Only thing he could muster to fight me is nothing but militia so i just moved in and took his cities and put him out of his misery. Hey, I had max casus belli on them but no enemies to fight.

Then second ai, mara still had some armies left but was being systemically taken apart by many npc factions attacking it on all fronts and was somehow still holding out but what sealed the deal was when mara irritated me by doing Operations on me and calling me names. I decided to join the NPC factions fighting mara and she got removed as the result. I had very huge territory but with almost no armies to defend it with.

Well, technically, I had the biggest army on the map because of NPCs patrolling my lands for me. xD If they wanted to take my cities, they would've had to fight the npcs too who was already in the process of moving to their frontlines to kill the other offending AIs who angered them. If you're wondering what I picked, I picked Vanguard Prometheans, i went out of my way to keep npc factions happy with me and benefited from it while everyone else got killed. npcs pwnt u.jpg
 
Last edited:
  • 1
Reactions:
Yes! We have been putting in changes and general fixes for these systems. The patch will address some of the AI issues causing them to expand their empire more and behave more aggressive as well. Additionally we have been making some general changes to the war behavior of the AI which should prevent them from going to war when they are too far away to launch an attack, although that last bit would not be applicable for your FFA games.
I'm glad to know that. Will the AI also be more willing to fight riskier battles as well? I keep seeing a lot of circumstances where they would rather sit in their capital or sneak around and take largely unguarded colonies, and I wish they were more likely to engage the player and each other head-on instead of being avoidant and mostly sticking to fights that are heavily in their favour.
 
Hopefully this may mean that every AI in a game does not either irreconcilably hate your race, your class or background which made any diplomacy a waste of resources.
 
  • 2
Reactions:
I've had AIs that always declined the alliance offer because they wanted to be on their own and didn't wanted to be burdened with being in a relationship. They generally one of the two choices when the game is nearing its completion, they choose to join me in alliance or they choose to try and fight me. I just let them be free and go on my own way until they want to join me or they want to kill me instead. No need to stress over each tiny detail xD

That's your approach, I play the game in such a way that when I purposely need to either ally or fight a faction I start to take interest in it, I don't anylyze why's and what's behind their behaviour. I either "buy out their favor" or make war with them. I also like to use AI players as an additional resource source when I'm low on Energy etc. Diplomacy is a supplement system in the game, if the game provides more information to streamline it, then it's only for the better. There's already enough to take into account when playing, I don't need to "crack" another system. Plus you still need to uncover info about them via scouting or Covert Ops, as such the info is not serverd on a golden plate, so that only makes the Covert Ops more useful. The game was not clear enough on why a faction does not want to join you even if some factions do so while you having much lower +reputation with them. It's clear the system was lackluster if people provided feedback for it. Triumph specifically says they listen to feedback so those changes seem to be logical.

The other change, pesonalities, is probably a natural evolution/fleshing out of some of the backend stuff that was already in the code. The changes are welcome.
 
For custom commanders, is there a way to set (or at least influence) the choice of AI traits they'll get?
 
  • 1Like
Reactions:
That's your approach, I play the game in such a way that when I purposely need to either ally or fight a faction I start to take interest in it, I don't anylyze why's and what's behind their behaviour. I either "buy out their favor" or make war with them. I also like to use AI players as an additional resource source when I'm low on Energy etc. Diplomacy is a supplement system in the game, if the game provides more information to streamline it, then it's only for the better. There's already enough to take into account when playing, I don't need to "crack" another system. Plus you still need to uncover info about them via scouting or Covert Ops, as such the info is not serverd on a golden plate, so that only makes the Covert Ops more useful. The game was not clear enough on why a faction does not want to join you even if some factions do so while you having much lower +reputation with them. It's clear the system was lackluster if people provided feedback for it. Triumph specifically says they listen to feedback so those changes seem to be logical.

The other change, pesonalities, is probably a natural evolution/fleshing out of some of the backend stuff that was already in the code. The changes are welcome.

I treat diplomacy as a way to interact with AIs and talk with them. I don't even see it as a source of energy/cosmite/etc. I use it to gauge how the world stands among people and figure out who's enemies of who. That way I know who to join in the dogpile on lol Parts of the diplomacy was bit hard to understand yeah, stuff like I refuse to join me in alliance and whatever yeah. I would've liked to know why.

What I fear is that it might make the AI too easily predictable. The AI could tell you that I refuse to join you in alliance because I am too busy in a war against another foe and if I was to sign pu an alliance with you and that would make our cities too vulnerable to being attacked by new enemy. Now what this did is that it just told me that the AI I am trying to recruit is very vulnerable and can be conquered if I attack him/her now. This is very valuable intel. There was no way for me to know this until they just told me outright and then now I can go ahead and conquer them instead and then roll up onto the weakened AI that the AI i just subjugated and take the territories of two AIs the easy way.
 
What I fear is that it might make the AI too easily predictable. The AI could tell you that I refuse to join you in alliance because I am too busy in a war against another foe and if I was to sign pu an alliance with you and that would make our cities too vulnerable to being attacked by new enemy.

I think the main point of the changes in the system is to provide more information on how to influence opinion of AI about you and to show factions that are the least to make an alliance with you, so to be precise, cherry pick AI players that you should focus on destroying. On harder difficulties it is hard to maintain a front on each side so you ought to look for alliances, otherwise you will be steamrolled. Ultimately the game is about conquering a planet. You are provided with information and it is your choice how you'll use it... even if it means backstabbing a potential ally.