I hoping some Modding Guru out there will come to my rescue on this, as I am clueless as to what I'm doing wrong. I've created a mod to add in a religion, modeling it after the XML files for religion found in GK itself. For the life of me I cannot get my religion to appear as a choice. I have two theories as to what it is wrong:
A - Gods and Kings is hard-coded to only allow a particular number of religions. I tried to test this theory by adding a line to delete a religion, then adding its PortraitIndex number to my own religion. The religion I removed was still there when I tested my mod however, suggesting that either don't know the correct command to delete a religion out (see below) or something is amiss with the Mod's execution.
B - The Mod needs to update some database I don't know about. In addition to trying to add another religious choice, I've also tried to add another belief in. I've encountered the exact same problem and concluding that the issue might be a hardcoded limit as well, I tried deleting out a belief to no effect as well. This is my first mod and I'm starting to wonder if I set it up incorrectly and the game isn't even loading the mod. Under project properties I've made GK a prerequisite as well as done the OnModActivated UpdateDatabase for the mod's own XML file.
If its necessary, I'll save all the files and the project in a zip and send it someone else for testing. I'd really appreciate any help you guys can offer.
A - Gods and Kings is hard-coded to only allow a particular number of religions. I tried to test this theory by adding a line to delete a religion, then adding its PortraitIndex number to my own religion. The religion I removed was still there when I tested my mod however, suggesting that either don't know the correct command to delete a religion out (see below) or something is amiss with the Mod's execution.
Code:
<Religions>
<Delete type="RELIGION_TENGRIISM"/>
<Row>
<Type>RELIGION_MEXICAYOTL</Type>
<Description>TXT_KEY_RELIGION_MEXICA</Description>
<Civilopedia>TXT_KEY_RELIGION_MEXICA_PEDIA</Civilopedia>
<EarliestFoundDate>-1</EarliestFoundDate>
<IconAtlas>MEXICA_ATLAS</IconAtlas>
<PortraitIndex>9</PortraitIndex>
<IconString>[ICON_RELIGION_MEXICA]</IconString>
</Row>
</Religions>
B - The Mod needs to update some database I don't know about. In addition to trying to add another religious choice, I've also tried to add another belief in. I've encountered the exact same problem and concluding that the issue might be a hardcoded limit as well, I tried deleting out a belief to no effect as well. This is my first mod and I'm starting to wonder if I set it up incorrectly and the game isn't even loading the mod. Under project properties I've made GK a prerequisite as well as done the OnModActivated UpdateDatabase for the mod's own XML file.
Code:
<Beliefs>
<Delete type="BELIEF_DANCE_AURORA"/>
<Row> <Type>BELIEF_CUALLI_OHTLI</Type>
<Description>TXT_KEY_BELIEF_CUALLI_OHTLI</Description>
<ShortDescription>TXT_KEY_BELIEF__CUALLI_OHTLI_SHORT</ShortDescription>
<Pantheon>true</Pantheon>
</Row>
</Beliefs>
If its necessary, I'll save all the files and the project in a zip and send it someone else for testing. I'd really appreciate any help you guys can offer.