Code:
<GameData>
<Types>
<Row Type="UNIT_ENGLISH_DREADNOUGHT" Kind="KIND_UNIT"/>
<Row Type="TRAIT_CIVILIZATION_UNIT_ENGLISH_DREADNOUGHT" Kind="KIND_TRAIT" />
</Types>
<Units>
<Row UnitType="UNIT_ENGLISH_DREADNOUGHT" BaseMoves="5" Cost="430" AdvisorType="ADVISOR_CONQUEST"
BaseSightRange="5" ZoneOfControl="true" Domain="DOMAIN_SEA" FormationClass="FORMATION_CLASS_NAVAL"
Name="LOC_UNIT_ENGLISH_DREADNOUGHT_NAME" Description="LOC_UNIT_ENGLISH_DREADNOUGHT_DESCRIPTION"
PurchaseYield="YIELD_GOLD" PseudoYieldType="PSEUDOYIELD_UNIT_NAVAL_COMBAT"
PromotionClass="PROMOTION_CLASS_NAVAL_RANGED" Maintenance="6" Combat="100" RangedCombat="150"
Range="5" PrereqTech="TECH_STEAM_POWER" TraitType="TRAIT_CIVILIZATION_UNIT_ENGLISH_DREADNOUGHT"
AntiAirCombat="80"/>
</Units>
<UnitReplaces>
<Row CivUniqueUnitType="UNIT_ENGLISH_DREADNOUGHT" ReplacesUnitType="UNIT_IRONCLAD"/>
</UnitReplaces>
<UnitAiInfos>
<Row UnitType="UNIT_ENGLISH_DREADNOUGHT" AiType="UNITAI_COMBAT"/>
<Row UnitType="UNIT_ENGLISH_DREADNOUGHT" AiType="UNITTYPE_RANGED"/>
<Row UnitType="UNIT_ENGLISH_DREADNOUGHT" AiType="UNITTYPE_NAVAL"/>
</UnitAiInfos>
<CivilizationTraits>
<Row CivilizationType="CIVILIZATION_ENGLAND" TraitType="TRAIT_CIVILIZATION_UNIT_ENGLISH_DREADNOUGHT"/>
</CivilizationTraits>
<Traits>
<Row TraitType="TRAIT_CIVILIZATION_UNIT_ENGLISH_DREADNOUGHT" Name="LOC_UNIT_ENGLISH_DREADNOUGHT_NAME"/>
</Traits>
<TypeTags>
<Row Type="UNIT_ENGLISH_DREADNOUGHT" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_ENGLISH_DREADNOUGHT" Tag="CLASS_ANTI_AIR"/>
</TypeTags>
</GameData>
You have to look at all the lines that start with a similar time-stamp to determine the error in your code. See in post #2 where the first set of errors I quoted all have the same opening time-stamp ([1710427.791]). You have to look at all the lines in Database.log that have a same time-stamp in order to determine which messages go together and therefore what the problem is.
----------------------------------------------------------
In addition to the syntax error in table Units you were also missing this in table <Types>
Code:
<Row Type="TRAIT_CIVILIZATION_UNIT_ENGLISH_DREADNOUGHT" Kind="KIND_TRAIT" />
The changes shown make the unit appear properly everywhere except the civilization/leader selection screen and it only does not show there because your mod has no code to make it appear there.
Whether or not the proper animation shows is a different issue. I did not test for that, and I don't have the expertise to fix issues with unit-animations anyway.
Thank you for fixing that for me. It now works and shows up in the game. Now I can build the unit but unfortunately it is showing up as a warrior unit and not a Battleship. I did try and copy and past the battleship entry from artdef in the original game files and then change it at the end to my unit name ( ENGLISH_DREADNOUGHT) but I still get a warrior animation. Another user on another thread even gave me a copy of the battleship artdef code to make sure it is correct but no luck. Here is my artdef file contents:
<?xml version="1.0" encoding="UTF-8" ?>
<AssetObjects:ArtDefSet>
<m_Version>
<major>4</major>
<minor>0</minor>
<build>253</build>
<revision>293</revision>
</m_Version>
<m_TemplateName text="Units"/>
<m_RootCollections>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text="Naval"/>
<m_RootCollectionName text="UnitFormationTypes"/>
<m_ArtDefPath text="Units.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="Formation"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text=""/>
<m_RootCollectionName text="UnitCombat"/>
<m_ArtDefPath text="Units.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="UnitCombat"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text=""/>
<m_RootCollectionName text="UnitFormationTypes"/>
<m_ArtDefPath text="Units.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="EscortFormation"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text=""/>
<m_RootCollectionName text="Units"/>
<m_ArtDefPath text="Units.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="EmbarkedUnit"/>
</Element>
<Element class="AssetObjects:BoolValue">
<m_bValue>false</m_bValue>
<m_ParamName text="DoNotDisplayCharges"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text=""/>
<m_RootCollectionName text="UnitCulture"/>
<m_ArtDefPath text="Cultures.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="Culture"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text=""/>
<m_RootCollectionName text="Era"/>
<m_ArtDefPath text="Eras.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="Era"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text=""/>
<m_RootCollectionName text="Units"/>
<m_ArtDefPath text="Units.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text=""/>
<m_ParamName text="ProxyUnit"/>
</Element>
<Element class="AssetObjects:BoolValue">
<m_bValue>false</m_bValue>
<m_ParamName text="PlayDeathOnDestroy"/>
</Element>
<Element class="AssetObjects:IntValue">
<m_nValue>500</m_nValue>
<m_ParamName text="DisplayLevel"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections>
<Element>
<m_CollectionName text="Members"/>
<m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:FloatValue">
<m_fValue>1.000000</m_fValue>
<m_ParamName text="Scale"/>
</Element>
<Element class="AssetObjects:IntValue">
<m_nValue>1</m_nValue>
<m_ParamName text="Count"/>
</Element>
<Element class="AssetObjects:ArtDefReferenceValue">
<m_ElementName text="Battleship"/>
<m_RootCollectionName text="UnitMemberTypes"/>
<m_ArtDefPath text="Units.artdef"/>
<m_CollectionIsLocked>true</m_CollectionIsLocked>
<m_TemplateName text="Units"/>
<m_ParamName text="Type"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="Members001"/>
<m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
</Element>
</Element>
<Element>
<m_CollectionName text="Audio"/>
<m_ReplaceMergedCollectionElements>false</m_ReplaceMergedCollectionElements>
<Element>
<m_Fields>
<m_Values>
<Element class="AssetObjects:StringValue">
<m_Value text="Battleship"/>
<m_ParamName text="XrefName"/>
</Element>
</m_Values>
</m_Fields>
<m_ChildCollections/>
<m_Name text="BATTLESHIP"/>
<m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
</Element>
</Element>
</m_ChildCollections>
<m_Name text="UNIT_ENGLISH_DREADNOUGHT"/>
<m_AppendMergedParameterCollections>false</m_AppendMergedParameterCollections>
</Element>