• Are you planning to upload your awesome tool to Hive? Please review the rules here.
    July 9, 2018: The rules for the Tool Section have been revised. Please be sure to read the revisions.

Advanced Melee AI

This bundle is marked as approved. It works and satisfies the submission rules.
This tool originates from here

Source code now available at: SMUnlimited/AMAI

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.


Requirements
AMAI 2.5.4 - Min 1.24+ Classic edition from 2008
AMAI 2.6.1 - Min 1.24+ Better Support for 1.30+
AMAI 3.0.1 - Min 1.32+
  • There are reports that v1.29 of Warcraft 3 prevents AMAI from chatting. This is just an issue with this version and you can downgrade or upgrade.

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 "maps\AMAI" and copy the maps you intend to use AMAI with there. For Warcraft 1.30 onwards you need to use Casc Storages - Main page to extract a copy of official maps.

  • Run InstallTFTtoMap from a windows commandline or powershell, to install AMAI to maps e.g InstallTFTToMap.bat "C:\mymap.w3m"
  • Alternatively for complex installs if you have perl installed you can run InstallTFTtoDir.pl "C:\Documents\Warcraft III\Maps\AMAI" to install AMAI to all maps in a directory and subdirectories.
  • After installing AMAI on your map just start Warcraft3: RoC or TFT 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 custom maps (e.g towerdefence), it will make no difference on such maps.
  • The old AMAI.exe installer from classic AMAI has been moved into the Templates folder and will not work unless you run MPQEditor htsize "C:\mymap.w3m" 64 from a commandline first.
  • 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
Contents

Advanced Melee AI 2.54 (Binary)

AMAI 2.6.1 (Binary)

AMAI 3.0.1 (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 3
Joined
May 26, 2004
Messages
24
@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
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 3
Joined
May 26, 2004
Messages
24
@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 3
Joined
May 26, 2004
Messages
24
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
 
Top