The Morrígan AI

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
User avatar
KimberlyAzula
Forumer
Posts: 91
Joined: Thu Oct 07, 2021 8:17 am
Location: Germany

The Morrígan AI

Post by KimberlyAzula »

Good day everyone!
This is a post to introduce and share an AI that is very dear and near to me. It has been in development since early October 2020. I (Kimberly Azula) am not actually the scripter, it's CheeseOnToast. But I am the one who decides what is fine to add and what not and what strategies seem "realistic" and old school enough for this AI. And I am the one who came up with the idea and yeah. Anyways, more to that later.

Promotional picture created by RPGKurga
Promotional picture created by RPGKurga
MAI_V5_A.jpg (610.37 KiB) Viewed 7280 times



General Features:
- Can play on most standard land maps, but almost exclusively tested on Arabia. Can "theoretically" play water maps (with its very own special strategy), but actually only team islands and continental (and maps like continental)
- Can definitely not play maps with a nomadic start or where you have to use transport ships with villagers
- Has a very small strategy variance, which in 1 vs 1 consists of no more than three different strategies, but in teamgames the variance is greater
- Only plays the Celtic civilization
- Only plays with default settings, no diplomacy implemented yet, etc.
- Micromanagement for some units
- Is up-to-date and will be kept that way
- Is not a competitive AI, only written for fun and to have my random strategies from years ago implemented into an AI


Why did we create this AI?
The Morrígan AI is basically the manifestation of my playstyle from years and years ago when the HD version of aoe2 was just released and I played a few ranked matches. Back then I had only ever played against the old AI. And I only ever used a few strategies.
And I always loved the Celtic mythology and love the idea behind the Morrígan. CheeseOnToast offered his help and we began working on this AI. I mostly did testing - a lot of testing actually.
The other reason of why this AI came to be was, that I never saw many pros play the Celts which made me quite sad. And I was sick of seeing all those boring archer-rushes and archer-micro as well as scout-rushes basically every single game. Which by the way my AI does not do.


What is the story of "The Morrígan"?
The story behind Her, or rather behind the Celtic Tribe fighting in Her name, is, that one of the female druids who is very close to the Morrígan received a vision from Her, foreseeing the victory in an upcoming battle. The vision was then found to be true, as they won the bloody conflict.
And the druid then prophesized, that as long as they would worship the Morrígan and kept asking Her for assistance, they would win any battle and every skirmish that would fall upon them.
How could their tribe ever lose, if the Goddess Herself always foresees their victory? How can they ever lose heart, how can they ever be defeated by their foes? How can the Morrígan's prophecies and visions ever be wrong?

Credits to Esty for creating this one
Credits to Esty for creating this one
icone_Morigan_2.png (35.22 KiB) Viewed 4427 times

How strong is the AI?
Again, this is not really a competitive AI, but I would argue it is pretty okay on the arabia map. It can beat the DE AI on the extreme difficulty (with very rare exceptions). It loses against basically every AI other than good old petersen on water maps. It can have difficulties on land maps other than arabia. In teamgames it also underperforms compared to 1 vs 1.


Updates:
October, 9th, 2197:
- Included a first iteration of deer pushing
- More farms
- Improved on a few other aspects

October, 12th, 2021:
- Tweaked spearmen-line production, especially in team-games

October, 13th, 2021:
- Tweaked the scouting a little
- Fixed monks being lazy and not picking up relics in teamgames

October, 17th, 2021:
- Fixed a bug with palisade-walls

October, 24th, 2021:
- More likely to train rams under certain conditions
- Fixed some suicidal behaviours of villagers
- Animals can explore the map now (e.g. horses)
- Fixed mining-camp spam in lategame
- Loads of other small things

October, 28th, 2021:
- First version of enemy strategy tracking

October, 30th, 2021:
- Early game scouting improved
- Drush scouting improved

November, 14th, 2021:
- Temporarily disabled walling on maps other than black forest
- Fixed m@a getting stuck on tower
- Fixed some message text

November, 26th, 2021:
- Adjusted and fixed several smaller things

December, 20th, 2021:
- Added WK compatibility (WK version does not build walls around the towns)

December, 23rd, 2021:
- Fixed a bug with scorpions moving to corners

December, 24th, 2021:
- Fixed the Morrígan going m@a only when in a flank position (forgot to remove debug code)

December, 25th, 2021:
- Fixed an issue where the Morrígan wouldn't assign builders to additional TCs
- Fixed an issue with targeting walls of dead players
- Fixed the Morrígan not building houses sometimes

January, 8th, 2022:
-Added a very early build for "standard victory" win condition - this will be a separate download for a while

February, 6th, 2022:
-Added unique unit compositions on standard victory win condition
-Fixed the Morrígan not reacting to enemy villagers in town
-Fixed a drush targeting problem
-Fixed a bug with deer luring
-Fixed some inconsistencies within the resign messages and welcome messages

March, 11th, 2022:
-Updated the current version to be WK compatible and adjusted difficulty settings so the Morrígan can perform in full strength at Davis Cup VI
-Removed the separate downloads - the Morrígan works on both WK and DE
-Added Cartography research

March, 12th, 2022:
-Fixed an issue with the DE/AoC/WK check

March, 14th, 2022:
-Fixed a crash for aoc
-Other tweaks

April, 17th, 2022:
- Added a new strategy for both flanks and pocket
- Fixed an issue with monks that annoyed us A HEL OF A LOT
- Fixed other issues

April, 19th, 2022:
- The Morrígan now tributes all Her remaining resources to a random surviving ally when resigning

April, 20th, 2022:
- Fixed villagers attacking enemy TC foundations

April, 22nd, 2022:
- Fixed several little bugs and a rule that was too long for UP

April, 24th, 2022:
- Fixed an error with emergency mining camps
- Improved defensive tower positioning
- Some more tweaks to different other stuff

April, 25th, 2022:
- More improvements to defensive tower positioning
- Improved reactions towards enemy feudal aggression, especially from skirmishers
- Some more tweaks
- Hotfix for enemy tower rushes

April, 26th, 2022:
- Another fix for enemy trushes
- Fixed a scouting problem

April, 28th, 2022:
- Updated for the new DLC
- Less debug messages
- Changed strategy chances around for pockets
- Fixed a bug where one strategy wasn't able to be chosen for pockets

May, 14th, 2022:
- Improved scouting behaviour
- Adjusted strategy chances and some strategies can only be chosen once for all pockets / flanks
- Updated the slinging strategy to be more inline with what I had in my mind from the beginning
- Plenty of other fixes and adjustments

June, 5th, 2022:
- Actually adjusted the strategy chances and some strategies can only be chosen once for all pockets / flanks

September, 19th, 2022:
- Restructured the code and split it up into multiple files
- Changed the way the Morrígan plays full-water maps, this strategy is in it's early stages though

October, 17th, 2022:
- Improved on the full-water strategy
- Added support for migration-type maps (Islands, Migration are tested), also in its early stages

December, 31st, 2022:
- Improved upon migration gameplay

January, 7th, 2023:
- Fixed some bugs related to stone mining and standard victory

January, 22nd, 2023:
- Added some shared goals (position, attacking, under-attack, ID = 795)
- Some tweaks and fixes

March, 5th, 2023:
- Added a new strategy to the Morrígan
- All strategies have about the same chance to be chosen now

May, 21st, 2023:
- Added first support for Romans; more to come in the future
- Celtic the Morrígan can now research gambesons

July, 23rd, 2023:
- Made Romans fully functional
- Improved upon various other strategies
- Disabled the slinging strategy for the time being, it needs more work in the future
- Romans can now counter mass cav archers as intended


Thank you all for your interest!

Kind regards,
Kimberly Azula



P.S.:
Please don't edit the Morrígan without asking for permission first.
Attachments
The Morrigan AI.zip
The Morrígan AI, version of July, 23rd, 2023
(129.71 KiB) Downloaded 149 times
Last edited by KimberlyAzula on Sun Aug 06, 2023 5:09 am, edited 89 times in total.
There is no denying The Morrígan's prophecies!

lolasik43
Forumer
Posts: 37
Joined: Sat Nov 25, 2017 4:05 am

Re: The Morrígan AI

Post by lolasik43 »

I saw a stream where Udwin played with this AI :)

Hi from UCP Team B)

User avatar
KimberlyAzula
Forumer
Posts: 91
Joined: Thu Oct 07, 2021 8:17 am
Location: Germany

Re: The Morrígan AI

Post by KimberlyAzula »

lolasik43 wrote:
Thu Oct 07, 2021 12:01 pm
I saw a stream where Udwin played with this AI :)

Hi from UCP Team B)
Haha, hi lolasik :D
Somehow you are everywhere I am as well lol. Nice to see a familiar face from the Stronghold Crusader community here as well :)
And yeah, Udwin had made a stream a long time ago about this AI, but it was very early in development back then..
It actually kind of still is..
There is no denying The Morrígan's prophecies!

User avatar
halcyon88
Swami
Posts: 194
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: The Morrígan AI

Post by halcyon88 »

Oh wow this looks great. And exciting news. Been missing me some good CoT scripting.

And cool to know that you're getting creative, Kimberly :D

I am excited to try it out.
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

User avatar
KimberlyAzula
Forumer
Posts: 91
Joined: Thu Oct 07, 2021 8:17 am
Location: Germany

Re: The Morrígan AI

Post by KimberlyAzula »

halcyon88 wrote:
Fri Oct 08, 2021 4:05 am
Oh wow this looks great. And exciting news. Been missing me some good CoT scripting.

And cool to know that you're getting creative, Kimberly :D

I am excited to try it out.
Thank you :D !
And well, is it creativity if you create an AI that just plays like you did (with some slight tweaks) years and years ago?
Have fun trying out the Morrígan :D
There is no denying The Morrígan's prophecies!

User avatar
halcyon88
Swami
Posts: 194
Joined: Mon Mar 16, 2015 2:43 pm
Location: UK

Re: The Morrígan AI

Post by halcyon88 »

KimberlyAzula wrote:
Fri Oct 08, 2021 7:39 am
halcyon88 wrote:
Fri Oct 08, 2021 4:05 am
Oh wow this looks great. And exciting news. Been missing me some good CoT scripting.

And cool to know that you're getting creative, Kimberly :D

I am excited to try it out.
Thank you :D !
And well, is it creativity if you create an AI that just plays like you did (with some slight tweaks) years and years ago?
Have fun trying out the Morrígan :D
Yes it is creative. I'll have fun playing with your virtual self :D
A.K.A. TOAO_Philosopher (formely TOAO_ReLeNtLeSsS, TOAO_Leo, TOAO_Ayubu_, TOAO_FSpirit, _TOAO_HussY_ and TOAO__HussaR_ (even before that, Deadly_Hussar— and DEADLY POISON on AOKH back when I was REALLY young)).

User avatar
KimberlyAzula
Forumer
Posts: 91
Joined: Thu Oct 07, 2021 8:17 am
Location: Germany

Re: The Morrígan AI

Post by KimberlyAzula »

halcyon88 wrote:
Sat Oct 09, 2021 12:30 pm
KimberlyAzula wrote:
Fri Oct 08, 2021 7:39 am
halcyon88 wrote:
Fri Oct 08, 2021 4:05 am
Oh wow this looks great. And exciting news. Been missing me some good CoT scripting.

And cool to know that you're getting creative, Kimberly :D

I am excited to try it out.
Thank you :D !
And well, is it creativity if you create an AI that just plays like you did (with some slight tweaks) years and years ago?
Have fun trying out the Morrígan :D
Yes it is creative. I'll have fun playing with your virtual self :D
Haha, thank you :)
Enjoy!
Oh by the way, we updated the script a little, in case you want the latest version.
There is no denying The Morrígan's prophecies!

User avatar
KimberlyAzula
Forumer
Posts: 91
Joined: Thu Oct 07, 2021 8:17 am
Location: Germany

Re: The Morrígan AI

Post by KimberlyAzula »

Pushed a new updated with lots and lots of little fixes. Enjoy :)
There is no denying The Morrígan's prophecies!

lolasik43
Forumer
Posts: 37
Joined: Sat Nov 25, 2017 4:05 am

Re: The Morrígan AI

Post by lolasik43 »

Thank you

User avatar
KimberlyAzula
Forumer
Posts: 91
Joined: Thu Oct 07, 2021 8:17 am
Location: Germany

Re: The Morrígan AI

Post by KimberlyAzula »

Uploaded a new version that fixed some small errors.
There is no denying The Morrígan's prophecies!

Post Reply