Are there still people reading those fora?


Anyway, I'm having trouble with setting up a custom unit. The technology shows up and is researched correctly, but the unit design doesn't show up wither for building or customizing.


Here is what I'm doing (the idea is have a Drakkenling like unit available to non-Drakken affinities):


/AI/AIParameters[TechnologyEQ].xml:
3  
4    <!-- "Drakkeling" -->
5:   <AIParameterDatatableElement Name="TechnologyDefinitionNonDrakkensUnit1">
6      <AIParameter Name="EmpireUnlockUnitInfantry" Value="1"  />
7    </AIParameterDatatableElement>


/AI/AfterBattleDefinitions[UnitBodyEQ].xml:
2  <Datatable xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3  
4:   <AfterBattleDefinition Name="UnitBodyNonDrakkensDrakkenling">
5      <AIModifier Name="AIEquipmentAttack"                  Value="0.5"/>
6      <AIModifier Name="AIEquipmentDefense"                 Value="0.8"/>


/Gui/GuiElements[BodyDefinitions].xml:
4  
5    <!-- NON-DRAKKENS DRAKKENLING -->
6:   <GuiElement Name="UnitBodyNonDrakkensDrakkenling">
7      <Title>%UnitDrakkensDrakkenlingTitle</Title>
8      <Description>%UnitDrakkensDrakkenlingDescription</Description>


/Gui/GuiElements[TechnologyEQ].xml:
4    <!-- Drakkens Faction unit#1 -->
5    <!-- HIDDEN -->
6:   <TechnologyGuiElement Name="TechnologyDefinitionNonDrakkensUnit1"                          X="-200"  Y="200">
7      <Title>%UnitDrakkensDrakkenlingTitle</Title>
8      <Description>%UnitDrakkensDrakkenlingDescription</Description>


/Gui/GuiElements[UnitDesignsEQ].xml:
3  
4    <!-- DRAKKENS DRAKKENLING -->
5:   <GuiElement Name="UnitDesignNonDrakkensDrakkenling#1">
6      <Title>%UnitDrakkensDrakkenlingTitle</Title>
7      <Description>%UnitDrakkensDrakkenlingDescription</Description>


/Simulation/DepartmentOfScience+Constructibles[TechnologyEQ].xml:
30    -->
31    <!--  Visibility="Hidden"-->
32:   <TechnologyDefinition  Name="TechnologyDefinitionNonDrakkensUnit1"               >
33:     <SimulationDescriptorReference Name="TechnologyNonDrakkensUnit1"/>
34      <CustomCost ResourceName="EmpireResearch">$Property(EmpireTypeMajor/ClassResearch:TechnologyCost) * $Property(EmpireTypeMajor/ClassResearch:Era1CostMultiplier)</CustomCost>
35    </TechnologyDefinition>


/Simulation/UnitBodyDefinitions[EQ].xml:

<!-- NON-DRAKKENS DRAKKENLING -->
<UnitBodyDefinition Name="UnitBodyNonDrakkensDrakkenling"       SubCategory="SubCategoryInfantry">

<Tags></Tags>

<CostReductionReference Name="MajorTypeUnit"/>

<UnitAbilityReference Name="UnitAbilityFastLearner"/>
<UnitAbilityReference Name="UnitAbilityFast"/>

<PathPrerequisite Inverted="true" Flags="Prerequisite">.../EmpireTypeMajor,AffinityDrakkens</PathPrerequisite>
<TechnologyPrerequisite Flags="Prerequisite,Discard,Technology">TechnologyNonDrakkensUnit1</TechnologyPrerequisite>

<UnitDesignPrerequisites>
<PathPrerequisite Inverted="true" Flags="Prerequisite,Validity">.../EmpireTypeMajor,AffinityDrakkens</PathPrerequisite>
<TechnologyPrerequisite Flags="Prerequisite,Discard,Technology,Validity">TechnologyNonDrakkensUnit1</TechnologyPrerequisite>
<InterpreterPrerequisite Inverted="false" Flags="Prerequisite,SlotPrerequisite">($Property(ClassCity,Garrison:MaximumUnitSlotCount) - $Property(ClassCity,Garrison:UnitSlotCount)) ge 1</InterpreterPrerequisite>
</UnitDesignPrerequisites>

<CustomCost ResourceName="Production" Instant="false">$Property(../ClassEmpire:UnitProductionCostLessThanAverage) + $Property(../ClassEmpire:UnitProductionCostLessThanAverage) * $Property(../ClassEmpire:CostIncreaseFromEra)</CustomCost>

<SimulationDescriptorReference Name="UnitTypeNonDrakkensDrakkenling" />
<SimulationDescriptorReference Name="UnitClassInfantry" />
<SimulationDescriptorReference Name="UnitSizeMedium" />


/Simulation/UnitDesigns[EQ].xml:
152  
153    <!-- NON DRAKKENS DRAKKENLING -->
154:   <UnitDesign Name="UnitDesignNonDrakkensDrakkenling#1"               Model="0060109">
155:     <UnitBodyDefinitionReference Name="UnitBodyNonDrakkensDrakkenling" />
156    </UnitDesign>


Well, that is it. Hope someone is still out there reading it who can help me.