orion, I think you might want to detail exactly what your limited religion mod is about, and how it works. Did you still keep the theology requirement? That is a good example of how your interpretation of limited religions is different than what Bmarnz originally had.
Modifieda4,
What do you think about the latest version?
I havent tried it explicitly, but I like the holy office/inquisition changes (which i included in my mod). I also like the foriegn inquisition changes. I think both of these are great additions.
per our previous posts, i think we have different approaches to the limited religions. i dont play for religious victories nor with the choose religion game option enabled. so those aspects dont interest me either.
i think this mod is pretty mature now, not much else to do. Maybe a real mod component version of the inquisition. really basic without the other stuff so its easy to integrate into other people's mods.
Unfortunately, I have enhanced (per se) several different minor things to customize my tastes and to fix what I believe are balance problems, so I will have to locate the code and manually ensure that my additions are not destroyed and are still usable in the mod.
I have enhanced (per se) several different minor things to customize my tastes and to fix what I believe are balance problems.
def AI_chooseProduction(argsList):
'AI chooses city production'
#CvUtil.pyPrint( "CvGameInterface.AI_chooseProduction" )
return gameUtils().AI_chooseProduction(argsList)
if not iStateReligion == -1 :
#if gc.getPlayer( iOwner ).getStateReligion( ) >= 0:
if pCity.canTrain( iTaoInq, 0, 0 ) or pCity.canTrain( iConInq, 0, 0 ) or pCity.canTrain( iJudInq, 0, 0 ) or pCity.canTrain( iHinInq, 0, 0 ) or pCity.canTrain( iBudInq, 0, 0 ) or pCity.canTrain( iIslInq, 0, 0 ) or pCity.canTrain( iChrInq, 0, 0 ) or pCity.canTrain( iOlyInq, 0, 0 ) or pCity.canTrain( iAseInq, 0, 0 ) or pCity.canTrain( iVooInq, 0, 0 ) or pCity.canTrain( iShiInq, 0, 0 ) or pCity.canTrain( iZorInq, 0, 0 ) or pCity.canTrain( iRaaInq, 0, 0 ) or pCity.canTrain( iTolInq, 0, 0 ):
lUnits = PyPlayer( pPlayer.getID( ) ).getUnitList( )
for iUnit in range( len( lUnits) ):
# if there are any Inquisitors, don't Build one
if pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iJudInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iChrInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iIslInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iHinInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iBudInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iConInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iTaoInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iOlyInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iAseInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iVooInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iShiInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iZorInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iRaaInq or pPlayer.getUnit( lUnits[ iUnit ].getID( ) ).getUnitType( ) == iTolInq:
return False
if self.getRandomNumber( 2 ) == 0:
iInqVersions = { "1": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iJudInq, -1, False, False, False, True ), "2": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iChrInq, -1, False, False, False, True ), "3": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iIslInq, -1, False, False, False, True ), "4": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iHinInq, -1, False, False, False, True ), "5": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iBudInq, -1, False, False, False, True ), "6": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iConInq, -1, False, False, False, True ), "7": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iTaoInq, -1, False, False, False, True ), "8": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iOlyInq, -1, False, False, False, True ), "9": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iAseInq, -1, False, False, False, True ), "10": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iVooInq, -1, False, False, False, True ), "11": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iShiInq, -1, False, False, False, True ), "12": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iZorInq, -1, False, False, False, True ), "13": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iRaaInq, -1, False, False, False, True ), "14": gc.getMap( ).plot( pCity.getX( ), pCity.getY( ) ).getPlotCity( ).pushOrder( OrderTypes.ORDER_TRAIN, iTolInq, -1, False, False, False, True )}
iInqVersions.get( pPlayer.getStateReligion( ), ) ()
return True
return False
iInqVersions.get( pPlayer.getStateReligion( ), ) ()
Can anybody help me with this?
Perhaps an option can be made for the bypass feature. 1 to limit the Bypass feature to a single tech. 0 to have the Bypass feature work on all religious techs. I think being able to set an option allows the freedom of choice to play the game with the feature you desire.
Your thoughts...
Orion Veteran
all the feature switching code makes it much harder to merge the good ideas and features of this mod into other mods.
The Inquisition Mod has the same function, but it is coded differently in the CvGameUtils.py file:
def AI_chooseProduction(self,argsList):
You might want to compare the two functions.
V/R,
Orion Veteran
It doesn't say that in my CvGameUtils.py file, where are you seeing this?
def AI_chooseProduction(self,argsList):
pCity = argsList[0]
iTaoInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_TAOIST_INQUISITOR" )
iConInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_CONFUCIAN_INQUISITOR" )
iBudInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_BUDDHIST_INQUISITOR" )
iHinInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_HINDU_INQUISITOR" )
iJudInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_JEWISH_INQUISITOR" )
iChrInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_CHRISTIAN_INQUISITOR" )
iIslInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_ISLAMIC_INQUISITOR" )
iOlyInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_OLYMP_INQUISITOR" )
iAseInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_ASEN_INQUISITOR" )
iVooInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_VOODOO_INQUISITOR" )
iShiInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_SHINTO_INQUISITOR" )
iZorInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_ZORO_INQUISITOR" )
iRaaInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_RA_INQUISITOR" )
iTolInq = CvUtil.findInfoTypeNum( gc.getUnitInfo, gc.getNumUnitInfos(), "UNIT_TOLTEC_INQUISITOR" )
iOwner = pCity.getOwner( )
pPlayer = gc.getPlayer( iOwner )
iStateReligion = pPlayer.getStateReligion()
def AI_chooseProduction(argsList):
'AI chooses city production'
#CvUtil.pyPrint( "CvGameInterface.AI_chooseProduction" )
return gameUtils().AI_chooseProduction(argsList)
def AI_chooseProduction(self,argsList):
'AI chooses city production'
#CvUtil.pyPrint( "CvGameInterface.AI_chooseProduction" )
return gameUtils().AI_chooseProduction(self,argsList)
Also which one is your updated version? Its confusing you should put a link up
Yes, you should put a download link in your sig.