daylightend
Chieftain
- Joined
- Oct 11, 2014
- Messages
- 16
Hey
I made a uniqe improvement for my first civ, it should act about the same like a fort. So I started by copying a the xml for a fort. And changed some stuff, currently it's a fort that can only be build on tundra, for testing purposes.
The improvement is showing up as uniques for my civ, all working fine. Also no sql errors. The only problem is that the improvement is not showing up under a worker's build actions. I suspected that's because my improvement has no prerequisite tech, like other improvements do. And thus no "place" on the tech tree. That brings me to my actual question :
I am wondering if anyone knows where I can find the Prerequisite tech for improvements. So that I can add a Prerequisite tech to my own improvement.
I've tried adding <PrereqTech>TECH_POTTERY</PrereqTech> (stolen from granary) to my improvement but that gave me a sql error :
Since pretech is not sorted in the improvements table, but all improvements have a pretech I'm lost on where to search for it.
Hope someone can point me in the right direction, thx in advance !
I made a uniqe improvement for my first civ, it should act about the same like a fort. So I started by copying a the xml for a fort. And changed some stuff, currently it's a fort that can only be build on tundra, for testing purposes.
Spoiler :
<GameData>
<Improvements>
<Row>
<Type>IMPROVEMENT_SUOMENLINNA</Type>
<Description>TXT_KEY_IMPROVEMENT_SUOMENLINNA</Description>
<Civilopedia>TXT_KEY_CIV5_IMPROVEMENTS_FORT_TEXT</Civilopedia>
<ArtDefineTag>ART_DEF_IMPROVEMENT_FORT</ArtDefineTag>
<DestroyedWhenPillaged>true</DestroyedWhenPillaged>
<BuildableOnResources>true</BuildableOnResources>
<DefenseModifier>50</DefenseModifier>
<OutsideBorders>true</OutsideBorders>
<PortraitIndex>24</PortraitIndex>
<IconAtlas>TERRAIN_ATLAS</IconAtlas>
<SpecificCivRequired>true</SpecificCivRequired>
<CivilizationType>CIVILIZATION_FINLAND</CivilizationType>
</Row>
</Improvements>
<Improvement_ValidTerrains>
<Row>
<ImprovementType>IMPROVEMENT_SUOMENLINNA</ImprovementType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
</Improvement_ValidTerrains>
</GameData>
<Improvements>
<Row>
<Type>IMPROVEMENT_SUOMENLINNA</Type>
<Description>TXT_KEY_IMPROVEMENT_SUOMENLINNA</Description>
<Civilopedia>TXT_KEY_CIV5_IMPROVEMENTS_FORT_TEXT</Civilopedia>
<ArtDefineTag>ART_DEF_IMPROVEMENT_FORT</ArtDefineTag>
<DestroyedWhenPillaged>true</DestroyedWhenPillaged>
<BuildableOnResources>true</BuildableOnResources>
<DefenseModifier>50</DefenseModifier>
<OutsideBorders>true</OutsideBorders>
<PortraitIndex>24</PortraitIndex>
<IconAtlas>TERRAIN_ATLAS</IconAtlas>
<SpecificCivRequired>true</SpecificCivRequired>
<CivilizationType>CIVILIZATION_FINLAND</CivilizationType>
</Row>
</Improvements>
<Improvement_ValidTerrains>
<Row>
<ImprovementType>IMPROVEMENT_SUOMENLINNA</ImprovementType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
</Improvement_ValidTerrains>
</GameData>
The improvement is showing up as uniques for my civ, all working fine. Also no sql errors. The only problem is that the improvement is not showing up under a worker's build actions. I suspected that's because my improvement has no prerequisite tech, like other improvements do. And thus no "place" on the tech tree. That brings me to my actual question :
I am wondering if anyone knows where I can find the Prerequisite tech for improvements. So that I can add a Prerequisite tech to my own improvement.
I've tried adding <PrereqTech>TECH_POTTERY</PrereqTech> (stolen from granary) to my improvement but that gave me a sql error :
Spoiler :
[14368.097] table Improvements has no column named PrereqTech
[14368.097] In Query - insert into Improvements('Type', 'Description', 'Civilopedia', 'ArtDefineTag', 'DestroyedWhenPillaged', 'BuildableOnResources', 'DefenseModifier', 'OutsideBorders', 'PortraitIndex', 'IconAtlas', 'SpecificCivRequired', 'CivilizationType', 'PrereqTech') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[14368.097] In XMLSerializer while updating table Improvements from file xml/improvement.xml.
[14368.097] In Query - insert into Improvements('Type', 'Description', 'Civilopedia', 'ArtDefineTag', 'DestroyedWhenPillaged', 'BuildableOnResources', 'DefenseModifier', 'OutsideBorders', 'PortraitIndex', 'IconAtlas', 'SpecificCivRequired', 'CivilizationType', 'PrereqTech') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[14368.097] In XMLSerializer while updating table Improvements from file xml/improvement.xml.
Since pretech is not sorted in the improvements table, but all improvements have a pretech I'm lost on where to search for it.
Hope someone can point me in the right direction, thx in advance !