A friend of mine found a pretty obvious and obnoxious AI bug and I spent the day hunting it down. It turns out that a simple text file change will fix your mayors so they keep your cities happy. To fix the bug, just overwrite the file pop.txt in your ctp2_data/default/gamedata directory with a new pop.txt that has the following first record (before POP_ENTERTAINER) :
## Mayors ignore the first pop record, this fixes the problem
## with low happiness not being handled correctly by mayors.
## (REM031501)
POP_ZERO_IGNORED {
EnableAdvance ADVANCE_CLASSICAL_EDUCATION
Food 0
}
Actually, you should probably do this in a scenario and not overwrite the default pop.txt, but do what ever you think is best.
If you want to try it with a game in progress, the easiest way to get it to re-read the pop values is to quit and reload the game and then to bring up the cheat menu and remove the "drama" advance. Then add the drama advance back in. I tried it using a game I was sent and it immediately brought most of the unhappy mayor controlled cities to a non-rioting level. There are a few cities that are still under the magic 73 happiness, but I think this has to do with the mayor not adequetly adjusting for unhappiness caused by pollution. There's nothing I can do about that from text file changes.
I haven't played an entire game with this change, but you should notice the AI plays better too since all AI cities are effectively under mayoral control.
My apologies to the CTP2 community for not finding and fixing this stupid bug before we shipped.
-- Richard
Comment