Can anyone help me with the 'exclude religion' code?

Onionsoilder

Reaver
Joined
Mar 19, 2007
Messages
3,173
I'm trying to make a mod that includes four new religions(Shinto, Zoroastrianism, Amun-Rah, Hellenism) for a different CivIV mod. However, knowing some people may not want the new religions, I was wondering if anyone could help me out with the code that enables the "Exclude X religion" options FFH2 has, so I can implement it in my mod. I looked around in the code but nothing really stuck out at me. Can anyone help?
 
Game options need to be defined in CvEnums.h and CIV4GameOptionInfos.xml.

These particular options are used in cannotResearch in CvGameUtils.py.
 
So it is not directly portable because in vanilla religion founding techs are not dead end branches off the main tech tree?
 
You can block the founding in base Civ, but it will be more complicated since you have to block the found actions instead of just blocking an entire technology, and make sure that the religion can still be founded by other players who research after you do.

So short answer, not directly portable. Long answer summary: You want the same method (declare gameoptions) to start, but from there you have to stay in the DLL and modify things which can be a bit tricky if you aren't familiar with what you are doing already.
 
Back
Top Bottom