Sometimes u are housed during several minutes ; I think it's because your villagers are building somethings else and you didn't permit your AI to have several builders at the same time. What i suggest you is to increase the number of the builders, each age reached.
Code: Select all
(defrule (current-age == feudal-age) => (set-strategic-number sn-cap-civilian-builders 4) (disable-self))
Moreover, i noticed that you sometimes have the resources required to train knights but your 2 stables dont produce anything.
Overal your AI is way better than ur first version. Congratz, ur dark age is fine. Maybe you could define the research of feudal-age with the amount of food condition too ; i mean, you can "Or" have a X number of villagers "or" having >= 600 food. I suggest it because in my test your Ai was persian and researched feudal with like 700 food and 29pop. It reached feudal with more than 700 food ; it could have reached feudal one minute before (-2 villagers) and could research castle in a better time.
What i can say else is you want extra tcs fast in castle + 2 stables (if knights strategy). My test revealed that your stables and tcs are idl the most of the time. it would be more efficient, in a case, to delay the extra tc for more farms and more activities in ur stable or, in other case, to go one stable and make a 2nd one when your economy is growing while your extra tcs produce actively many precious villagers.
Good job, anyway, and good luck in that wonderful world of scripting !