| 08-27-2010, 11:40 AM | #1 |
I am using the AMAI2.54SE and was wondering how AMAI detects which map I am starting. For example if I select lost temple how does amai know to which map to install the amai ai? I guess this is the AMAI_TFT.exe / AMAI_ROC.exe job. |
| 08-31-2010, 09:05 PM | #2 | |
Quote:
For the simple editions the exe's inject a custom blizzard.j script and custom common.ai and custom racial.ai scripts that contains the AMAI code. All maps use these scripts to know what to do (in combination with a maps own triggers and scripts). All melee maps call a trigger to run melee AI. These call off to the blizzard.j that then loads up the required racial.ai (human,elf,orc etc). And the racial.ai then make calls to the common.ai and then you have AMAI goodness So to answer your question AMAI does not know what map you have loaded, it has to work out knowledge of the map itself. |
| 09-12-2010, 09:22 PM | #3 |
>So to answer your question AMAI does not know what map you have loaded, it has to work out knowledge of the map itself. Ok does the above mean that AMAI_TFT.exe / AMAI_ROC.exe first finds the location of the Warcraft III folder then creates a scripts folder puts the common.ai, blizzard.j, the racial.ai and starts the tft / roc respectively. And after the game exits it removes the folder. Another question: If The AMAI SE injects the scripts automatically then what is the point of the Player Edition which requires you to inject the scripts manually. |
| 09-12-2010, 09:41 PM | #4 |
Yup thats a good way of thinking of it. 3 reasons why we have PE still. 1. More Choice and flexibility 2. PE is required for Battle.net custom game support 3. Its a legacy version and fail safe if SE does not work for some people. |
| 09-13-2010, 06:24 AM | #5 | |
Quote:
Ah good point. >Yup thats a good way of thinking of it. I think it's a little more elaborate than that : ). |
