Time For a Second Set of Eyes

I must be missing something, but damn if I can see what it is.  I've stripped this down to bare minimum.  I've taken stuff in and out.  I can't get the game to show and/or research this new tech.  If someone who has successfully gotten a new tech to work could take a look at this, I'd be grateful.  Now's your chance to make me look stupid.  :w00t:   Below is a link to the files and the contents of the files if anyone wants to accept the challenge.

http://www.curtis-home.net/Files/AIM_ArcheryMod.zip

AIM_ArcheryTechs.xml:

<?xml version="1.0" encoding="utf-8"?>

<Techs>

    <TechDef InternalName="AIM_Archery_Mastery_Amarian">
        <DisplayName>Archery Mastery</DisplayName>
        <Description>This breakthrough allows us to craft Compound Longbows. These ranged weapons deadly compliments to any army.</Description>
        <Image>Weapons_Medallion_Full.png</Image>
        <Color>182,7,3</Color>
        <HotColor>255,48,0</HotColor>
        <Rarity>100</Rarity>
        <Category>Warfare</Category>
        <Infinite>0</Infinite>
        <AppearanceChance>100</AppearanceChance>
        <Prereq>
            <Type>Tech</Type>
            <Attribute>Equipment_Amarian</Attribute>
            <Value>0</Value>
        </Prereq>
        <AIData AIPersonality="AI_General">
            <AIResearchPriority>50</AIResearchPriority>
            <AITradeToGetValue>75</AITradeToGetValue>
            <AITradeOutValue>90</AITradeOutValue>
            <AIAtWarMultiplier>2.0</AIAtWarMultiplier>
            <AIEarlyBuildUpMultiplier>3.0</AIEarlyBuildUpMultiplier>
        </AIData>
    </TechDef>
    
</Techs>

 

AIM_ArcheryTechTree.xml:

<?xml version="1.0" encoding="utf-8"?>

<TechTrees>
    <TechTree InternalName="TechTree_Amarian">
    <Category>Warfare</Category>
        <Tech>AIM_Archery_Mastery_Amarian</Tech>
    </TechTree>
</TechTrees>

AIM_ArcheryItems.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<GameItemTypes>
    <DataChecksum NoParse="1">
        <Ignore>DispName</Ignore>
        <Translate>DisplayName,Description</Translate>
    </DataChecksum>
    <!-- ****************************************** -->
    <!-- **  Composite Bow - Upgrades Yew Bows   ** -->
    <!-- ****************************************** -->
    <GameItemType InternalName="AIM_Weapon_Compositebow">
      <DisplayName>Composite Bow</DisplayName>
      <Description>A recurved bow of yew, horn and sinew, strung with swine gut and paired with armor piercing arrows.</Description>
      <!-- Equipment Type -->
      <Type>Weapon</Type>
      <Type>Defense</Type>
      <CanBeEquipped>1</CanBeEquipped>
      <IsAvailableForSovereignCustomization>false</IsAvailableForSovereignCustomization>
      <ShopValue>250</ShopValue>
      <WeaponType>Bow</WeaponType>
      <!-- Equipment Graphics -->
      <IconFile>Bow_Forged_icon.png</IconFile>
      <TintR>0</TintR>
      <TintG>0</TintG>
      <TintB>0</TintB>
      <GameItemTypeModel>
          <Attachment>hand_Left_Lcf</Attachment>
          <ModelFile>Gfx\HKB\Items\Archer_Bow.hkb</ModelFile>
          <Texture_All>Gfx\HKB\Items\K_Female_Armor_Archer_Texture_01.png</Texture_All>
      </GameItemTypeModel>
      <!-- SFX -->
      <EquipSFX>Equip_BowandArrow_01</EquipSFX>
      <EquipSFX>Equip_BowandArrow_02</EquipSFX>
      <EquipSFX>Equip_BowandArrow_03</EquipSFX>
      <AttackSFX>Hit_Arrow1</AttackSFX>
      <AttackSFX>Hit_Arrow2</AttackSFX>
      <!-- Equipment Production Requirements -->
      <AdditionalTrainingTurns>3</AdditionalTrainingTurns>
      <ProductionRequirement>
          <Type>Resource</Type>
          <Attribute>Gold</Attribute>
          <Value>40.0</Value>
      </ProductionRequirement>
      <ProductionRequirement>
          <Type>Resource</Type>
          <Attribute>Materials</Attribute>
          <Value>3.0</Value>
      </ProductionRequirement>
      <ProductionRequirement>
          <Type>Resource</Type>
          <Attribute>Metal</Attribute>
          <Value>4.0</Value>
      </ProductionRequirement>
      <!-- Equipment Prerequisites -->
      <Prereq>
          <Type>Tech</Type>
          <Attribute>AIM_Archery_Mastery_Amarian</Attribute>
          <Value>0</Value>
      </Prereq>
      <!-- Equipment Modifiers -->
      <GameModifier>
          <ModType>Unit</ModType>
          <Attribute>AdjustUnitStat</Attribute>
          <StrVal>UnitStat_Attack</StrVal>
          <Value>10.0</Value>
      </GameModifier>
      <GameModifier>
          <ModType>Unit</ModType>
          <Attribute>UnlockRangedAction</Attribute>
          <StrVal>BasicBowAttack</StrVal>
      </GameModifier>
      <TacticalRange>8</TacticalRange>
    </GameItemType>
    <!-- Equipment Display Name/Description -->
     
</GameItemTypes>

 

 

 

3,266 views 7 replies
Reply #1 Top

I think the problem is that you can't satisfy both prerequesites in your GameItemTypes. Try getting rid of one. :)

Reply #2 Top

Quoting Das123, reply 1
I think the problem is that you can't satisfy both prerequesites in your GameItemTypes. Try getting rid of one.
End of Das123's quote

Tried that too.  Problem is, I'm not even getting the opportunity to research the tech.

Reply #3 Top

Quoting Aerion, reply 2

Quoting Das123, reply 1I think the problem is that you can't satisfy both prerequesites in your GameItemTypes. Try getting rid of one.
Tried that too.  Problem is, I'm not even getting the opportunity to research the tech.
End of Aerion's quote

Have you tried rebuilding the data.zip file? That's what got me the most.  Just rename the current data.zip to something else(olddata or something) and go to your elemental shortcut and go to properties. in the target field at the end put /createxmlbinary. start up the game and run a new map. This will recreate the data.zip with your tech tree in it.

Sorry I didn't look at your code, I only have time for a quick post but I hope this helps.

Reply #4 Top

Sorry, I haven't really looked at the tech trees. Only the racial buildings. I've stopped fiddling with the XML now until the game is re-jigged because I have a feeling all we do now will need to be re-done.

Reply #5 Top

Wait...did you create the tech for this prereq that was in the gameitemtypes? It might be waiting for that tech if you didn't make it yet.

 

      <Prereq>
          <Type>Tech</Type>
          <Attribute>AIM_Weapons_Of_Skewering_Trogs</Attribute>
          <Value>0</Value>
      </Prereq>

Reply #6 Top

Has anyone else been able to add a tech and have it be researchable?

Reply #7 Top

I had to create a new tech tree when I did it. Ie new internalname, change all the references in the raceconfigs.