Autumn Leaf
Since 1992
Hi guys
Playing as Fatimids and a minor bug was messing with my purges. Although the Fatimid UP is reduced unrest and instability from foreign religion and culture, after conquering the Med coast and some of Anatolia, I needed to get rid of a few religions that were, ahem, excess to requirements - namely Judaism, Catholocism and Orthodoxy (I didn't have any cities with Zoroastrianism, Hinduism or Buddhism yet). However, every time I tried to get rid of Judaism in a city with Sunni in it, it purged Sunni instead.
I'm not quite ready yet to pick a fight with every Sunni civ on the planet, so I looked in consts.py where there is a section defining the order in which the AI will persecute religions. Fatimids are Shia and Shia is the last religion defined in the list, so we need to look at the last line. As you can see, Shia AIs will persecute Sunni first.
This list order should only affect the AI, but on impulse I changed the last line to place Sunni last:
Exited the game and restarted. Bingo! Problem solved, Jews expelled from Damascus.
I haven't explored this extensively, but the Sunni may have the same issue. If you're having trouble with the game targeting the wrong religion, you can try reordering the religjons in iPersecutionOrder for your civ's state religion.
Better would be to track down the bug that is ignoring the interface choice of religion to purge, but that would require digging into the code surrounding eventApply7626(self, popupReturn) in religions.py.
Playing as Fatimids and a minor bug was messing with my purges. Although the Fatimid UP is reduced unrest and instability from foreign religion and culture, after conquering the Med coast and some of Anatolia, I needed to get rid of a few religions that were, ahem, excess to requirements - namely Judaism, Catholocism and Orthodoxy (I didn't have any cities with Zoroastrianism, Hinduism or Buddhism yet). However, every time I tried to get rid of Judaism in a city with Sunni in it, it purged Sunni instead.
I'm not quite ready yet to pick a fight with every Sunni civ on the planet, so I looked in consts.py where there is a section defining the order in which the AI will persecute religions. Fatimids are Shia and Shia is the last religion defined in the list, so we need to look at the last line. As you can see, Shia AIs will persecute Sunni first.
Code:
# RELIGIONS
iNumReligions = 8
(iJudaism, iZoroastrianism, iHinduism, iBuddhism, iCatholicism, iOrthodoxy, iSunni, iShia) = range(iNumReligions)
# The AI will persecute religions in this order, depending on its own state religion (one row per religion)
tPersecutionOrder = (
(iZoroastrianism, iCatholicism, iOrthodoxy, iShia, iSunni, iHinduism, iBuddhism),
(iSunni, iShia, iCatholicism, iOrthodoxy, iJudaism, iHinduism, iBuddhism),
(iSunni, iShia, iCatholicism, iOrthodoxy, iZoroastrianism, iJudaism, iBuddhism),
(iSunni, iShia, iZoroastrianism, iJudaism, iCatholicism, iOrthodoxy, iHinduism),
(iJudaism, iZoroastrianism, iSunni, iShia, iHinduism, iOrthodoxy, iBuddhism),
(iJudaism, iZoroastrianism, iSunni, iShia, iHinduism, iCatholicism, iBuddhism),
(iShia, iHinduism, iZoroastrianism, iCatholicism, iOrthodoxy, iJudaism, iBuddhism),
(iSunni, iHinduism, iZoroastrianism, iCatholicism, iOrthodoxy, iJudaism, iBuddhism),
)
This list order should only affect the AI, but on impulse I changed the last line to place Sunni last:
Code:
(iHinduism, iZoroastrianism, iCatholicism, iOrthodoxy, iJudaism, iBuddhism, iSunni),
Exited the game and restarted. Bingo! Problem solved, Jews expelled from Damascus.
I haven't explored this extensively, but the Sunni may have the same issue. If you're having trouble with the game targeting the wrong religion, you can try reordering the religjons in iPersecutionOrder for your civ's state religion.
Better would be to track down the bug that is ignoring the interface choice of religion to purge, but that would require digging into the code surrounding eventApply7626(self, popupReturn) in religions.py.