Closed ghost closed 3 years ago
It suggests the scripts are not installed correctly.
Usual issue is caused by using the old AMAI.exe. You can fix by running from a command line the below on the maps first
MPQEditor htsize "C:\mymap.w3m" 64
which allows the map to correctly insert new files.
If you do not run this command or do not use the better script as in the readme, the maps will only put in part of the amai files which can corrupt the map.
Easy way to confirm you can open the map using the bundled MPQEditor.exe visual editor and if its installed correctly you should see all the 4 race.ai scripts, the common.ai script and the blizzard.j script. If any of those are missing it hasn't installed correctly.
Usual issue is caused by using the old AMAI.exe. You can fix by running from a command line the below on the maps first
MPQEditor htsize "C:\mymap.w3m" 64
which allows the map to correctly insert new files.
How do I run the command line? I'm really new to these kind of stuff and I don't understand anything :/. Can you please explain? Also, yes, the race.ai scripts are there, so what I'm doing wrong?
On windows 10, open windows Start Menu, then type "cmd" then press enter.
Alternatively using MPQEditor you can open the map as an MPQ.
Click set max file count to 64 to allow more files to be added to the map correctly.
If the scripts are installed in the map correctly there should be a scripts folder shown next to the _Locales folder containing all the files you posted above.
On windows 10, open windows Start Menu, then type "cmd" then press enter.
Alternatively using MPQEditor you can open the map as an MPQ.
Click set max file count to 64 to allow more files to be added to the map correctly.
If the scripts are installed in the map correctly there should be a scripts folder shown next to the _Locales folder containing all the files you posted above.
I used MPQEditor and it was already 64 max files. When I use AMAI.exe, it just creates a folder named "Scripts" and inside it's the race.ai scripts. I even tried to change it to 128 max files, but it won't create the _Locales folder you have in the image above. Can you please make a video on how to do it right?
If the "scripts" folder shown in MPQEditor contains all the following it should then be working.
If not you might need to share the map file so i can see if there is anything else odd that might have happened?
If the "scripts" folder shown in MPQEditor contains all the following it should then be working.
If not you might need to share the map file so i can see if there is anything else odd that might have happened?
Yes, the "scripts" folder contains the race.ai files. Here is the map that I used AMAI.exe on and can't play on. I had to use winrar because w3x is not supported.
Strange all the files in the script folder of the map are empty files (0 bytes) which would explain why warcraft just errors out. I'm not sure how what could have caused that to happen.
I re-ran the following InstallTFTtoMap.bat to reinstall, and then the map seems to run up fine🤷
Strange all the files in the script folder of the map are empty files (0 bytes) which would explain why warcraft just errors out. I'm not sure how what could have caused that to happen.
I re-ran the following InstallTFTtoMap.bat to reinstall, and then the map seems to run up fine🤷
When I run InstallTFTToMap.bat it opens a cmd for 0.5 seconds then closes itself. Is this normal? Or I have to edit the bat file and type something in it? If not, can you please tell me the exact steps you made to install AMAI on the map? Also, I looked at the AMAI 2.6.0/Scripts/TFT and some of the ai files are 0 bytes.
Looks like your script files are corrupt somehow if they are all 0 bytes on the file system so I suggest re-downloading the release and confirm the files are not 0 bytes after extraction.
For the bat file, you need to pass in the map you want install to like I did on the first line of the screenshot above so you can't just double click.
You can have to open "cmd" prompt (I used windows "powershell" in my pic) first. Navigate to the directory containing the bat script. Then run the command.
Looks like your script files are corrupt somehow if they are all 0 bytes on the file system so I suggest re-downloading the release and confirm the files are not 0 bytes after extraction.
For the bat file, you need to pass in the map you want install to like I did on the first line of the screenshot above so you can't just double click.
You can have to open "cmd" prompt (I used windows "powershell" in my pic) first. Navigate to the directory containing the bat script. Then run the command.
Yes, the ai files are not 0 bytes anymore, if I run the MakeTFT.bat file it makes them 0 bytes, I tried to run it as administrator and now it no longer makes the ai scripts 0 bytes. I ran MakeTFT.bat, I used AMAI.exe then InstallTFTToMap.bat, the ai files are no longer 0 bytes but I still can't play, the race, team, color menu is still missing. What am I doing wrong?? :(
You don't need to use the makeTFT.bat unless you are making changes to AMAI's code. Just use the pre-built copies. And avoid using the AMAI.exe entirely if you happy to use the InstallTFTToMap.bat. Its alot safer. I wonder if you should consider running installTFTToMap as an administrator if you have not already? If still not working after doing all that can you reshare the latest copy of the map you have?
You don't need to use the makeTFT.bat unless you are making changes to AMAI's code. Just use the pre-built copies. And avoid using the AMAI.exe entirely if you happy to use the InstallTFTToMap.bat. Its alot safer. I wonder if you should consider running installTFTToMap as an administrator if you have not already? If still not working after doing all that can you reshare the latest copy of the map you have?
I reinstalled AMAI from github, only ran InstallTFTToMap.bat in powershell with administrator rights, but the error is still there. I tried to copy the scripts in MPQEditor directly from Scripts/TFT but it still didn't work. Here is the map that I used InstallTFTToMap.bat on: (2)BanditRidge.zip Here is the unedited, original map: (2)BanditRidge.zip
By the way, I have exactly the same problem...
By the way, I have exactly the same problem...
:(
Just loaded up the map you sent just fine. This suggests there is some sort of compatibility problem with 1.29 war3 for AMAI 2.6 as i'm on 1.32 war3 and the map you sent worked and loaded fine.
Just loaded up the map you sent just fine. This suggests there is some sort of compatibility problem with 1.29 war3 for AMAI 2.6 as i'm on 1.32 war3 and the map you sent worked and loaded fine.
So AMAI 2.6.0 is for reforged only? I only have the old classic warcraft 1.29, without battle net launcher.
Not the intention for that version....
Think i have an idea what might be the problem. Can you try out this version and see if that fixes the problem? AMAI2.6.1test.zip
Not the intention for that version....
Think i have an idea what might be the problem. Can you try out this version and see if that fixes the problem? AMAI2.6.1test.zip
Everything works for me
Not the intention for that version....
Think i have an idea what might be the problem. Can you try out this version and see if that fixes the problem? AMAI2.6.1test.zip
Closed the issue by mistake; I can play now, but it seems more buggy now, the choose strategy menu is still too short, I can select only 1-9 strategies when orc race has 15, my ally doesn't show me the strategies when I tell him to, the computers don't say the welcome/good luck message, in fact, they don't say anything now, and this was my main reason to switch from 2.5.4 to 2.6.0, to fix the menu being too short and chat bug.
2.6.0 doesn't fix anything like that so those might still be genuine bugs. The commander interface hasn't had much love in a long time.
In terms of chat bugs what language are you playing on?
2.6.0 doesn't fix anything like that so those might still be genuine bugs. The commander interface hasn't had much love in a long time.
In terms of chat bugs what language are you playing on?
I play in english. The bug is that I see the computer's name trying to say something, but there's nothing after the ":". It's like "[AMAI]Aaargh:". It's just the name and nothing else. It doesn't happen everytime, only sometimes. But in the version you sent me 2.6.1 they don't even try to say something.
The chat bug might be an issue with v1.29 of warcraft 3 according to changelog below which restricted the cache used by the language translations but I'm not sure. If you can somehow get 1.29.1/2 that might fix those issues.
https://liquipedia.net/warcraft/Patch_1.29.1 - Hashtable storage limit is removed. Game cache mission key limit is removed.
All I can verify on my end is chat seems to work fine in 1.27 and 1.32 with 2.6.1.
The chat bug might be an issue with v1.29 of warcraft 3 according to changelog below which restricted the cache used by the language translations but I'm not sure. If you can somehow get 1.29.1/2 that might fix those issues.
https://liquipedia.net/warcraft/Patch_1.29.1 - Hashtable storage limit is removed. Game cache mission key limit is removed.
All I can verify on my end is chat seems to work fine in 1.27 and 1.32 with 2.6.1.
Okay. Can you please tell me the difference between AMAI 2.54 and AMAI 2.6.1?
That is available here: https://github.com/SMUnlimited/AMAI/blob/2.6.x/CHANGELOG.md
The chat bug might be an issue with v1.29 of warcraft 3 according to changelog below which restricted the cache used by the language translations but I'm not sure. If you can somehow get 1.29.1/2 that might fix those issues.
https://liquipedia.net/warcraft/Patch_1.29.1 - Hashtable storage limit is removed. Game cache mission key limit is removed.
All I can verify on my end is chat seems to work fine in 1.27 and 1.32 with 2.6.1.
I downloaded 1.29.2 but the computer still doesn't say anything :/
Bit of a pain though as that sounded most likely to be relevant. Whatever the problem is it sounds like a bug in warcraft by the fact that both older versions and newer versions work.
One other thought, make sure you stick to the original colours for the players. The new colours for the additional players above 12 might cause issues in this version as that wasn't fixed until 3.00.
You could keep trying different versions. E.g 1.28 as Lolasik011 said everything was working there with 2.6.1. Alternatively go the other way trying 1.30, 1.31. I may have to add a warning that something in 1.29 and whatever other version numbers you try and fail appears to break the AMAI chat.
听起来有点痛苦,但听起来很可能是相关的。不管是什么问题,老版本和新版本都可以工作,这听起来像是魔兽中的错误。
另一个想法是,请确保您坚持播放器的原始颜色。12岁以上的其他玩家的新颜色可能会在此版本中引起问题,因为该问题要到3.00才能修复。
您可以继续尝试其他版本。例如1.28,就像Lolasik011所说的那样,一切都在2.6.1下运行。或者,尝试以其他方式尝试1.30、1.31。 我可能需要添加一条警告,指出1.29中的某些内容以及您尝试失败的任何其他版本号都可能破坏AMAI聊天。
非常感谢!
Just adding my experience if it helps anyone, but I had the same problem and solved it by using an older version of AMAI (AMAI2.54PE). Works great now. Good luck!
When I try to play custom games, the menu where to choose the number of computers, race, teams and color is missing. When I try to start, it just gives a red error and returns to the previous menu. The AMAI 2 folder is AMAI 2.6.0, the one without number is 2.54, which works but it has some bugs, like when the computers says something in chat it's just blank and the number of strategies menu to choose from is from 0-9, when some races have up to 15 strategies. Can you please make a video tutorial on how to install AMAI 2.6.0 and later?
https://user-images.githubusercontent.com/62399556/104109511-5f955300-52d7-11eb-8ee5-0dcd3cfca083.mp4