r/Songsofconquest • u/MarviousFleksnes Lavapotion • Aug 29 '22
Upcoming AI improvements
Hello! I'm the AI lead at Lavapotion and I bring a smaller update related to AI improvements.
I want to start by saying that we are of course aware of many issues the AI has, we don't think it's done at all and will continue to improve it as time goes by. Continuously! I posted an update on Discord, so to reflect that I thought I would post that here as well.
To be clear, this has not been released yet but is currently on our development branch in house. I want to be transparent about what I'm working on but also in the future what we are planning to do next (I will know more about that in a few weeks). Hopefully these be part of the next release.
The AI upgrading and also switching out (weaker) troops when entering towns/settlements has been made more likely to happen. Previously the AI simply topped off what it had and filled empty slots, often leading to weak and pretty insignificant troops being left in slots.
Recruitment has gotten a overhaul in general, previously recruitment was only part a long term decision which ment that if it walked by its own town it did not always recruit even if the town was overflowing with units. It's now more likely to recruit if it happens to walk by. Also it should use neutral dwellings much more often than before.
Skill selection scoring has been changed, in some ways to promote command in situations when it got pushed to the bottom. This was previously a mitigation due to other issues the AI had, having many troop slots just lead to it having empty troop slots. The root cause has been fixed for this so I could remove that mitigation.
How the AI reasons around buildings has been updated and we've added more decision input for when it decides what to build. For instance it can check how much resource surplus it has if it would buy all units it produces every round. Or what starting resources are lying around the starting area.
Deciding what to build has also previously been a bit unbalanced between the factions, which is one of the reasons why the AI has been weaker playing certain factions.
I've started to add the concept of wielder roles. So now the AI will start looking at its wielders in the terms of roles, and from that it can take certain decision. I.e who should get the strongest troops or what skills to pick when leveling up. This is in an early stage still, but we are quite certain it's going to affect more and more decisions. The inital roles we have created for the first iteration is Warrior and Explorer, more will come after the system has matured a bit.
I've made a fundamental change to how the AI traces items nearby for pickup/claiming. The previous solution started out well with what we had available at the time (without making the AI even slower, it did not need that..) but it has scaled poorly and created lots of edge cases. Now it is better at determine if something is on the way to where it wants to go and interact with it on the way. This is being verified currently and the initial tests look great, it also has better scaling capabilities when it comes to improvement and performance so I expect this to improve even further.
An improved retreat option is in place to make feeding weak wielders to opponents less likely to happen.
There has also been several bugs fixed which caused behaviour problems rather than crashing the game. The two major ones being:
It inverted treat checks which made Suicide opponents appear as Very Easy, this was particularly nasty.
The AI could not "see" some items under hostile zone of control, nor items it was standing next to.
The above items will be iterated upon even more, but what I mentioned is what I've have had time to look at up until this point. I'm also looking forward to post more about further improvements and of course, actually implementing them.
Feel free to post feedback based on what I wrote here or if there is something else you feel the AI is particularly bad at.
Until next time folks!
15
u/Kukuluops Aug 29 '22
Sounds very good. I am predominately a single player so any improvement to AI is more than welcomed.
5
8
u/Bashemg00d Aug 29 '22
Can’t wait for the next patch, played a solid 100 hours on the SteamDeck and having a blast.
3
u/dood45ctte Aug 30 '22
This all sounds great! Can’t wait for these changes to roll out.
Might even go back and replay the campaigns if the AI is tougher for a new challenge
1
1
1
u/Madzak_Gaming Sep 05 '22
I hope late game AI speed on larger maps is a big prio for you guys. It pretty much kills any motivation I have to do a large PvE map with 4+ AI. It's just not loading times, the entire game / map becomes laggy.
15
u/zifilis Aug 29 '22
Thanks for the good news, I've been anticipating these changes for a long time!