Download(日本語版)
都市が次ターンの人口増加で、不幸になったりするときにログで報せてくれます
インストール方法
詳細は付属のドキュメントを参照。
上のDownloadから入手して使用してください
展開先が\My Games\Warlords\になるほか、若干の書き換えが必要。以下CivFanatics' Forumより引用。
\CustomAssets\python\CvPath.py中の、
def _getInstallDir(): return __getRegValue(_winreg.HKEY_LOCAL_MACHINE, r"Software\Firaxis Games\Sid Meier's Civilization 4", "INSTALLDIR")
を
def _getInstallDir(): civ4Dir = __getRegValue(_winreg.HKEY_LOCAL_MACHINE, r"Software\Firaxis Games\Sid Meier's Civilization 4", "INSTALLDIR") civ4Dir = os.path.join(civ4Dir,"Warlords") return civ4Dir
に変更。
def _getInstallDir(): civ4Dir = __getRegValue(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\CYBERFRONT\Sid Meier's Civilization 4(J) - Warlords", "INSTALLDIR") return civ4Dir
幸福がいっぱいいっぱいなので、都市に対して「成長を回避」を選択している場合でも、毎ターン、次ターンで不幸になると誤った通知をされてしまうことへの対策
Civ4lerts.pyのclass AbstractCityPendingGrowth(AbstractAlert):の"def onCityDoTurn(self, argsList):"を変更する(if文に第3条件を加えているのみ)
def onCityDoTurn(self, argsList): city, player = argsList if ((city.getFoodTurnsLeft() == 1) and not city.isFoodProduction()): self.onCityPendingGrowth(city, player)
を
def onCityDoTurn(self, argsList): city, player = argsList if ((city.getFoodTurnsLeft() == 1) and (not city.isFoodProduction()) and (not city.AI_isEmphasize(5))): self.onCityPendingGrowth(city, player)
に。
5が直値なのがいまいちだが、EMPHASIZE_AVOID_GROWTHの番号がよくわからない。わかる方、変更してください。