Galgus
Emperor
- Joined
- Aug 22, 2012
- Messages
- 1,705
The intent of this mod is to remove the Tercio from Spain and replace it with the Temple-replacing Mission unique building, in a crude manner that probably wouldn't update art.
I tried to follow the relevant section of this guide and looking at a similar mod's code, but I can't manage to make the Mission actually show up in-game as a Temple replacement.
I set the mod's properties to updatedatabase onmodactivate in an attempt to follow this video's instructions, but it still would not work.
Since the mod I was basing it on seemed to have all non-icon stuff in one folder aside a modinfo folder that didn't seem to be dealing with the XML, I put all the code into one XML item under a folder.
This is the XML code: do you have any idea what I'm not doing right?
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 1/21/2014 3:35:49 PM -->
<GameData>
<Units>
<Delete Type="UNIT_SPANISH_TERCIO"/>
</Units>
<DeleteMissingReferences table="Units" column="Type"/>
<Buildings>
<Row>
<Type>BUILDING_MISSION</Type>
<BuildingClass>BUILDINGCLASS_TEMPLE</BuildingClass>
<FreeStartEra>ERA_RENAISSANCE</FreeStartEra>
<Cost>100</Cost>
<GoldMaintenance>0</GoldMaintenance>
<PrereqTech>TECH_PHILOSOPHY</PrereqTech>
<Help>TXT_KEY_BUILDING_MISSION_STRATEGY</Help>
<Description>TXT_KEY_BUILDING_MISSION_DESC</Description>
<Civilopedia>TXT_KEY_BUILDINGS_MISSION_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDINGS_MISSION_STRATEGY</Strategy>
<ArtDefineTag>ART_DEF_BUILDING_TEMPLE</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<ReligiousPressureModifier>25</ReligiousPressureModifier>
<PlotCultureCostModifier>-25</PlotCultureCostModifier>
<HurryCostModifier>25</HurryCostModifier>
<ConquestProb>66</ConquestProb>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<PortraitIndex>37</PortraitIndex>
</Row>
</Buildings>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_MISSION</BuildingType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<BuildingType>BUILDING_MISSION</BuildingType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<BuildingType>BUILDING_MISSION</BuildingType>
<YieldType>YIELD_FAITH</YieldType>
<Yield>2</Yield>
</Row>
</Building_YieldChanges>
<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_MISSION_DESC">
<Text>Mission</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_MISSION_STRATEGY">
<Text>
Missions increase religious pressure and cultural border expansion by 25% as well as slightly boosting the city's food and production. They cost no maintenance, but can only be built by Spain.
</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_BUILDINGS_MISSION_PEDIA">
<Text>
In addition to the presidio (fort) and pueblo (town), the misión was one of the three major agencies employed by the Spanish crown to extend its borders and consolidate its colonial territories. The missions introduced European livestock, fruits, vegetables, and industry into their colonies while spreading Christianity.
</Text>
</Row>
</Language_en_US>
<Civilization_BuildingClassOverrides>
<CivilizationType>CIVILIZATION_SPAIN</CivilizationType>
<BuildingClassType>BUILDINGCLASS_TEMPLE</BuildingClassType>
<BuildingType>BUILDING_MISSION</BuildingType>
</Civilization_BuildingClassOverrides>
</GameData>
I tried to follow the relevant section of this guide and looking at a similar mod's code, but I can't manage to make the Mission actually show up in-game as a Temple replacement.
I set the mod's properties to updatedatabase onmodactivate in an attempt to follow this video's instructions, but it still would not work.
Since the mod I was basing it on seemed to have all non-icon stuff in one folder aside a modinfo folder that didn't seem to be dealing with the XML, I put all the code into one XML item under a folder.
This is the XML code: do you have any idea what I'm not doing right?
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 1/21/2014 3:35:49 PM -->
<GameData>
<Units>
<Delete Type="UNIT_SPANISH_TERCIO"/>
</Units>
<DeleteMissingReferences table="Units" column="Type"/>
<Buildings>
<Row>
<Type>BUILDING_MISSION</Type>
<BuildingClass>BUILDINGCLASS_TEMPLE</BuildingClass>
<FreeStartEra>ERA_RENAISSANCE</FreeStartEra>
<Cost>100</Cost>
<GoldMaintenance>0</GoldMaintenance>
<PrereqTech>TECH_PHILOSOPHY</PrereqTech>
<Help>TXT_KEY_BUILDING_MISSION_STRATEGY</Help>
<Description>TXT_KEY_BUILDING_MISSION_DESC</Description>
<Civilopedia>TXT_KEY_BUILDINGS_MISSION_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDINGS_MISSION_STRATEGY</Strategy>
<ArtDefineTag>ART_DEF_BUILDING_TEMPLE</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<ReligiousPressureModifier>25</ReligiousPressureModifier>
<PlotCultureCostModifier>-25</PlotCultureCostModifier>
<HurryCostModifier>25</HurryCostModifier>
<ConquestProb>66</ConquestProb>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<PortraitIndex>37</PortraitIndex>
</Row>
</Buildings>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_MISSION</BuildingType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<BuildingType>BUILDING_MISSION</BuildingType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<BuildingType>BUILDING_MISSION</BuildingType>
<YieldType>YIELD_FAITH</YieldType>
<Yield>2</Yield>
</Row>
</Building_YieldChanges>
<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_MISSION_DESC">
<Text>Mission</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_MISSION_STRATEGY">
<Text>
Missions increase religious pressure and cultural border expansion by 25% as well as slightly boosting the city's food and production. They cost no maintenance, but can only be built by Spain.
</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_BUILDINGS_MISSION_PEDIA">
<Text>
In addition to the presidio (fort) and pueblo (town), the misión was one of the three major agencies employed by the Spanish crown to extend its borders and consolidate its colonial territories. The missions introduced European livestock, fruits, vegetables, and industry into their colonies while spreading Christianity.
</Text>
</Row>
</Language_en_US>
<Civilization_BuildingClassOverrides>
<CivilizationType>CIVILIZATION_SPAIN</CivilizationType>
<BuildingClassType>BUILDINGCLASS_TEMPLE</BuildingClassType>
<BuildingType>BUILDING_MISSION</BuildingType>
</Civilization_BuildingClassOverrides>
</GameData>