tchristensen
Emperor
I just added in a new improvement, a lock (or canal). I got everything patched in, and in World Builder I can place the improvement without issue. I have also tried it, and boats can use the Lock as intended.
My issue is that I cannot seem to build it in game, nor does the icon appear when my workers try to build it. Below I have included the appropriate XML and would like someone to see if there is something I am overlooking.
Note: I can see the thumbnail from World Builder and that appears OK too:
<ImprovementInfo>
<Type>IMPROVEMENT_LOCK</Type>
<Description>Canal or Lock</Description>
<Civilopedia>A man made construction allowing ships to move from different bodies of water, often over differing elevations. A lock was often a massive undertaking, not to be taken on lightly.</Civilopedia>
<ArtDefineTag>ART_DEF_IMPROVEMENT_LOCK</ArtDefineTag>
<YieldChanges/>
<bActsAsCity>1</bActsAsCity>
<bHillsMakesValid>0</bHillsMakesValid>
<bFreshWaterMakesValid>0</bFreshWaterMakesValid>
<bRiverSideMakesValid>0</bRiverSideMakesValid>
<bNoFreshWater>0</bNoFreshWater>
<bRequiresFlatlands>0</bRequiresFlatlands>
<bRequiresRiverSide>0</bRequiresRiverSide>
<bRequiresIrrigation>0</bRequiresIrrigation>
<bCarriesIrrigation>0</bCarriesIrrigation>
<bRequiresFeature>0</bRequiresFeature>
<bWater>0</bWater>
<bGoody>0</bGoody>
<bPermanent>0</bPermanent>
<bUseLSystem>1</bUseLSystem>
<iAdvancedStartCost>500</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<iTilesPerGoody>0</iTilesPerGoody>
<iGoodyRange>0</iGoodyRange>
<iFeatureGrowth>0</iFeatureGrowth>
<iUpgradeTime/>
<iAirBombDefense>0</iAirBombDefense>
<iDefenseModifier>0</iDefenseModifier>
<iHappiness>0</iHappiness>
<iPillageGold>0</iPillageGold>
<bOutsideBorders>1</bOutsideBorders>
<TerrainMakesValids>
<TerrainMakesValid>
<TerrainType>TERRAIN_COAST</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_GRASS</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_PLAINS</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_DESERT</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_MARSH</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
</TerrainMakesValids>
<FeatureMakesValids/>
<ImprovementPillage/>
<ImprovementUpgrade/>
<TechYieldChanges/>
<RouteYieldChanges/>
<bGraphicalOnly>0</bGraphicalOnly>
</ImprovementInfo>
<BuildInfo>
<Type>BUILD_LOCK</Type>
<Description>Build a Lock</Description>
<Help/>
<PrereqTech>TECH_ENGINEERING</PrereqTech>
<iTime>1000</iTime>
<iCost>100</iCost>
<bKill>0</bKill>
<ImprovementType>IMPROVEMENT_LOCK</ImprovementType>
<RouteType>NONE</RouteType>
<EntityEvent>ENTITY_EVENT_BUILD</EntityEvent>
<FeatureStructs/>
<HotKey>KB_F</HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>1</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<Button>Art/Interface/Buttons/Buildings/button_lock.dds</Button>
</BuildInfo>
<ImprovementArtInfo>
<Type>ART_DEF_IMPROVEMENT_LOCK</Type>
<bExtraAnimations>0</bExtraAnimations>
<fScale>1.25</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Structures/Buildings/lock/Autobahn.nif</NIF>
<KFM/>
<Button>Art/Interface/Buttons/Buildings/button_lock.dds</Button>
</ImprovementArtInfo>
Any thoughts?
My issue is that I cannot seem to build it in game, nor does the icon appear when my workers try to build it. Below I have included the appropriate XML and would like someone to see if there is something I am overlooking.
Note: I can see the thumbnail from World Builder and that appears OK too:
<ImprovementInfo>
<Type>IMPROVEMENT_LOCK</Type>
<Description>Canal or Lock</Description>
<Civilopedia>A man made construction allowing ships to move from different bodies of water, often over differing elevations. A lock was often a massive undertaking, not to be taken on lightly.</Civilopedia>
<ArtDefineTag>ART_DEF_IMPROVEMENT_LOCK</ArtDefineTag>
<YieldChanges/>
<bActsAsCity>1</bActsAsCity>
<bHillsMakesValid>0</bHillsMakesValid>
<bFreshWaterMakesValid>0</bFreshWaterMakesValid>
<bRiverSideMakesValid>0</bRiverSideMakesValid>
<bNoFreshWater>0</bNoFreshWater>
<bRequiresFlatlands>0</bRequiresFlatlands>
<bRequiresRiverSide>0</bRequiresRiverSide>
<bRequiresIrrigation>0</bRequiresIrrigation>
<bCarriesIrrigation>0</bCarriesIrrigation>
<bRequiresFeature>0</bRequiresFeature>
<bWater>0</bWater>
<bGoody>0</bGoody>
<bPermanent>0</bPermanent>
<bUseLSystem>1</bUseLSystem>
<iAdvancedStartCost>500</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<iTilesPerGoody>0</iTilesPerGoody>
<iGoodyRange>0</iGoodyRange>
<iFeatureGrowth>0</iFeatureGrowth>
<iUpgradeTime/>
<iAirBombDefense>0</iAirBombDefense>
<iDefenseModifier>0</iDefenseModifier>
<iHappiness>0</iHappiness>
<iPillageGold>0</iPillageGold>
<bOutsideBorders>1</bOutsideBorders>
<TerrainMakesValids>
<TerrainMakesValid>
<TerrainType>TERRAIN_COAST</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_GRASS</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_PLAINS</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_DESERT</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
<TerrainMakesValid>
<TerrainType>TERRAIN_MARSH</TerrainType>
<bMakesValid>1</bMakesValid>
</TerrainMakesValid>
</TerrainMakesValids>
<FeatureMakesValids/>
<ImprovementPillage/>
<ImprovementUpgrade/>
<TechYieldChanges/>
<RouteYieldChanges/>
<bGraphicalOnly>0</bGraphicalOnly>
</ImprovementInfo>
<BuildInfo>
<Type>BUILD_LOCK</Type>
<Description>Build a Lock</Description>
<Help/>
<PrereqTech>TECH_ENGINEERING</PrereqTech>
<iTime>1000</iTime>
<iCost>100</iCost>
<bKill>0</bKill>
<ImprovementType>IMPROVEMENT_LOCK</ImprovementType>
<RouteType>NONE</RouteType>
<EntityEvent>ENTITY_EVENT_BUILD</EntityEvent>
<FeatureStructs/>
<HotKey>KB_F</HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>1</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<Button>Art/Interface/Buttons/Buildings/button_lock.dds</Button>
</BuildInfo>
<ImprovementArtInfo>
<Type>ART_DEF_IMPROVEMENT_LOCK</Type>
<bExtraAnimations>0</bExtraAnimations>
<fScale>1.25</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Structures/Buildings/lock/Autobahn.nif</NIF>
<KFM/>
<Button>Art/Interface/Buttons/Buildings/button_lock.dds</Button>
</ImprovementArtInfo>
Any thoughts?