CIV4BuildingInfos.XML:How does Spiritual give bonuses to all temples? I want to extend the bonus to cathedrals, monasteries, and shrines (which are buildable in my mod).
<ProductionTraits>
<ProductionTrait>
<ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType>
<iProductionTrait>100</iProductionTrait>
</ProductionTrait>
</ProductionTraits>
CIV4BuildingInfos.XML:
Code:<ProductionTraits> <ProductionTrait> <ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType> <iProductionTrait>100</iProductionTrait> </ProductionTrait> </ProductionTraits>
Insert to all buildings you want to.
Are you looking in BuildingInfos.XML?
<SpecialBuildingInfo>
<Type>SPECIALBUILDING_TEMPLE</Type>
<Description>TXT_KEY_SPECIALBUILDING_TEMPLE</Description>
<ObsoleteTech>NONE</ObsoleteTech>
<TechPrereq>TECH_PRIESTHOOD</TechPrereq>
<TechPrereqAnyone>NONE</TechPrereqAnyone>
<bValid>1</bValid>
<ProductionTraits>
<ProductionTrait>
<ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType>
<iProductionTrait>100</iProductionTrait>
</ProductionTrait>
</ProductionTraits>
<Button>Art/Interface/Buttons/Buildings/Temple.dds</Button>
</SpecialBuildingInfo>
<SpecialBuildingInfo>
<Type>SPECIALBUILDING_CATHEDRAL</Type>
<Description>TXT_KEY_SPECIALBUILDING_CATHEDRAL</Description>
<ObsoleteTech>NONE</ObsoleteTech>
<TechPrereq>TECH_PAPACY</TechPrereq>
<TechPrereqAnyone>NONE</TechPrereqAnyone>
<bValid>1</bValid>
<ProductionTraits>
<ProductionTrait>
<ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType>
<iProductionTrait>100</iProductionTrait>
</ProductionTrait>
</ProductionTraits>
<Button>Art/Interface/Buttons/Buildings/Cathedral.dds</Button>
</SpecialBuildingInfo>
Okay, I've found it. Actually there is a better way than the one I suggested first:
CIV4SpecialBuildingInfos.XML
<SpecialBuildingInfo>
<Type>SPECIALBUILDING_SHRINES</Type>
<Description>TXT_KEY_SPECIALBUILDING_TEMPLE</Description>
<ObsoleteTech>NONE</ObsoleteTech>
<TechPrereq>NONE</TechPrereq>
<TechPrereqAnyone>NONE</TechPrereqAnyone>
<bValid>1</bValid>
<ProductionTraits>
<ProductionTrait>
<ProductionTraitType>TRAIT_SPIRITUAL</ProductionTraitType>
<iProductionTrait>100</iProductionTrait>
</ProductionTrait>
</ProductionTraits>
<Button>Art/Interface/Buttons/Buildings/Temple.dds</Button>
</SpecialBuildingInfo>
<BuildingInfo>
<BuildingClass>BUILDINGCLASS_JEWISH_SHRINE</BuildingClass>
<Type>BUILDING_JEWISH_SHRINE</Type>
<SpecialBuildingType>SPECIALBUILDING_SHRINES</SpecialBuildingType>
...
The thing about the culture slider can be done in AI_doCommerce, and civics in AI_doCivics, both in CvPlayerAI.cpp. Neither of these functions calls Python, so I don't see a way to implement this in Python. City production is handled by a large function called AI_chooseProduction in CvCityAI.cpp.What language, python or SDK, i need use to do that?
So, it will be SDK. Thank you!The thing about the culture slider can be done in AI_doCommerce, and civics in AI_doCivics, both in CvPlayerAI.cpp. Neither of these functions calls Python, so I don't see a way to implement this in Python. City production is handled by a large function called AI_chooseProduction in CvCityAI.cpp.
It seems, that CvGameInterface.cpp It seems, that CvGameInterface.cpp is corrupted. It is not right to merge 3.13 mod with 3.19 mod. To update 3.13 mod up to 3.19 version
1) merge 3.13 mod files with original 3.13 CvGameCore source and comment differences.
2) Merge 3.13 commented code with original 3.19 CvGameCore source and you'll get 3.19 mod.
3) Merge 3.19 mod with RevDCM 3.19.It seems, that CvGameInterface.cpp It seems, that CvGameInterface.cpp is corrupted. It is not right to merge 3.13 mod with 3.19 mod. To update 3.13 mod up to 3.19 version
1) merge 3.13 mod files with original 3.13 CvGameCore source and comment differences.
2) Merge 3.13 code with original 3.19 CvGameCore source and you'll get 3.19 mod.
3) Merge 3.19 mod with RevDCM 3.19.
Variant 2: ChinChin has updated Route Restricter as a part of his Combat Revolution Modcomp. Try to extract it.
It seems, that CvGameInterface.cpp It seems, that CvGameInterface.cpp is corrupted. It is not right to merge 3.13 mod with 3.19 mod. To update 3.13 mod up to 3.19 version
1) merge 3.13 mod files with original 3.13 CvGameCore source and comment differences.
2) Merge 3.13 commented code with original 3.19 CvGameCore source and you'll get 3.19 mod.
3) Merge 3.19 mod with RevDCM 3.19.It seems, that CvGameInterface.cpp It seems, that CvGameInterface.cpp is corrupted. It is not right to merge 3.13 mod with 3.19 mod. To update 3.13 mod up to 3.19 version
1) merge 3.13 mod files with original 3.13 CvGameCore source and comment differences.
2) Merge 3.13 code with original 3.19 CvGameCore source and you'll get 3.19 mod.
3) Merge 3.19 mod with RevDCM 3.19.
Variant 2: ChinChin has updated Route Restricter as a part of his Combat Revolution Modcomp. Try to extract it.