Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
AMAI is a mod/tool for Warcraft III: Reign of Chaos and The Frozen Throne made to improve the computer AI of the game in many possible ways.
AMAI will make it easier to edit the War3 AI, harder to beat and more fun.
The goal is to make a human like opponent or ally that both react on events and tries to insult you by chat taunts while playing in a more human like way.
Personality Profiles: Each AI opponent has a set profile which modifies how it reacts or plays the game. Some can be real chickens and never dare to attack you while others will rush you down.
Dynamic Strategies: Constantly monitors the current situation of the game and always try to pick the best suited strategy to counter the enemy forces.
The computers will pick from all strategies depending on what kind of units the enemy has, how long the game has been going and what favorite units the current profile has.
Enhanced Micromanagement Control
To help keep as many units as possible alive by fleeing by town portal, zeppelin or foot.
This includes better use of items and healing items.
Makes the enemy force suffer as much as possible by focusing fire on the most vulnerable enemy units first if they are in range.
Will buy neutral heroes and units.
Can occasionally attempt tower rushes and militia/ancient expansions.
Enhanced Team Play
Coordinates with allies what it will be attacking or will join allies in attacking a target.
Human players have access to the Commander, letting you give commands.
Asks for aid if running out resources.
Surrenders : Based on profiles some AI's will give up when it detects its losing, while others will fight to the death.
Chat Support
AMAI will taunt enemy players, and share its build strategy with team players.
Includes Support for 10 different languages.
Easy to use Strategy and Profile editor.
Supports an unlimited amount of your own profiles.
Supports an unlimited amount of your own strategies.
Auto Building feature for example: a AMAI computer only needs to know that it shall build a hero and 15 footmen. It will automatically build all needed buildings, workers and farms in order to get this as fast as possible.
How to play
AMAI release has the standard AI scripts pre-built for you. You just need to install the scripts to maps or your game.
Map Extraction
Most install options require installing onto maps, so these may need extraction first.
It is suggested to create a subfolder in your "maps" folder like C:\Users\<username>\Documents\Warcraft III\Maps\AMAI and copy the maps you intend to use AMAI with there.
You can opt to download a map pack containing a selection with AMAI preinstalled on or you can install onto your own maps.
For Warcraft 1.30 onwards you need to use Casc Storages - Main page to extract a copy of the official maps.
On windows make sure the maps to install onto are not in a protected UAC location.
This may mean you have to install to maps in a different directory then copy into your Maps folder afterwards
Or run installer as an administrator
Warcraft Requirements and Versions
There are multiple editions of AMAI available to install based on your warcraft 3 version you run with. Some install methods you must use the correct abrievation in the table to install the correct scripts.Improvements and fixes to the core AI engine will improve the older scripts as well.
AMAI Scripts
Optimal Version
Supported Version
REFORGED
1.36.2 - 2.0.0
1.33+
TFT
1.24-1.28
1.24+
ROC
1.24-1.28
1.24 - 1.31
Optimal version is based on the warcraft tech tree this edition is based on. Use a version further away from the optimal the more likely it will affect the AIs ability to build, usually just unoptimal build order but worst case it can no longer build at all.Classic AI scripts do have some forward compatibility built in to fix some major issues in later versions including 24 player support.
Avoid v1.29.x of Warcraft 3 and either upgrade or downgrade as it breaks various things including but not limited to:
Preventing AMAI from chatting.
Heros not learning skills although we have a fix that can get applied, this may not work if the map itself is too old.
AMAI Installer
The installer has to be downloaded separately as its much larger compared to the AI package.
Unzip the contents of the installer to a folder of your choice.
Double-click amai-installer.exe to open the installer.
Select whether to install to a map or whole directory.
Select if Commander is enabled, or if you want to have AMAI play against the vanilla AI. Even teams are Vanilla AI, odd teams are AMAI.
Use Optimised Scripts: Optimises the scripts to use less CPU and memory. On by default.
Override Default AI Language: Sets the default chat language of AMAI to current language of the installer and disables initial game prompt of language in the Commander.
Command Line Install
From Windows CMD/PowerShell or Wine wineconsole, run this: .\Install<Version>ToMap.bat "C:\Documents\Warcraft III\Maps\AMAI\<Map>.w3m" <N>
Where <Version> should be replaced with ROC, TFT, or REFORGED, <Map> with your preferred map, <N> with 0 or 1 or 2 if you want to not install the Commander or install the Commander or install the VS Vanilla AI mode respectively.
Alternatively for complex installs if you have perl installed from a commandline you can type perl InstallToDir.pl REFORGED "C:\Documents\Warcraft III\Maps\AMAI" and press enter to install AMAI to all maps in a directory and subdirectories.
You can disable the commander for this install via the perl InstallToDir.pl REFORGED "C:\Documents\Warcraft III\Maps\AMAI" "0"
After installing AMAI on your map just start Warcraft 3 and play the map against and/or with computers to make use of AMAI.
Manual install
You can manually use the included MPQEditor.exe to install to a single map.
You can use this with WINE to install on linux/Mac systems too.
Copy contents of AMAI\Scripts\<Version> into the Scripts folder in a map.
If wanting to use VS Vanilla AI mode copy the above scripts, but then also copy contents of AMAI\Scripts\<Version>\vsai into the Scripts folder in a map. You must copy the blizzard.j here instead of the original.
Manual Mod Install
You can install the scripts locally to your game folder to enable the AI for any map you play and to avoid extracting the official maps.
Change registry key: HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III" - Allow Local Files"=dword:00000001
Create a Scripts folder locally and include the *.ai files and Blizzard.j for the VERSION you want.
1.30.0~1.31.x : Create Scripts folder in the game root directory
1.32.0 + : Create Scripts folder in the game retail directory
Run game and play a custom game on a standard melee map.
Notes
Advanced Melee AI is made to be used on 'melee' maps only so please don't try to use it on completly custom maps (e.g towerdefence), it will make no difference on such maps.
Custom melee maps need to be set to latest patch data. Open the map in the Warcraft editor, go to Scenario->Map Options-> and change "Game Data Set" to "Melee (Latest Patch)".
Lua maps are supported, but the Commander can only be used to set language and game mode at game start. You cannot use the commander during the game.If you want the full Commander support, Open the map in the Warcraft editor, go to Scenario > Map Options, and change Script Language to Jass, then install AMAI to it. If Script Language is disabled, please reset the Trigger Editor to its initial state.
You may need to run as an administrator if you have issues with maps not displaying any teams.
Note maps older than 1.24 will need resaving in the world editor if you want full 24 player support.
AMAI is more resource intensive than the normal AI scripts. At 24 players there is a higher risk of lag and crashes as the game cannot handle too many script operations happening in the same game frame. Reduce the number of players if you have issues. We continue to optimize and fix issues to help avoid this occuring.
V2.54
The original 10 year old version that supports 1.24 - 1.29 warcraft.
The download for 2.54 is the developer edition intended for developers to use.
For everyday use the player edition is alternatively available to download here
NOTE: The old 2.5.4 zip is now password protected because Google Chrome is flagging it as malicious software. The password is amai. Note some of the dlls are flagged as virus generic false positives in 2020 due to there age, but they are false positives
AMAI is very, very good. Much better than any Blizzard AI. I love it.
==Update - 25/08/12==
It has recently come to our attention that some antivirus softwares like Norton detect a virus in this, however, we can assure you that it is a false...
Hi Strategy Master, thank alot for the awesome work on this AI.
But i got a problem with 3.3.3 . If i go team with a Comp vs my friend + a Comp. We got disconect right after the AMAI chat in very first minute of the game .
Someone got this problem or just me ? I tested with many maps (no any trigger inside)
Thanks Domivn, is this happening with the Commander installed or without? If yes it may be a workaround to try without the Commander installed otherwise may be something causing the desync in the core logic.
Thanks Domivn, is this happening with the Commander installed or without? If yes it may be a workaround to try without the Commander installed otherwise may be something causing the desync in the core logic.
seems to be working perfect, no one came to fuck around on my expo.
don't know if I asked before, but there's no way to send money to allied AI through the ally menu? because one AI left the game and once the heroes I was controlling died, there was no way to revive them, the AI had 0 gold left and no workers.
is this a bug or just never working?
it's supposed to say an enemy color, but I have never seen it working.
also, when is the sound "creepaggrowhat1" used in the game? besides by the AMAI to announce their strategy? I'm using a custom one that sounds more pleasant, instead of the default one from the game that sound like someone is hitting your ears with a brick :S
edit: noticed it's working in some lines, must be some of the messages not written properly.
Look like a bug, many heroes from Tavern not pick skill point . And Undead buy Goblin Shredder but not use it to havest lumber, just stay at base and keep very low lumber. Im using AMAI 3.3.4 and TFT no Commander , play on 1.31.1
I need some explanation on how to install this bundle. Been looking around this description page and all the external links for hours without being able to find the installation instruction.
So I am using War 3 patch 1.30.4.
1) What exactly do I need to download?
1.1) Do I only need to download the launcher?
1.2) Do I need to download the AI package too or does the launcher have with it the AI package already?
2) I got both the AI package and launcher.
2.1) Do I need to do anything else or is the installation of this bundle finished?
2.2) Do need to transfer the files and folders within the "TFT" folder of the AI package into the "TFT" folder within the "Scripts" folder of the Launcher folder?
why are night elves so prone to block the entrance on maps like market square that only have one way in and out of the base.
it happens very often and they end being stuck inside, only let space for worker unit to go out and expand xD
I need some explanation on how to install this bundle. Been looking around this description page and all the external links for hours without being able to find the installation instruction.
So I am using War 3 patch 1.30.4.
1) What exactly do I need to download?
1.1) Do I only need to download the launcher?
1.2) Do I need to download the AI package too or does the launcher have with it the AI package already?
2) I got both the AI package and launcher.
2.1) Do I need to do anything else or is the installation of this bundle finished?
2.2) Do need to transfer the files and folders within the "TFT" folder of the AI package into the "TFT" folder within the "Scripts" folder of the Launcher folder?
copy the amai folder inside the installer resources folder.
then run amai-electron-manager and install the version you need into the map.
make sure map is using jass language.
So this looks really great, and I suppose if I want to find more about it I'll just have to install it and try it out, but since I don't have access to my PC right now, maybe a few questions. I believe I am working with a 1.29 Version (it supports 480 maps with 24 players).
1) From the latest Updates and Feedback here, is it essentially as simple as copying maps to new folders and running the installer? And going into "Scenario" in the editor for the right melee data I guess.
2) AI always has trouble with 480x480 maps, but I found even vanilla blizzard AI lets you have at least some gameplay in the 480ies (it's just that some of the AI players randomly decide to just keep spamming workers, and things like that). Does AMAI do better than vanilla AI with huge maps?
2a) Related, several posters said 24 player maps do not work because they crash. Is that still true?
3) The AI chat is a neat feature, but I feel it would clash with what I try to do especially in custom campaigns. Is it easy to turn off?
4) I do indeed work with modified melee maps, meaning units have different stats. Is that a no-go? Posters here said it is only really guaranteed to work with un-modded techtrees.
Also, one feature in my project is that buildable terrain is itself a resource, in that most of the terrain is unbuildable and every base location has only so much space, meaning you can never have all techtree buildings in one spot and are forced to expand if you ever want the full techtree. Is that something AMAI could handle? I know vanilla AI seems to be doing okay-ish as they seek relentlessly for building spots, but I haven't done too much testing yet.
1) Yea and if something goes wrong feel free to ask here
2) I dont know
2a) Most likely cuz you are running older version which hasnt been updated in years
3) AMAI does not work with custom campaigns. Either way, I think it can be turned off
4) This works like Blizz AI does. If you modify units, then it should not be a problem. Some triggers will also not affect AMAI (eg adding a timer). But adding an entire new resouce is... not recommended. You will have to modify the entire code yourself, which is one hell of an overkill. It's gonna act like Blizz AI does.
Some other things that break AMAI are spawns close to each other, like Friends (tho it's fixed with the newest version, which is Reforged only) & stuff like gates. I remember I wanted to play a melee map in which a gate had to be destroyed for the teams to be able to finally meet each other (Dragon Fortess) and all bots would just try to enter without entering the gate, resulting in all of them being stuck
Look like a bug, many heroes from Tavern not pick skill point . And Undead buy Goblin Shredder but not use it to havest lumber, just stay at base and keep very low lumber. Im using AMAI 3.3.4 and TFT no Commander , play on 1.31.1 View attachment 467795 View attachment 467796
You're using AMAI 3.4.4 right? This is reforged, 1.36+ only. If you're playing on classic patch 1.29, it was around this time where Blizz AI broke and wouldnt learn any spells either
Hi all, I am using AMAI on Reforged (however the game is played on Classic graphics).
I have downloaded the AMAI installer and extracted the latest version (3.3.4) and the CASC View.exe to extract the maps I wanted into the folder C:\Users\User\Documents\Warcraft III\Maps\AMAI. All the maps were cut & paste into the folder and deleting the subfolders that contained them during extraction). After that I ran the AMAI electron Manager and chose 'Install Reforged on Folder' as instructed and after the process is completed I ran the game, chose a map from the AMAI folder & started the game, I did receive the messages that AMAI is installed for this game however when I used the cheatcode iseedeadpeople to check on what the computer is doing, all I saw was Orc Peons only mining gold and Night Elf Wisps only mining lumber without building additional workers or construct any buildings?
May I know what went wrong in my installation or should I try with earlier version of the installer?
Hi all, I am using AMAI on Reforged (however the game is played on Classic graphics).
I have downloaded the AMAI installer and extracted the latest version (3.3.4) and the CASC View.exe to extract the maps I wanted into the folder C:\Users\User\Documents\Warcraft III\Maps\AMAI. All the maps were cut & paste into the folder and deleting the subfolders that contained them during extraction). After that I ran the AMAI electron Manager and chose 'Install Reforged on Folder' as instructed and after the process is completed I ran the game, chose a map from the AMAI folder & started the game, I did receive the messages that AMAI is installed for this game however when I used the cheatcode iseedeadpeople to check on what the computer is doing, all I saw was Orc Peons only mining gold and Night Elf Wisps only mining lumber without building additional workers or construct any buildings?
May I know what went wrong in my installation or should I try with earlier version of the installer?
Hi there is a problem with Orc AI, when engaging into battle against other opponents, blademaster uses windwalk, he will run to his base and stay until the ability wears off. Sometimes he will move out of the base but will quickly decide to go back to the base. Basically he never gets to fight like that. I don't know what would make the AI behave like that, it's in many maps.
Hello! I believe I have it working now, though I have a couple questions.
When I downloaded 3.3.4, there's both the installer and a regular AMAI folder. I moved the AMAI folder to the resources folder of the installer based upon some comments here, but nowhere in the install guide does it say to do that. Was that an unnecessary/harmful step, or is that the right move but not mentioned in the guide?
Another question has to do with difficulty. With Insane AI, does it get smarter? Or does it just keep the same double income hack the original AI does? Is there a way to have advanced difficulty without the income hack?
I've also noticed some "dumb" moves, where the enemy will send in a solo footmen to die against my towers. Or where they won't notice a siege unit attacking a tower until another unit gets close. Or they'll die to the last man, rather than retreating or pulling units back.
Is this known and intended, or a bug/failure on my end?
Hello! I believe I have it working now, though I have a couple questions.
When I downloaded 3.3.4, there's both the installer and a regular AMAI folder. I moved the AMAI folder to the resources folder of the installer based upon some comments here, but nowhere in the install guide does it say to do that. Was that an unnecessary/harmful step, or is that the right move but not mentioned in the guide?
Another question has to do with difficulty. With Insane AI, does it get smarter? Or does it just keep the same double income hack the original AI does? Is there a way to have advanced difficulty without the income hack?
I've also noticed some "dumb" moves, where the enemy will send in a solo footmen to die against my towers. Or where they won't notice a siege unit attacking a tower until another unit gets close. Or they'll die to the last man, rather than retreating or pulling units back.
Is this known and intended, or a bug/failure on my end?
I agree with this. My biggest issue is that night elf and undead build like crazy while human and orc will not expand at all. They just sit in their main base area, build tons of troops and run out of gold eventually. No matter which ai personality they land on, it’s always the same. Is there any way to fix this?
Hi there is a problem with Orc AI, when engaging into battle against other opponents, blademaster uses windwalk, he will run to his base and stay until the ability wears off. Sometimes he will move out of the base but will quickly decide to go back to the base. Basically he never gets to fight like that. I don't know what would make the AI behave like that, it's in many maps.
Hello! I believe I have it working now, though I have a couple questions.
When I downloaded 3.3.4, there's both the installer and a regular AMAI folder. I moved the AMAI folder to the resources folder of the installer based upon some comments here, but nowhere in the install guide does it say to do that. Was that an unnecessary/harmful step, or is that the right move but not mentioned in the guide?
Another question has to do with difficulty. With Insane AI, does it get smarter? Or does it just keep the same double income hack the original AI does? Is there a way to have advanced difficulty without the income hack?
I've also noticed some "dumb" moves, where the enemy will send in a solo footmen to die against my towers. Or where they won't notice a siege unit attacking a tower until another unit gets close. Or they'll die to the last man, rather than retreating or pulling units back.
Is this known and intended, or a bug/failure on my end?
The latest installer already includes AMAI scripts for you, no need to compile or manually move from other artifact yourself anymore.
Insane AI its not smarter but does behave more like a hacker in some cases. e.g knows your power without having to scout or estimate. Note normal difficulty just does this less but still does it.
Each profile plays differently so some will be more aggressive, some will be cowardly. In addition there is hardcoded engine bugs that can cause units to suicide against random targets which we do our best to avoid these elements from triggering but its not perfect.
I agree with this. My biggest issue is that night elf and undead build like crazy while human and orc will not expand at all. They just sit in their main base area, build tons of troops and run out of gold eventually. No matter which ai personality they land on, it’s always the same. Is there any way to fix this?
The latest installer already includes AMAI scripts for you, no need to compile or manually move from other artifact yourself anymore.
Insane AI its not smarter but does behave more like a hacker in some cases. e.g knows your power without having to scout or estimate. Note normal difficulty just does this less but still does it.
Each profile plays differently so some will be more aggressive, some will be cowardly. In addition there is hardcoded engine bugs that can cause units to suicide against random targets which we do our best to avoid these elements from triggering but its not perfect.
That sounds odd, unless it something i already fixed in next release. Or your war3 version not quite compatible with AMAI version you installed.
AMAI now takes direct control of alliance targets instead of using the hardcoded logic. This will enable better control and allow us to ignore the alliance target in some situations.
(Installer) New UI improvements to select install options rather than using the toolbar menu. (jzy-chitong56)
(DevTools) The scripts folder will include a Blizzard.j of the last version compiled as well as just the versioned copied so its easier to manually include into maps.
Changed
Support tech tree changes for 1.36.2.
Better clarity on which versions of warcraft 3 to run AMAI on and whats optimal.
Retreat Control will now protect own towns first over allied towns.
Fixed
Fixed factory rate to build extra production buildings as was too low as didn't take account of building cost vs income correctly.
Fixed issue with boolean check of third mine timing.
Fixed issue where mine required for ancient or item expansions could be nulled mid use which would break the logic. (jzy-chitong56)
Fixed Mark of Talon upgrade only requires adept training from 1.36.1 war3 patch.
Tweak expansion relocation logic to calculate when its likely already building so don't change location.
Fixed issues with multiple mines at home base logic. (jzy-chitong56)
AMAI will not expand fast unless there is twice as many mines as players.
Quick fix where shop creeps were not being checked correctly to see if it was guarded or not.
Fixed an issue where when hero was at the home base it would cause AMAI to partly stop retreating.
Fixed some minor issues with build logic and calculating accurate resources available.
Fixed an issue where harassment units got stuck going backwards and forwards.
(Installer) Fix so installer can hopefully run again on windows 7/8 as per modern war3 supported stack.
(Classic) Goblin alchemist not learning abilities.
Anyone else noticed the AMAI AI not expanding? Happening with version 3.3.4 and even with 3.3.5.
This happened in maps I edited in the world editor, in which I put the "melee latest patch" in the Scenario options, but I've always done this before and never had any problems, so I don't think that's it.
Cheers
Anyone else noticed the AMAI AI not expanding? Happening with version 3.3.4 and even with 3.3.5.
This happened in maps I edited in the world editor, in which I put the "melee latest patch" in the Scenario options, but I've always done this before and never had any problems, so I don't think that's it.
Cheers
For me they expand in FFA, 1v1 and 2v2 in both versions. Enemy NELF expanded fairly quickly with lots of archers and fast T2. My UD AMAI teammate however, had a level 1 DK stuck in the base doing nothing, no Teching up, and not using resources. It almost had like 2k gold before he decided to make 2 ghouls and build a ziggurat and finally start creeping. Eventually doing a late halls of the dead tech. Not sure what caused the AI to behave like that. Maybe it's what Strategy Master meant with personalities but it looked more like a AI having a error/bug stroke than a personality lol. I hope you can fix the not expanding issue by doing a clean install?
@goodgameru : AI's seem to be expanding on REFORGED scripts, which game version you playing on with which AMAI scripts (TFT, ROC, Reforged)? Can you reproduce on standard maps or is it only occuring in custom maps?
@Drukhari : Found the undead issue, one of the strategies has a typo which meant the hero isn't being scheduled to build if it picks that, and that will block building anything else for a few minutes.
I've noticed that the AI won't pick upgrades for their units, leaving them all 0/0. Is this a strategy thing on their part where sometimes they will get upgrades?
I've noticed that the AI won't pick upgrades for their units, leaving them all 0/0. Is this a strategy thing on their part where sometimes they will get upgrades?
most upgrades occur as a backup effect based on number of units but its lowish priority so strategy is more important. But alot of the strategies do not include the upgrades.
400 maps added in all 3 versions (amai vs amai, amai vs blizz, blizz vs blizz) for those who dont want to install everything manually. .zip file is 750mb due to having a total of 1200 maps though amai jul 24.zip
Changes should be in a .txt placed inside each file. If link doesnt work, I will give permission and fix it later
amai vs blizz means that odd teams (team 1,3,5 etc) are AMAI bots while odd ones (teams 2,4,6...) are blizz bots
blizz vs blizz means that all slots are blizz slots. Many maps are not in the game by themselves because blizzard never considered them significant enough. So all of the maps in the map pool were added in a 3rd file in case you want to play only with good old blizz ai
Hello, how to change to strategies after number 9? As you can see from the screenshot below, it only allows you 10 out of the 15 (iirc) that AMAI has. This is 1.26 wc3 with the oldest AMAI version here but I suspect the problem persists in other versions as well
400 maps added in all 3 versions (amai vs amai, amai vs blizz, blizz vs blizz) for those who dont want to install everything manually. .zip file is 750mb due to having a total of 1200 maps though amai jul 24.zip
Changes should be in a .txt placed inside each file. If link doesnt work, I will give permission and fix it later
Hello, how to change to strategies after number 9? As you can see from the screenshot below, it only allows you 10 out of the 15 (iirc) that AMAI has. This is 1.26 wc3 with the oldest AMAI version here but I suspect the problem persists in other versions as wellView attachment 482132
The latest version of AMAI supports all war3 clients regardless as long as you install the right package, only reason to use the very old AMAI versions is personal preference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.