• Check out the results of the Techtree Contest #19!
  • 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Advanced Melee AI

This tool originates from: http://www.wc3campaigns.net/forumdisplay.php?f=601
- Wayback Archive of Wc3c

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 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 ScriptsOptimal VersionSupported Version
REFORGED2.0.31.33+
TFT1.24-1.281.24+
ROC1.24-1.281.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.

installer.jpg




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.
    • Pre 1.30 you can try and use the WC3 Mod Manager to enable.
    • 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


Keywords:
Artificial Intelligence, AI
Previews
Contents

AMAI 3.5.0 Installer (Binary)

AMAI 3.6.0 Installer (Binary)

AMAI 3.6.0 (Binary)

AMAI 3.5.1 (Binary)

AMAI 3.5.1 Installer (Binary)

AMAI 3.5.0 (Binary)

AMAI 3.4.1 (Binary)

AMAI 3.4.2b (Binary)

AMAI 3.4.2b Installer (Binary)

AMAI 3.4.1 Installer (Binary)

AMAI 3.4.0 (Binary)

AMAI 3.4.0 Installer (Binary)

AMAI 3.3.5a Installer (Binary)

AMAI 3.3.5a (Binary)

AMAI 3.3.5 (Binary)

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 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...
Thanks for this, i downloaded "only the w3c maps" pack but i am confused with the folder content inside.
There is AMAI vs AMAI, AMAI vs Blizz and Blizz vs Blizz.

Which of these i use if i just want to play something like 3v3 where its me and 2 AMAI versus 3 AMAI?
I suppose its AMAI vs AMAI but frankly i would rather just ask instead of making more mistakes.
Thanks for helping.

Edit: even on the AMAI vs AMAI maps (from the pack) when i play on one of the teams the ESC button and -cmd:help does nothing.
The AMAI talk in chat but i have no control over them.
Really have no clue what i am doing wrong.
ye excactly. 1st folder is AMAI only, 2nd folder is AMAI for teams 1, 3, 5, 7, etc and Blizz for teams 2, 4, 6, 8 etc. The 3rd folder doesnt have any scripts installed and I have it because it might be needed and its convinient to have all maps in one folder even without scripts installed. :D
 
Maps that are intended for W3C use Lua as its script language. If you want to use AMAI on those maps, you need to convert the map first into JASS mode per disclaimer above in description.
@Bogdanov89 also after you do that you will need to re install AMAI. Making any changes through the world editor completily erases AMAI installation from that map :D
 
Edit: even on the AMAI vs AMAI maps (from the pack) when i play on one of the teams the ESC button and -cmd:help does nothing.
The AMAI talk in chat but i have no control over them.
Really have no clue what i am doing wrong.
Also having this issue. Makes experimenting with this less exciting when I don't have the options.
 
Thanks for this, i downloaded "only the w3c maps" pack but i am confused with the folder content inside.
There is AMAI vs AMAI, AMAI vs Blizz and Blizz vs Blizz.

Which of these i use if i just want to play something like 3v3 where its me and 2 AMAI versus 3 AMAI?
I suppose its AMAI vs AMAI but frankly i would rather just ask instead of making more mistakes.
Thanks for helping.

Edit: even on the AMAI vs AMAI maps (from the pack) when i play on one of the teams the ESC button and -cmd:help does nothing.
The AMAI talk in chat but i have no control over them.
Really have no clue what i am doing wrong.
Weird, just tested with the excact same pack and i dont have the issue. Do you have any other languages installed on your computer apart from english? If you type a message and it includes a non-latin character (for example the russian Б) it might not appear on the screen but still not show the command.

Alternatively, have you made any changes to the maps through the world editor? That breaks AMAI and you need to reinstall it for the map
 
plz check reply above too :D

Sorry for any late replies, for some reason I am not getting notifications for all of the replies :D
Fresh install of WC3R with no downloads, used the most recent windows installer, used the additional maps provided by the game in the Downloads folder for the available ladder seasons.

Only language is English, I use applocale for other things but not this.
 
Fresh install of WC3R with no downloads, used the most recent windows installer, used the additional maps provided by the game in the Downloads folder for the available ladder seasons.

Only language is English, I use applocale for other things but not this.
Try deleting the file and re installing it again in case that works. Does it happen with all of the maps or just a few specific ones? :D
 
plz check reply above too :D

Sorry for any late replies, for some reason I am not getting notifications for all of the replies :D
Hey Gartoll!,

Do you by chance have the unpatched Map Pack?
I downloaded your 500-map pack and re-patched them again for 1.27.
IDK if the problem is that the maps were already patched or not but the game recognizes only half of them in-game.

Hey! it's amazing and it's a lot, before doing the re-patch for 1.27, I can see half of them but no one works, after the re-patch, all of them works, but I still can't see that other half...

Talking a little about these maps, it's a historic collection of all official maps? or there is a special selection of yours?,

Thanks a lot! ♥,
 
Hey Gartoll!,

Do you by chance have the unpatched Map Pack?
I downloaded your 500-map pack and re-patched them again for 1.27.
IDK if the problem is that the maps were already patched or not but the game recognizes only half of them in-game.

Hey! it's amazing and it's a lot, before doing the re-patch for 1.27, I can see half of them but no one works, after the re-patch, all of them works, but I still can't see that other half...

Talking a little about these maps, it's a historic collection of all official maps? or there is a special selection of yours?,

Thanks a lot! ♥,
Hello

The 500 map pack is meant for Reforged only. Classic Wc3 does not recognise newer maps due to newer data that's being added with updates etc. There is a way to get over this by using the Map Adapter tool here (Map Adapter) but I haven't bothered with it.

I'm not planning to make those 500 maps for 1.26, I have a pack with only 200 somewhere in the comment section (good luck searching for it, iirc it's on the 2nd or 3rd page but dont quote me on it). Updating all those maps would be really hard if not impossible unless I bother with the Map Adapter but I had issues & couldn't get it running last time.

As for the maps included it's all the maps that come pre-installed with the game, all maps that have been on w3c, w3a (basically w3champions from 2012-2018), maps from map contests hosted on Hive, historical competitive maps from Archive - toom.io and a lot of maps that have been used in FFA over the years. I don't have any past 12 players and mind you, a lot of maps have been used in tournaments but only a couple of times and I haven't got my hands on them :D

By the way a problem with 500 maps is that it adds up in size and for any future updates I will be barely updating the "map pool" itself.
 
Hello guys!
I would like to know if there is any option to disable the chat language of the AMAI bots. I mean it's cool, but as the time goes on, it becomes pretty repetitive and now it just bothers me.
Also since I use AMAI on my own custom map, there are other important text messages that can get kind of lost in the amount of text on the screen this way... Is there a way to disable it somehow? Thanks in advance for your input. :cute:
 
@
大家好!
我想知道是否有任何选项禁用聊天语言的阿迈机器人。我的意思是这很酷,但随着时间的推移,它变得相当重复,现在它只是困扰我。
另外,因为我在自己的自定义地图上使用了AMAI,还有其他重要的文本消息,可以在屏幕上的文本数量中丢失。有办法禁用它吗?提前感谢您的输入。

Hello guys!
I would like to know if there is any option to disable the chat language of the AMAI bots. I mean it's cool, but as the time goes on, it becomes pretty repetitive and now it just bothers me.
Also since I use AMAI on my own custom map, there are other important text messages that can get kind of lost in the amount of text on the screen this way... Is there a way to disable it somehow? Thanks in advance for your input. :cute:
Search for the 'set chatting' option in common.ai and change 'true' to 'false', so you no longer have to see annoying AI chats
 
I played a lot of games and found that only Night Elf ai heroes would buy speed boots at the Goblin store, not the other three races. There is always the problem of gold expansion, only the Night Elf ai can successfully expand,@Strategy Master,You haven't changed, and I suspect you've carefully compiled the Night Elf tactics, heroic actions, and everything, The other three races you've only changed very roughly, not even as much as a long time ago, and for whatever reason you want, I never doubted your ability, but please treat
humans, orcs and undead in the same way, version 2.0.4 has been released, I think AMai should also have updates, I don't want to fight the Night Elf ai, it's boring🤡
AMAI is open-source. It's not like AMAI makes their Archers twice as powerful. If you have the ability, provide actual ideas, or even better, write actual code to improve other races. It's ridiculous to complain about a race AI being imba, or to pretend that every race be equally powerful in a Computer-only FFA.
 
Just wondering. I played like seven 2v2 games yesterday, it's me or the AI barely do creep camps? I found that even on very late game, while invading his base, all green camps around his base are there. Of course red and orange around all the map too. Seems like they only do Gold-mine camps to expand.
 
@



Search for the 'set chatting' option in common.ai and change 'true' to 'false', so you no longer have to see annoying AI chats

I did as you said, but it still keeps chatting, greeting me, and taunting. I tried changing more stuff in the text files then:

1) I also changed this line in the file "common.ai":
boolean chatting = false (originally true) But it also did not work.
2) In the file "ChatEvents.txt", I changed the following:
everything in the lines called "taunt" and "greet" from true to false. No result either.
3) In the file "common.eai", I changed the same stuff there = the lines with "set chatting = false" and "boolean chatting = false". Still, they keep chatting.

I did all these changes mentioned above in files "common.ai" for REFORGED, TFT, and ROC, just to be sure. Nothing.
I tried using two version of AMAI - the versions of 3.4.2 and 3.5.1.
Anything I am doing wrong? 🤔

I am also considering the option of deleting all the specific chat texts in the "common.ai" and "common.eai" files.

EDIT: SOLVED. I forgot that I can override the AI chat language when installing the mod. :vw_death:
 
Last edited:
Very good, very useful. I love this mod. Finally I can enjoy playing against AI for real.

I especially like the variability - the AI plays with various army compositions. Some of them are pretty crazy, like mass destroyers, haha. Very fun.
 
Released 3.6.0 which finally brings in jzy-chitong56 cross race tower rush support (After ~1-2 years), war3 2.0.4 support and various major fixes

Added​

  • Support for 2.0.4, increasing optimal version for REFORGED scripts.
  • Humans and orcs are now aware of safe spare mines near allies and will expand to them instead of ignoring them.
  • All races can now perform a successful tower rush at the start of the game or via commander, not just orc players and also make use of items like sacrificial skull and ivory towers. (jzy-chitong56)
  • (DevTools) Added new game setting "custom_data_set" which if set to true will make attempted changes to make AMAI work with the custom 1.0.1 dataset used in custom maps. Its just a quick fix and not optimal but they will least upgrade to the next tier when set.

Changed​

  • Reforged Wand of Negation cost updated from 150 to 120 for 2.0.4 data.
  • Reworked expansion rebuild logic
    • It interrupts current expansion if its newly lost rather than once the current expansion choice is expanded to.
    • It has an 80% chance to rebuild an expansion. 20% to pick a standard expansion.
  • Reworked town tracking system such that own towns and enemy towns are now combined under the same system to reduce inconsistencies.
    • Stability fixes to town tracking, towns are now permanent.
    • Home town does a better job of being able to change instead of fixed to town 0. Towns with both a mine and hall will be a little bit more valuable.
    • Town defense can occur on all future towns not just 2 mines worth of expansions.
  • When counter unit changes, re-evaluate build order faster to stop building old counters.
  • Heroes will buy from racial shops in a wider radius of 3000 up from 1000 as this is still close by, even if an attack is running or town needs defending.
  • Insane AMAI now need 25% less gold and wood to be able to share the extra with other players as they earn alot more.
  • AMAI will be a bit more careful when sending a peon to build an expansion. If enemy is present it will wait for dangers to pass. Insane difficulty goes further and will check the expansion location itself is safe.
  • AMAI will now also buy items from goblin merchants during an attack if hero is close by to the store.
  • AMAI will now move its units that need healing together with the town that needs the most defense to help shore up defense.
  • DefendTownsCond fixes and it only counts completed units.
  • Increased strength of towers so they more of a threat, and made all ancients have a passive strength as they can hit back.
  • Hero chance rebalancement to ensure all heroes still have a chance to be picked some were basically 0 and some were nearly always guaranteed.

Removed​

  • (DevTools) max_towns global setting has been removed as it is no longer applicable.

Fixed​

  • Fixed an issue where reloading a saved game with AMAI vs AI would crash the game in REFORGED.
    • (DevTools) BREAKING CHANGE all unitids in strategies are now prefixed with a 'u'. The previous ids are only to support the vanilla AI. This is a BREAKING CHANGE for custom strategies. This is only required in strategies and some racial settings, everywhere else automatically handles adding the 'u'.
  • Fixed chat messages based on profile name not running as was still using ai_name which hasn't matched for a long time. (jzy-chitong56)
  • Fix rush value check not correctly taking account of uneven enemies vs allies.
  • Fix an issue where refunded blocking units could return additional resources.
  • Some pathing checks don't need to be created as the current player so ensured they use neutral passive to avoid confusing the AI and stats.
  • Add protection against bad strategies crashing the build queue.
  • Avoid constantly setting the captain locations to same location to reduce any side effects within hardcoded ai functions.
  • Fix an issue where towers could be built next to ancient expansion while it was still expanding/creeping the mine.
  • Fixed an issue where multiple upgrades or a failure to start an upgrade caused the upgrade to go missing from the build queue which means it wouldn't retry until the build queue is re-evaluated.
  • Fixed orc and human players getting stuck unable to expand due to bad placement of the town hall, they will now skip it and expand elsewhere if possible.
  • Item expansion will now check placement of a bad town as above.
  • Item expansion after 3 attempts to buy the item, will switch to normal expansion to avoid blocking orcs from expanding as they always in combat.
  • Workaround hardcoded issue where revive hero costs are not actually evaluated correctly.
  • Fixed some attack regrouping with nearby allies not functioning correctly.
  • Fixed an issue where last known captain location didn't match ally target.
  • Fixed an issue where AI was constantly sharing gold and wood with each other for no reason. Only share with those with low gold and wood.
  • Fixed an issue where the price of tier 3 upgrade was more expensive than it should be.
  • Prevent Elf Barracks Rush triggering on mine creeps as they usually too strong and creeps will usually destroy it early.
  • Reign of chaos version now inherits fix to be able to stand down peons from burrows.
  • Fixed an issue where captain location was sometimes set to 0,0 on a map due to location being removed.
  • Fixed an issue where during flee, units didn't flee. Now all units will be forced to flee.
  • Fix an issue where a mine is detected as a land mine incorrectly, now it will abandon the attack.
  • (DevTools) Added tower type for units, so we can detect towers before construction is completed.
  • (DevTools) Fixed ApplyTableChanges.pl and which ensures all settings files are back to being consistent with each other.
 
Last edited:
The update is great, but can I ask you a few questions?

1. There are still problems with the orc's strategy against air units, I observed, When the other side has a large number of chimera or hipporiders, the orcs do not have accurate against the unit, the troll can not form effective firepower, riders are a small number, and the priority attack is the ground units, can not give priority to the air units, And the ORC ai logic is willing to build a lot of ground melee units, which leads to a lot of bombers, Then this cycle causes the orcs to be bombed all the way, and there is no way to fight back. Allows orc riders to prioritize offline air units or build winddriders against air units.

2. The human and orc expansion priorities are good, with significant changes in 3.6.0, but I found that even after the expansion, Gold mines often have fewer than five collectors, or no workers, which makes expansion wasteful and unproductive. The Night Elves can expand and immediately have 5 workers into the collection, so try to optimize the collection logic, Humans and orcs need to ensure that there are 5 workers per gold mine.

3. Regarding Hero item purchases, I observed that the Night Elf's first Hero was given priority in the code by Settings to purchase speed boots. While other race heroes don't, I think human heroes should and need to buy speed boots first, because they are usually slow, Orc Kensei and Tauren Chieftain, Undead Lich also need speed boots to improve movement. Second, Lich should have priority in tier 3 to buy corroded orbs, which is a guarantee of the undead's overall firepower. Maybe you'd like to continue with the optimization, maybe you ignore my advice, but my goal is to make suggestions, Can make most players agree that AMAI closer to the true strength of humanity. That's it😎
1 - AMAI doesn't have alot of control over unit targeting, blizzard hardcoded AI still mostly controls that.

Large strategy changes I don't really have time for anymore and usually leave to others to suggest/make the changes. What the AI builds depends on which strategy they have picked out of the ~12 which is ultimately "random" based on their personality. If you know the strategy (announced to allies via chat) and it is an anti air strategy then we can target a fix to that strategy. If they picked a ground unit strategy then the AI just picked the wrong one and doomed itself.

The dynamic strategy logic helps with this, but that only comes into play when the AI completes the defined strategy.

2 - Straight forward to add check to ensure they consider building workers once expansion is on there mind.

3 - Its an easy change, I don't know why only they have it.
 
Last edited:
Seems like a huge patch, downloading ASAP and applying to your last map pack!
Excellent work Strategy Master!,

Quick question: Is there a line between the files I could edit to set a resources multiplier for Easy, Normal and Insane?,
Just like how Insane already has 200%.
I don't intent to change anything else, only trying to slowly calibrate the comeback possibilities of a Easy/Normal/Insane AI for myself,
 
Last edited:
Seems like a huge patch, downloading ASAP and applying to your last map pack!
Excellent work Strategy Master!,

Quick question: Is there a line between the files I could edit to set a resources multiplier for Easy, Normal and Insane?,
Just like how Insane already has 200%.
I don't intent to change anything else, only trying to slowly calibrate the comeback possibilities of a Easy/Normal/Insane AI for myself,

Unfortunately not, if I remember correctly its built into the difficulty/map code so you can't change that easily.
 
Very good, very useful. I love this mod. Finally I can enjoy playing against AI for real.

I especially like the variability - the AI plays with various army compositions. Some of them are pretty crazy, like mass destroyers, haha. Very fun.
It is best to use VScode, which will not break the original specification structure and can be saved using UFT-8 without garbled characters. In common.ai, most of the code affects the calls of the four races, so it is best to only change the set chat and not change anything else, which will not cause crashes😏
 
发布了3.6.0版本,终于带来了jzy-chitong56跨种族塔速攻支持(大约1-2年后)、war3 2.0.4支持以及多项重大修复
你好,战略大师,感谢你在忙碌之中发布了3.6.0版本。首先,我想向你致敬,以下是我在标准近战地图上安装3.6.0时发现的问题::thumbs_up:

1. 首先,让我解释一下收集的问题。在冰冠城,我扮演兽人,面对5个普通难度的兽人联盟,对抗6个疯狂的夜精灵。游戏过程中,地图上的所有金矿都被占用,兽人AI建造大厅后不会派出足够的农奴去收集。即使在第一个资料片的金矿中,收集的农奴数量也不足5个。这是个问题,请在后续版本中尝试修复。谢谢!:笑容:

2. 崩溃问题也在6v6和4v4中测试,共测试了10次。其中两次崩溃没有任何错误窗口,且游戏录制未保存,导致无法找到崩溃原因。然而,当我用暴雪AI测试同一地图时,也有10次崩溃未发生。分析两个不同AI的行为时,我发现AMAI会维持3个金矿,但如果地图上的金矿数量不足以维持此状态,AI会冻结,游戏会闪回桌面。该过程将在2秒内完成。我在地图编辑器中创建了一个简单的近战地图,并为AMAI添加了24个金矿,用于4v4战斗。游戏持续了超过2小时且未崩溃,但当AI认为无开发可能时,会选择投降。因此,我推测扩展代码可能强制了AI行为。当没有可收集的金矿时,AI行为会异常,导致地址错误,导致游戏崩溃。请在下一版本中尝试修复这个问题。谢谢!:笑容:

3. 关于AMAI如何适应最新版本的问题,后续版本可能会有平衡参数的变化。这会影响AMAI的行为吗?如果我自己修改代码中的这些参数,能否实现对最新版本的最佳适配?如果可能的话,请随时给我一些建议。谢谢! :笑容:

我不会浪费你时间修改任何比赛的战术,但关于AI性能问题,请务必尽量避免崩溃。如果可能的话,非常感谢你在业余时间的努力。我会继续关注你在AMAI所做的改动,并测试它们,给你反馈我发现的问题。再次感谢你!:笑容:
 
Hello, Master of Strategy, thank you for releasing version 3.6.0 in your busy schedule. First of all, I want to pay tribute to you, here are the issues I found when I installed 3.6.0 on the standard melee map:

1. First, let me explain the collection. In Ice Crown City, I play the Orcs, facing 5 ordinary difficult orc alliances against six crazy night elves. During the game, all the gold mines on the map are occupied, and the orc AI will not send enough serfs to collect after building the hall. Even in the gold mines of the first expansion, fewer than five serfs were collected. This is a problem, please try to fix it in a later version. Thanks for the smile! 🙂

2. The crash issue was also tested in 6v6 and 4v4, a total of 10 tests. Two of these crashes did not have any error windows, and the game recording was not saved, resulting in no cause being found. However, when I tested the same map with Blizzard AI, there were also 10 crashes that didn’t happen. Analyzing the behavior of two different AIs, I found that AMAI will maintain 3 gold mines, but if the number of gold mines on the map is not enough to maintain this state, the AI will freeze and the game will flash back to the table. The process will be completed in 2 seconds. I created a simple melee map in the map editor and added 24 gold mines to the AMAI for 4v4 combat. The game lasted more than two hours and didn’t crash, but when the AI thought it was impossible to develop, it would surrender. Therefore, I speculate that the extended code may have forced AI behavior. When there is no gold mine to collectible, the AI behaves abnormally, causing the address to an error and causing the game to crash. Please try to fix this in the next version. Thanks for the smile! 🙂

3. As for how AMAI adapts to the latest version, subsequent versions may have a change in balanced parameters. Does this affect the behavior of AAI? If I modify these parameters in my code myself, can I achieve the best fit for the latest version? Please give me some advice if possible. Thanks for the smile! 🙂

I won’t waste your time modifying any game tactics, but with AI performance issues, be sure to try to avoid crashes. If possible, thank you very much for your efforts in your spare time. I will continue to follow the changes you make at the AMAI and test them to give you feedback on the issues I found. Thank you again! 🙂 Smile:
1) This is also a hardcoded issue, blizzards internal AI code doesn't always detect a town hall is near a mine so its not registered to send peons to it.

2) Could be onto something, whats causing it though will be difficult to determine. The previous crash fix was is due to a new internal engine bug which we are working around. So could be another similar bug. Pre-reforged its quite difficult to full crash the whole game via ai scripts, but since reforged it seems to be easier now.

3) Strategies are still mostly the same from 1.24 era. Only had tweaks by contributors. So yes they need modification for newer patches. There is a developer guide in the "Manual" folder for making or customizing your own AI strategies, but its all in english.
 
1) This is also a hardcoded issue, blizzards internal AI code doesn't always detect a town hall is near a mine so its not registered to send peons to it.

2) Could be onto something, whats causing it though will be difficult to determine. The previous crash fix was is due to a new internal engine bug which we are working around. So could be another similar bug. Pre-reforged its quite difficult to full crash the whole game via ai scripts, but since reforged it seems to be easier now.

3) Strategies are still mostly the same from 1.24 era. Only had tweaks by contributors. So yes they need modification for newer patches. There is a developer guide in the "Manual" folder for making or customizing your own AI strategies, but its all in english.
Haha, thanks for your attention and reply. The poor optimization of Reforged is well-known, and we hope you can improve the AMAI in future updates. We also look forward to these optimizations bringing more stable performance and strategy. Thank you again! :grin:
 

It looks like Blizzard is fixing some crash issues related to the frame, which may help amai run somewhat smoothly and stay focused.
 
Updated the w3c only pack to the latest season. (link)

I updated the big pack to the latest AMAI version as well but the maps inside are still the same. (link)

If there are any issues let me know :D
This is a mod I like a lot and using to practice my skills, play with my friends for our good old times😁.

Thank you, Strategy Master, Gartoll, and everyone who has contributed to this mod, and your effort for our Warcraft community.
 
May I suggest for future releases to include in the installer's "Advanced Options" checkboxes for:
1) Completely disable AI chat messages
2) Set options (like languages) or defaults that normally would require a prompt in-game, so the prompt can be completely prevented.
3) ???
4) Adding some tooltips

These are options that are always being asked and requires the user to edit the files every new update, I think it may be handy,

Regards and love ♥

EDIT to prevent spam:

May I know what exactly means...
"commander",
"no_human",
"ai_only",
"shared"

For the game modes while multiplayer with AI?
 
Last edited:
is there really no way to prevent allied AI from stealing your expo? mother fucking acolyte walks into my expo and builds the haunted gold mine while I'm already building my town hall xD
having to keep an eye on the expo until it's finished in case the acolyte comes you can send a peasant at the right time to prevent the acolyte from stealing it, but it's a waste of time staying at your expo for too long.
and one of the dumbass night elf was stuck inside his base xD
AMAI 3.6.0
 

Attachments

  • 1.jpg
    1.jpg
    2.9 MB · Views: 30
  • 2.jpg
    2.jpg
    2.9 MB · Views: 36
真的没有办法阻止盟军AI窃取你的世博会吗?妈他妈的侍僧走进我的世博会,并建立闹鬼的金矿,而我已经在建设我的市政厅xD
必须盯着世博会直到它结束,以防侍僧来了你可以在适当的时候派一个农民来防止侍僧偷它,但在你的世博会呆太久是浪费时间。
一个愚蠢的暗夜精灵被困在他的基地里
AMAI 3.6.0
I don't see this in the new version, even though the undead allies are close to me, and a lot of the construction logic is at the bottom of the game, like some crash scenarios, This has nothing to do with AMAI, but you can map the gold mines of the Settings farther away, which may ease the situation,Of course the night elves jam themselves all the time, it's the engine :grin:
 
Thanks for AMAI !
Is it possible to please change the hotkey for opening AMAI UI (in game) from ESC to any other button (something not used by War3 hotkeys)?

ESC is the hotkey for cancelling queued units and other things in Warcraft 3.
So every time i press ESC as a game hotkey to cancel building units it pops up the AMAI UI.
Its very disruptive to gamplay but i dont want to disable the commander mode.
 
DenfendTownsDone () causes towers built by humans and undead at the expansion point to be unable to upgrade, Similar DenfendTownsDone (2, u_GUARDTOWER, 65), When humans build the watchtower, they will never upgrade to guardtower,same as the undead Please fix this function, thank you@strategymaster :grin:
 
Guys, you can give my modified AI a try :笑容: ,just replace Reforged and install.

Guys, you can give my modified AI a try :笑容: ,just replace Reforged and install.
Fixed some infinite loop issues, adjusted tactics for each race, and added more AI operations. However, there are some issues with the expansion defense of humans and undead, which I won't change. Leave it to the strategyman, but it should be more interesting:goblin_yeah:
 

Attachments

伙计们,你们可以试试我修改过的AI:笑容:,只需更换重新锻造并安装即可。


修正了一些无限循环的问题,调整了每场比赛的战术,并增加了更多的AI操作。然而,人类和亡灵的扩张防御有一些问题,这一点我不会改变。把它留给战略家,但它应该更有趣:goblin_yeah:
On some large 12-player maps, crashes occur especially late in combat, and there is usually no error window, This, after my investigation, was caused by a stack overflow, that is, There may still be dead loops in the AMAI source code caused by functions that the AI will execute continuously at a later stage, This might need to be handled by @ strategymaster, perhaps common.eai, Or maybe the .eai file in the jobs file
 
Hello everyone. I decided to revisit the old days and play against the newer AMAI bots.

I installed the latest AMAI through the launcher for the Reforged version of the game, but honestly they didn’t seem much stronger to me. Now I can’t decide whether I should play on Reforged, 1.26, or Legacy.

Why I think this:
In the standard AI, Human used to tech to Tier 2 very slowly, which always made them fall behind. In AMAI for 1.26, Human usually goes Tier 2 pretty fast, but in the newest version they started teching way too late again, and I really didn’t like that. It even felt like the old AMAI versions were stronger.

Can someone help me understand this?

It would also be really cool if we could make different AMAI versions play against each other!

Thanks everyone. I’d appreciate any advice or explanations.
 
when I try to use the amai help with esc or typing -cmd:help or whatever it is it never works I have never seen it
zoom is the only command that works for me. anyone else have this issue?

edit:is the ai busted? I just tested the pre-reforge version and it seems much more sophisticated- NE actually uses AoW to creep meanwhile the reforge version just stays at home almost like a normal un-edited ai
 
Last edited:
when I try to use the amai help with esc or typing -cmd:help or whatever it is it never works I have never seen it
zoom is the only command that works for me. anyone else have this issue?
Have you enabled commander? Have you tested it in a game with an allied AMAI bot? Could also be that, if you haven't enabled commander you need to reinstall the script on all of the maps :D
 
Have you enabled commander? Have you tested it in a game with an allied AMAI bot? Could also be that, if you haven't enabled commander you need to reinstall the script on all of the maps :D
I done that I think, commander is the talking thing? and I only ever play 1v1 or are you saying it works only with amai vs bot?- but if you could be kind enough may I get from you a screen shot of what it's supposed to look like?
 
Back
Top