• 📚 A new project from the admin: Check out PictureBooks.io, an AI storyteller that lets you build custom picture books for kids in seconds. Let me know what you think here!

Religion founded without pre-requisite tech?

Antmanbrooks

Prince
Joined
Jun 20, 2007
Messages
436
Location
The Cheshire Plain.
I have converted Genghis Kai's GEM 200BC scenario for Rise of Mankind 2.81 with New Dawn modmod and it all seems to be working perfectly apart from one small problem.

6 turns in, 180BC in game time, without fail both Christianity and Islam are founded by random Civ's? None of the Civ's could possibly have researched the pre-requisite tech in 6 turns as Theology (Christianity) is only researchable by a handful of Civ's at this stage and Education (Islam) is a long way off for all Civ's.

It seems to be random who founds these Religions and I was hoping someone here might have some idea's why this is happening?

I have messaged Genghis Kai direct but so far no reply and I have also posted both in the RoM forums and the GEM forums but no help yet.
 
I know this problem and it has cost me some grey hairs.

I tested i bit around and find out, that this problem rise if a CIV has a FreeTech at start that is a TechPrereq for a religion.
 
I know this problem and it has cost me some grey hairs.

I tested i bit around and find out, that this problem rise if a CIV has a FreeTech at start that is a TechPrereq for a religion.

Well there are 35 Civs to start with and at least one or more has the techs required for all the religions except Christianity and Islam. All the other Religions are present when the game starts? Is there any way to prevent the random founding of these religions and put them back to their righful tech before being founded?
 
try this: give all religions in the xml-file a Tech (TechPrereq) that no CIV had. Like the tech for Christianity or Islam.
 
Are you playing with the ChooseReligions custom game option, or is it mandated by the ini or scenario or something?
 
Are you playing with the ChooseReligions custom game option, or is it mandated by the ini or scenario or something?

No, I turned that off, though I think it may have been on when I generated the blank map.

I have noticed on random maps if I play an advanced start then a few turns in all religions get founded, so my guess is it's something to do with advanced start too.
 
try this: give all religions in the xml-file a Tech (TechPrereq) that no CIV had. Like the tech for Christianity or Islam.

hmmm, yeah that might work? I wonder what will happen when they found that tech? do you think the religion will be founded again?
 
try this: give all religions in the xml-file a Tech (TechPrereq) that no CIV had. Like the tech for Christianity or Islam.

I just tried changing the tech prereq in the CIV4ReligionInfo file for all religions to theology, apart from Islam which I left at Education and I get the following XML error;

Tag: RELIGION_HELLENISM in Info class was incorrect
Current XML file is: xml\Buildings/CIV4BuildingInfos.xml

I get the same message for the other religions and buildings etc...

This way of solving the problem might require a lot of changes to the various religious buildings etc... Instead, is there a way I can take away the religion's prerequisite techs from all civs apart from the religion founder and add them as an event on turn one for the other civs?

For example, Confucianism's holy city is currently in the Chu Empire so only the Chu would start the game owning the Code of Laws tech. All other Civs that rightfully start the game with knowledge of Code of Laws, for example the Romans are gifted the tech on turn 1 through an event. Is there a way of gifting techs through a coded turn one event?
 
If its a scenario you're talking about here, why not open it with WB and just place the appropriate shrine in the founder's capitol? Or if modding, make a new tech that is the new founding tech for the rel and give it as a free tech to the intended founder (only) if you want them to have to build the shrine? Much easier than doing an event because it would have to be one that used python code rather than off the shelf xml. Just make a tech "Islam" and give it free to the Arabian Empire. Or if you just want them to have a BETTER chance of the rel, make the rel tech but give them (only)
the prerequisite tech for it.


When you open the map with a word processor instead of Civ, does it have something like this?

Version=11
BeginGame
Era=ERA_ANCIENT
Speed=GAMESPEED_NORMAL
Calendar=CALENDAR_DEFAULT
Option=GAMEOPTION_PICK_RELIGION

EDIT: if so you can just delete that last line.
 
If its a scenario you're talking about here, why not open it with WB and just place the appropriate shrine in the founder's capitol? Or if modding, make a new tech that is the new founding tech for the rel and give it as a free tech to the intended founder (only) if you want them to have to build the shrine? Much easier than doing an event because it would have to be one that used python code rather than off the shelf xml. Just make a tech "Islam" and give it free to the Arabian Empire. Or if you just want them to have a BETTER chance of the rel, make the rel tech but give them (only)
the prerequisite tech for it.


When you open the map with a word processor instead of Civ, does it have something like this?

Version=11
BeginGame
Era=ERA_ANCIENT
Speed=GAMESPEED_NORMAL
Calendar=CALENDAR_DEFAULT
Option=GAMEOPTION_PICK_RELIGION

EDIT: if so you can just delete that last line.

Thanks for the help, it is a scenario I'm having problems with. I don't think it's about the techs either, because I have taken away the prerequisite techs from all civs apart from the founder of each religion and still the game founds Islam and Christianity in 180BC?

For example the Han Empire founded Taosim so they are the only civ with Philosophy, the Egyptian Ptolemic empire founded Khemetism so they are the only nation with Ceremonial Burial etc...

Yeah it looks just like that, but without the "Option=GAMEOPTION_PICK_RELIGION". So that's disabled already.
 
I just tried changing the tech prereq in the CIV4ReligionInfo file for all religions to theology, apart from Islam which I left at Education and I get the following XML error;

Tag: RELIGION_HELLENISM in Info class was incorrect
Current XML file is: xml\Buildings/CIV4BuildingInfos.xml

I get the same message for the other religions and buildings etc...

This way of solving the problem might require a lot of changes to the various religious buildings etc... Instead, is there a way I can take away the religion's prerequisite techs from all civs apart from the religion founder and add them as an event on turn one for the other civs?

For example, Confucianism's holy city is currently in the Chu Empire so only the Chu would start the game owning the Code of Laws tech. All other Civs that rightfully start the game with knowledge of Code of Laws, for example the Romans are gifted the tech on turn 1 through an event. Is there a way of gifting techs through a coded turn one event?

I can not find a technologie in the buildinginfo.xml for the temple...? Could someone please remind me where are the technological requirements for the temple, monastery...?
 
Back
Top Bottom