Well, sometimes things go really well, as I have optimized and simplified Limited Religions for RevDCM version 2.71. The attachment has everything needed to repair Limited Religions for ver RevDCM ver 2.71. Here is the summary of my changes:
Limited Religions option does the following:
1. Civs now found only one religion each.

If you have a Holy city, then you will not found another Holy city. You can get more Holy Cities through combat.
2. When a religious tech is discovered: Python Code does a comparison of how many religions are founded vs how many religious techs have been discovered. If the number of religious techs discovered exceeds the number of religions founded and the civ does not have a Holy city, then a religion will be founded by that civ.
3. If the player chooses the option for limited religions, then the functions doHolyCity and doHolyCityTech are both disabled. The founding of religions are now controlled by only one function: onTechAcquired. Tested successfully in in both single and multiplayer.
4. The canTrain function has a production check for Missionaries, which allows a city to produce only the official state religion missionary. Works only with limited religions.
Choose religions now does the following: When used with the option for Limited Religions.
1. Removed capability to choose religions for AI civs. Instead, the game does a search for the AI's favorite religion and selects that religion if it is available. If the AI's favorite religion is not available, then the AI will pick a randum religion from the list of remaining unfounded religions. This makes the AI selection far more intuitive.
2. The file RevDCMReligionControl.py is now obsolete and can be deleted.
The option for a Religious victory now does the following:
1. Improved code for a Religious victory. Function is disabled if the Religious victory condition option is not selected. Result: Performance improvement.
2. Improved code for determining the religious shrine. For mods that add additional religions to the game, only one line must be added to the dLimitedReligionsData in the LimitedReligions.py file. This creates an easy standard for adding religions to RevDCM.
3. Threshhold for a religious influence can be changed in the LimitedReligionsEvents file on this line:
Code:
if CyGame().calculateReligionPercent(iStateReligion) < [COLOR="red"][B]80[/B][/COLOR]:
Orion Veteran
