Artificial Intelligence.

Is there any way to implement Artificial Intelligence in this game, for example, when generating new campaigns? Or is it still too early to think about that? I suppose it takes the game developers quite a lot of time to create new content. However, Artificial Intelligence would help generate that content much faster.

Best regards! :blush:

Hard to know exactly what and how the devs are doing. I think one of the most interesting possible applications directly visible for us players is to improve the AI, and perhaps make it more “human-like”?

1 Like

What are you talking? About are asking why they the devs are not using language learning models to build maps, script scenarios, balance encounter, and write scenarios. I’m sure there are some task that could be automated like create topographic maps. but if you want ai generatated campaign your going first need thousands0 of campaign just to train the ai.

2 Likes

yeah.
Too early as in probably decades to early. Well it depends.

LLM (Large Language Models) like ChatGTP are trained on the entirety of the internet and gigantic numbers of scanned books as wells as automatically generated video subtitles. OpenAI downloaded pretty much the entirety of youtube, then generated subtitles and then used them for training.
This is a absolutely gigantic amount of training data. This is also why AI hasn’t really been getting all that much better in recent years. You can’t just add more training data because it doesn’t exist. You can only improve training data but to improve it you need humans to either generate data (write texts) or filter existing data by quality.

AoE2 has a a few hundred official scenarios plus a lot more fan made ones but the fan made ones are not all of equal quality.

Generating text (like ChatGTP) is a linear thing, you just need to predict the next letter.
Generating images is a 2D thing. Since it’s just 3 numbers per pixel (Red, Green, Blue) it’s not too complex.

AoE2 has multiple systems on top of each other that need to interact correctly.
The basis is a 2D map. This part would be relatively easy to generate. We already have random maps after all.
The 2nd aspect is object. Units, buildings, resources. Those follow a lot of rules. Rules are easy to code but hard to teach to a generative AI. Generative AI doesn’t work like normal software.

Is the AI going to understand that certain units belong together or not? Like does it generate Lions on a snow map or give a player units they can’t train. Light Cavalry for Aztecs and so on.

And then there is the whole trigger thing. Does the AI understand what triggers are possible, how they work and how to make them function.
Let’s say the mission is to move a relic cart from point A to point B.
Does the AI understand how to make it possible to move from point A to point B. Maybe there is a cliff or water blocking the path.
Does the AI understand how to communicate to the player where point B is. Like does it make a marker on the map.
Does the AI know how to make the mission challenging. Are there the right number of enemies? Are point A and point B even far enough apart from each other?

The getting the right challenge part is the hardest. How to test if the scenario is doable. Technically and practically.
Like how to test if the winning condition even works. Prevent softlocks and so on.
And then how to test if the mission is not to easy and not too hard.

You would have to develop and AI that plays like a player to effectively test those scenarios. Because testing with humans would completely ruin the point of making them AI generated.

Well and in the end there is also the question if it’s even going to be fun and interesting.
AI usually generates very average and boring things because it’s not really creative. It’s trained on a lot of data so it will be very likely to spit something out that is very common in the training data.
It can’t come up with new kinds of missions, it will just remix existing ones.

Current machine learning based AI that plays video games (like DeepMind) requires very powerful hardware and only works on some kind of games.
I don’t think most people have a server farm full of GPUs at home.

And even then it’s not human like at all because it can’t adapt. It is only based on it’s training data.
For example the Go AI (AlphaGo) that beat the Go champion can be beaten by anyone by just knowing one simple strategy.
Also that AI needs over 100 GPUs to run.
The AI can’t adapt to new strategies and it doesn’t even understand the rules of the game.

Go is a lot simpler then AoE2 and it’s a turn based game instead of a real time one.

I don’t think we will have machine learning based AI play AoE2 any time soon.

2 Likes

Considering how weird AI results can get (look at how it’s unable of generating texts & symbols correctly in images, which a human artist would get right), results would be very disappointing if the campaign was made by an AI. And results would tend to look very similar and likely quite broken.

1 Like