Orion's Inquisition Mod

You have problems with:

CIV4PromotionInfos.xml
CIV4SpecialBuildingInfos.xml
CIV4VictoryInfo.xml
CIV4BonusInfos.xml
CIV4BuildingInfos.xml
CIV4UnitInfos.xml
CIV4EventInfos.xml

Just to name a few and that is only the XML! It is way too much to debug the way it is now.

1. You must start over from your base mod. For now, I recommend using my Inquisition mod as your base mod, because the python is modular and has been thoroughly tested for stability.
2. Add only one mod at a time.
3. Important: Work out all of the problems with the first merge before adding a second mod.
4. That means no XML or python errors after running AIAutoPlay for at least one entire game.
5. Once you are sure the first merge works, then fully document the changes and save the merge, as it is now your base mod for the next mod to be added.
6. If the next merge fails, you can always go back to the saved base mod and start over. I have done this many times.
7. Remember, you are converting to modular python, which is likely to be your biggest challenge. You will not need the following files:

CvGameInterface.py
CvUtils.py
CvEventManager

8. No doubt the CvCustomEventManager.py file will have the most difficult changes. You must register all of your new event files with the CvCustomEventManager.py to get them to work. Watch your indentations! For Example:

Code:
AIAutoPlay.AIAutoPlay(self)
ChangePlayer.ChangePlayer(self)
Tester.Tester(self)
InquisitionEvents.InquisitionEvents(self)
CvGreatPersonModEventManager.CvGreatPersonModEventManager(self)

There may be additional entries like the one I had to add:

Code:
self.m_iNetMessage_Inquisitor = 0

...or the one you added:

Code:
config = CvConfigParser.CvConfigParser("Next War Advanced.ini")

If you follow my instructions and work out the bugs one mod at a time and one error at a time, you will be successful. You can always use the forums to ask the real experts about a tough error that you just can't figure out. EmperorFool is brilliant and a far better coder than I am.

Orion Veteran :cool:
 
Great. Thanks for this, Orion. Just TAM and Stone Age to update now before I move to 3.19 :)
 
OK this is the best i could do, sorry:blush:

HELP!!!

Nothing to be ashamed of... I know its a lot of work. I have rebuilt this Inquisition Mod many times because I messed up the code here or forgot something there and the mod totally died. Many hours and days have I spent experimenting and tweaking the code. But persistence pays off. Eventually, I get what I want and the tests run flawlesly. With this version I played 3 games and not one error. That's when it's time to release it. Even with that level of testing, others may still discover a bug you never encountered. You accept it, fix it and turn it out again.

I have achieved about 95% of what I originally set out to accomplish. Now you must overcome these bugs in your mod. Read my last post carefully and just start from scratch, adding one mod at a time. Be deliberate, take your time and do it right. If you run into a specific error you just can't figure out and I can't help you with the Inquisition part, then post it on this link:

http://forums.civfanatics.com/forumdisplay.php?f=271

...and you will get help. Even if it takes you a week or two to merge your first mod to this one, it will be worth it; cause now you have a new base mod to work from. It is a victory in itself to see a mod you have built, finally run without any errors. All of us coders who do this for free, post our work for the benefit of all. It is a gift to the CIV4 community and with many givers, there is choice. Remember, the goal is to play the game the way you like it and have fun.


Orion Veteran :cool:
 
Ehi, Orion. Nice work. Any chance to have just a LIMITED RELIGION mod? (Without Inquisitor, Building and all the rest) just the Limited religion Feature. Which file i need to edit? Is easy? please let me know. Thx.

Perhaps you would like another option in the GlobalDefinesAlt.xml file:

"Allow Inquisitions"

It would not be too difficult to code this new option. If you want it, I'll code it.

Orion Veteran :cool:
 
Damn I really Dunno why when I merged your mod to mine INQUISITION FEATURE WORKS but LIMITED RELIGION and FOREIGN INQUISITION doesn't WORKS!

Wich file I need to edit? Some .INI file?

I have a strange LIMITED RELIGION bug:

I can't found a Second Religion, BUT if I discover 1 religion tech, the 2nd civilization that discover that tech DON'T FOUND NOTHING. :cry::cry::cry:
 
It's random, I believe, as to which civilisation may found a religion that you didn't found earlier on.
 
Damn I really Dunno why when I merged your mod to mine INQUISITION FEATURE WORKS but LIMITED RELIGION and FOREIGN INQUISITION doesn't WORKS!

Which file do I need to edit? Some .INI file? I have a strange LIMITED RELIGION bug:

I can't found a Second Religion, BUT if I discover 1 religion tech, the 2nd civilization that discover that tech DON'T FOUND NOTHING. :cry::cry::cry:


It's no bug, but intentional. Notice the following function:

Code:
def CTFRinit():
	global bReligiousTechInitDone
	if not bReligiousTechInitDone:
		data = {
			"TECH_MEDITATION": 2,
			"TECH_POLYTHEISM": 2,
			"TECH_MONOTHEISM": 3,
			"TECH_CODE_OF_LAWS": 5,
			"TECH_THEOLOGY": 5,
			"TECH_PHILOSOPHY": 7,
			"TECH_DIVINE_RIGHT": 7
		}
		for szTech, iMax in data.iteritems():
			iTech = gc.getInfoTypeForString(szTech)
			if iTech != -1:
				RELIGIOUS_TECH_MAX_RELIGIONS[iTech] = iMax
		bReligiousTechInitDone = True

Notice the number that is next to each one of the techs. That number represents the maximum number of religions that can be founded at that point in the tech tree. Say you discovered POLYTHEISM and founded a religion. If at least one other AI Civ founded a religion, the next Civ will not found a religion under POLYTHEISM. They must proceed to the next tech MONOTHEISM (before someone else gets there first).

Prerequisits for Foreign Inquisitions:

1. The foreign civilization must have the same state religion as you
2. The foreign civilization must have an open borders agreement with you
3. You must have researched Theology, have a state religion and have produced a Holy Office building in at least one city
4. You must have your state religion previously established in the foreign city
5. There must be at least one non-state religion established in the same city.

Did your foreign city meet these Prerequisits? If you don't have your religion established first, send a missionary.

Orion Veteran :cool:
 
It no bug, but intentional. Notice the following function:

OK! Now seems to work! :goodjob::goodjob: Thx another little question:

3. You must have researched Theology, have a state religion and have produced a Holy Office building in at least one city

Wich line to delete for remove the Holy Office condition so inquisitor can remove foreign religions?

And just another thing: wich file to edit\delete for remove the POPUP at start when game starts?

Thx a lot for replies Orion.
 
OK! Now seems to work! :goodjob::goodjob: Thx another little question:



Wich line to delete for remove the Holy Office condition so inquisitor can remove foreign religions?

And just another thing: wich file to edit\delete for remove the POPUP at start when game starts?

Thx a lot for replies Orion.

For each religion's Inquisitor, the requirement is in the CIV4UnitInfos.xml file:

Code:
<PrereqBuilding>BUILDING_TAOIST_HOLY_OFFICE</PrereqBuilding>

This line is only a requirement to produce Inquisitors. It has no relevence to conducting an Inquisition in a foreign city. If you want to remove this requirement, then replace with:

Code:
<PrereqBuilding>NONE</PrereqBuilding>


The popup can be stopped by commenting out one line in the InquisitionEvents.py file:

Code:
# Inquisition.DisplayOCCStatus(iPlayer)

Orion Veteran :cool:
 
Hi Orion. I tried this Basic Limited Religion Mod wich is based (as yours I think) on Bmarz.

http://forums.civfanatics.com/showthread.php?t=293743

I use the Options in _Civ4Config

; Set to 1 for no python exception popups
HidePythonExceptions = 0

I had the following errors...
File "CvEventInferface", line 23, in OnEvent
File "CvEventManager", line 192, in HandelEvent
File "CvEventManager", line 709, in OnTechAcquired

Result = Other Civs doesn't found anything if you discover religion technologies.

Since this mod has the "same origin" as yours, do you know where errors are? It's easy to fix?
I'm talking to you cause I know you're the BEST ONE in this feature... :lol:
This can be modified and reuploaded as a Good MOD COMPONENT for each games.
 
Hi Orion. I tried this Basic Limited Religion Mod which is based (as yours I think) on Bmarz.

http://forums.civfanatics.com/showthread.php?t=293743

I use the Options in _Civ4Config

; Set to 1 for no python exception popups
HidePythonExceptions = 0

I had the following errors...


Result = Other Civs doesn't found anything if you discover religion technologies.

Since this mod has the "same origin" as yours, do you know where errors are? It's easy to fix?
I'm talking to you cause I know you're the BEST ONE in this feature... :lol:
This can be modified and reuploaded as a Good MOD COMPONENT for each games.

I looked at the Basic Limited Religions Mod and it has code that is far different than what is in the Orion's Inquisition Mod. So the "origin" is not the same.

My offer still stands. If you would like an option to disable Inquisitions, I can create an XML option and write the python code in Orion's Inquisition Mod. With the Inquisitions option disabled and limited Religions enabled, you will get the desired effect you are looking for. Just say the word, and I will add the new option for you.

Respectfully,

Orion Veteran :cool:
 
My offer still stands. If you would like an option to disable Inquisitions, I can create an XML option and write the python code in Orion's Inquisition Mod.

This is a good idea for your mod... :goodjob:

By the way, I'm interested just in a Limited Religion mod. Since I see your Inquisition mod is the only Limited Religion working I tried on my mod.
Trying to copy just the LR code from your Inquisition mod is too difficult for me. :(

Is that so hard for you create just a Limited Religion Mod with the same code you use in your Inquisition 2.5 mod? You need just to "cut" and "paste" cause you already wrote it... :worship: :worship: :worship:

Modders and Players will use that Limited Religion Mod as the only LR working Mod Component... :rolleyes: :rolleyes: :rolleyes:
 
I looked at the Basic Limited Religions Mod and it has code that is far different than what is in the Orion's Inquisition Mod. So the "origin" is not the same.

the origin IS the same. We started together down this path a long time ago Orion, trying to fix the inquisition and limited religion mod. Or have you forgotten? :)

I created the basic limited religion mod comp so people could ADD that feature only into their own mods. I use it in my own Next War mod, so far it works great. (at least I thought it did, lol)

Your code has evolved, into a great religion mod, and the work and effort you put in is admirable. :goodjob:

Your code is far from where we started, but remember, we started at the same place.
 
the origin IS the same. We started together down this path a long time ago Orion, trying to fix the inquisition and limited religion mod. Or have you forgotten? :)

I created the basic limited religion mod comp so people could ADD that feature only into their own mods. I use it in my own Next War mod, so far it works great. (at least I thought it did, lol)

Your code has evolved, into a great religion mod, and the work and effort you put in is admirable. :goodjob:

Your code is far from where we started, but remember, we started at the same place.

Yes, forgive me. We did start at the same place. However, now there are a few functions that are different in our respective mods. I think we should both compare those differences and perhaps agree to a standard.

Respectfully,

Orion Veteran :cool:
 
This is a good idea for your mod... :goodjob:

By the way, I'm interested just in a Limited Religion mod. Since I see your Inquisition mod is the only Limited Religion working I tried on my mod.
Trying to copy just the LR code from your Inquisition mod is too difficult for me. :(

Is that so hard for you create just a Limited Religion Mod with the same code you use in your Inquisition 2.5 mod? You need just to "cut" and "paste" cause you already wrote it... :worship: :worship: :worship:

Modders and Players will use that Limited Religion Mod as the only LR working Mod Component... :rolleyes: :rolleyes: :rolleyes:

Here is a stripped down version of Orion's Inquisition Mod that only has limited religions. All python remains in modular format. Tests were successful.


Orion Veteran :cool:
 

Attachments

Here is a stripped down version of Orion's Inquisition Mod that only has limited religions. All python remains in modular format. Tests were successful.

:bowdown::bowdown::bowdown: Works perfectly!:goodjob:

I've just a question:
Seems that your mod with Choose Religion option, also if loaded just alone ignore the Leaderinfos <favouritereligion> tag and that choose only religions SELECTED IN ORDER (1st always JUDAISM, 2nd always CHRISTIANITY...)

All I need is a function that doesn't pick always THE FIRST free religion, but that take the Favouritereligion of the leader!
Any chanche to let the <favoritereligion> tag be integrated with this?
What I need to edit?

However GREAT WORK ORION. You are the KING of PYTHON! :king: :lol:
 
Yes, forgive me. We did start at the same place. However, now there are a few functions that are different in our respective mods. I think we should both compare those differences and perhaps agree to a standard.

Respectfully,

Orion Veteran :cool:

I'll check your code out and see if I can understand the differences...its been awhile :)
 
Back
Top Bottom