(Wars of Liberty) Fix the Haiti AI bug

It's rather hard to make the Haiti AI resign because their settlers don't die. Well, I've never seen them resign and I am sure many people also noticed that. Here's how to fix it:

Find the file aiWoLMain.xs in the installation folder of your WoL. If you can't find the folder, try one of these paths:

  • Program Files\Microsoft games\Age of Empires III\AI3
  • Program Files (x86)\Microsoft games\Age of Empires III\AI3
  • Program Files\Steam\steamapps\common\Age of Empires 3\bin\AI3
  • Program Files (x86)\Steam\steamapps\common\Age of Empires 3\bin\AI3

If you can't find aiWoLMain.xs, I am sorry but I can't figure out where you installed your WoL. Find it on your own.

  1. /!\ Backup the file before attempting anything!
  2. Otherwise, open it with Notepad or Notepad++ and find this line (press Ctrl+F): (kbGetPop() >= 30)
  3. You will see this section:

 if (kbGetPop() >= 30) return; 

Delete that section entirely and write this instead:

bool threshhold = (kbGetPop() >= 30); if (cMyCiv == cCivHaitians) threshhold = (getUnitCountByLocation(cUnitTypeUnit, cMyID, cUnitStateAlive, kbGetMapCenter(), 5000.0) >= 30); if (threshhold) return; 

Save by pressing Ctrl+S and it's done.

PS: if you get an error, you didn't do it exactly as I instruct. Try again and if you still get an error, just restore your backup and give up.

submitted by /u/a_mere_random
[link] [comments]

from newest submissions : aoe3 https://ift.tt/3a9s8tA
No comments

No comments :

Post a Comment