• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Advanced Melee AI

This tool originates from here

Source code now available at: SMUnlimited/AMAI

Latest Release Notes

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 comes with the standard AI scripts pre-built for you.

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

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-electron-manager.exe to open the installer.
  • You can install to a single map or a whole directory.
229876-72e655a9dd9f2e63484ded955b08e80c.jpg


Warcraft Requirements and Versions​


There are multiple editions of AMAI available to install based on your warcraft 3 version you run with. You must use the correct abrievation to install the correct scripts.Improvements and fixes to the core AI engine will improve the older scripts as well.

  • REFORGED(RFG) : The AI scripts intended for the latest version of warcraft 3 1.36+ (regardless if its reforged or not)
  • TFT : The classic Frozen Throne AI scripts intended for TFT 1.24+ version of warcraft 3. Has some forwards compatability support up to 1.31 including 24 player support although tech tree changes in later versions will not be available to the AI.
  • ROC : The classic Reign of Chaos AI scripts intended for ROC 1.24+ version of warcraft 3. Has some forwards compatability support up to 1.31 including 24 player support although tech tree changes in later versions will not be available to the AI.

  • Avoid v1.29 of Warcraft 3 as it breaks various things and prevents AMAI from chatting. This is just an issue with this version and you can downgrade or upgrade.

Command Line Install
  • From a windows commandline or powershell type InstallRFGToMap.bat "C:\mymap.w3m" 1 and press enter to install AMAI to maps
  • If you do not want to have the Commander installed to control team mates or easily change language settings instead run InstallRFGToMap.bat "C:\mymap.w3m" 0
  • 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" "false"
  • After installing AMAI on your map just start Warcraft 3 and play the map against and/or with computers to make use of AMAI.
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 do not appear to work. 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.

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


Keywords:
Artificial Intelligence, AI
Previews
Contents

AMAI 3.3.4 (Binary)

AMAI 3.3.4 Installer (Binary)

AMAI 3.3.3a (Binary)

AMAI 3.3.3a Installer (Binary)

AMAI 3.3.2 (Binary)

AMAI Map Pack 3.3.2 (Binary)

AMAI Map Pack 3.3.1 (Binary)

AMAI 3.3.1a (Binary)

AMAI 2.6.2 (Binary)

AMAI 3.1.1 (Binary)

AMAI 3.2.2 (Binary)

Advanced Melee AI 2.54 (Binary)

Reviews
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...

Moderator

M

Moderator

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 detection and that this tool is virus-free.
~The Hive Staff
 

3.26ly

3

3.26ly

Although you have a little clue on the good strats as you have hardly watched thousands of pro replays, I agree this can be useful only from the point that any imporvement on dumb computers is nice, it would be better if you consulted with someone who is aware of the best strats and add it in the prog. However, who still plays vs PCs anyway? They choose either bnet or some servers to play with people , not computers... and I guess this isn;t made for RPGs to be harder and for melee, thast why I say all this for the melee poinr.
 
Level 7
Joined
May 26, 2004
Messages
56
@3.26ly: Best strats are all from a certain point of view. The current strategies are a combination of what makes AMAI work to its fullest (and this aint no small improvement). You can't just put a pro strategy in as AI cannot use the strategy effectivly. The current strategies are the best trade off. If you dont like the built in ones you can make your own.

@Craka_J: Its built for melee but you can modify for mods or campaigns with some work of course. Of course certain game styles are a no no with amai eg DOTA or tower defense etc. But then you have lots of other things at your supposal that easily sort those out.
 
Level 2
Joined
May 6, 2007
Messages
17
It isnt working for me. I have extracted the files correctly but i says i am missing blizzard.j but when i looked in the file were i extreacted it from blizzard.j wasnt there. Help me please.
 
Level 2
Joined
May 6, 2007
Messages
17
please help me i really want this. It doesnt wok for me it say's i dont have the file blizzard.j but when i look in were i extracted it from blizzard.j ist there either please help.
 
Level 2
Joined
May 6, 2007
Messages
17
It doesnt work for me although i really want it it says i dont have the file blizzard.j i extracted it right but it doesnt work i looked in the files were i extracted it from and that doesnt have blizzard.j either?
 
Level 7
Joined
May 26, 2004
Messages
56
@Ricky: You need Perl. ah blast thats not written in the description.

You have to download Perl
http://www.activestate.com/Products/Download/Download.plex?id=ActivePerl then you can run the AMAIstrategymanager and compile the ai's.

If you dont want to do that go to
http://users.ecs.soton.ac.uk/~lph105/AMAI/?page=download
and download one of the easier to use editions instead of the developer.
 
Level 5
Joined
Apr 12, 2007
Messages
158
Works for me. Have you guys not even try out it's tools one by one to get the hang of things?
 
Level 7
Joined
May 26, 2004
Messages
56
Ensure you download Perl 5.8.8.824

Perl 5.10 is a recent new version of perl which will not work with AMAI unless you know how to install the tk component using the perl addon manager.

Note this developer edition of AMAI is for "Developers" and less so for those who just want to play against an advanced AI. You should download the Single Edition or Player Edition as the developer edition is for modifying the AI hence why it is in the tools section.

Site and Warcraft 1.22 patch Info - Wc3campaigns for more info and links to the main website
 
Last edited:
Level 4
Joined
Jan 27, 2009
Messages
47
can somebody explain why the map isn't work after i install the AI on it?

Maybe you need a update on you warcraft or there is an Ai startup error when anti virus protected it which means code can't be read by the Anti virus causing immediate End task manager/ restart/ Pop up saying virus.....
This can be prevent by offing your anti virus or updating your warcraft map
If does not work.. well seek other pros.....
 
Level 1
Joined
Oct 20, 2007
Messages
3
Strategy manager

Strategy manager closes when i start it up i have pearl and all the other things but im running windows vista is there something i must do to enable CMD programs?
 
Level 1
Joined
May 4, 2004
Messages
2
Have no problems with mine in Vista.

Not you need to install "Active Perl" and choose the older release of them there are 2, I think AMAI dont work with the newer one.

I installed ActivePerl-5.8.9.826-MSWin32-x64-290470.msi (64 bit version)
 
Level 2
Joined
Jul 27, 2009
Messages
17
please help me i really want this. It doesnt wok for me it say's i dont have the file blizzard.j but when i look in were i extracted it from blizzard.j ist there either please help.

You can't double or triple post moron, use edit on your posts. Next time please read the rules before you sign up please.
 
Level 3
Joined
Jun 13, 2009
Messages
32
Just a thought, how do I use the developer's edition? As far as I know, the thing doesn't come with a readme file. Worse, I couldn't find any instructions on how to use the developer's edition, so can someone post something related to the usage of the developer's edition? I'm talking about the Advance melee AI thing. Thanks.
 
Level 1
Joined
Jul 20, 2010
Messages
1
i got a virus while trying to download it
it was malware :( i don't think its hive i think its this guy i warn you before you download it
 
Level 5
Joined
Dec 15, 2011
Messages
126
my security essential says its a virus i wont try to download this again

Edit

Antivirus Detected:

Trojan:Win32/Orsam!rts

threat level: high

i have seen others say its not a virus but at this moment I dont know who to believe

Edit 2:

never mind i cant use this because i have windows 7 =(
 
Last edited:
Level 7
Joined
Dec 17, 2010
Messages
83
Thanks for sharing virus...

Fullständig sökväg: c:\music mp3 groarr\amai2.54de\scripts\bin\loadmpq.dll
Hot: WS.Malware.2
____________________________
____________________________
På datorer 24.8.2012 på 15:09:51
Användes senast 24.8.2012 på 15:09:51
Startobjekt Nej
Startades Nej
____________________________
____________________________
Okänd
Antal användare i Norton Community som har använt den här filen: Okänd
____________________________
Okänd
Den här filversionen är för närvarande inte känd.
____________________________
Hög
Den här filrisken är hög.
____________________________
Information om hot
Hottyp: Virus. Program som smittar andra program, filer eller sektorer i datorn genom att infoga eller bifoga sig självt till det mediet.
____________________________

____________________________
Filåtgärder
Fil: c:\music mp3 groarr\amai2.54de\scripts\bin\loadmpq.dll
Blockerad
____________________________
Filens fingeravtryck – SHA:
268390809a7012800c6fa70afb6b26da068a8bad5bb414e3ed15f0b35f2938fd
____________________________
Filens fingeravtryck – MD5:
ac18511308a5012d8de9726cd4c238bb
____________________________
 
Top