How do I add a new tech?

I added two files in the mods folder. One of them contains:

Code: xml
  1. <Techs>
  2. <TechDef InternalName="ManaRegen_Amarian">
  3. <DisplayName>Meditation</DisplayName>
  4. <Description>Teaches our channelers to meditate, granting +1 mana regeneration.</Description>
  5. <Image>Sovereign_Altar.png</Image>
  6. <Color>182,7,3</Color>
  7. <HotColor>255,48,0</HotColor>
  8. <Rarity>100</Rarity>
  9. <Category>Magic</Category>
  10. <Infinite>1</Infinite>
  11. <AppearanceChance>100</AppearanceChance>
  12. <AIData AIPersonality="AI_General">
  13. <AIResearchPriority>50</AIResearchPriority>
  14. <AITradeToGetValue>75</AITradeToGetValue>
  15. <AITradeOutValue>90</AITradeOutValue>
  16. <AIAtWarMultiplier>2.0</AIAtWarMultiplier>
  17. <AIEarlyBuildUpMultiplier>0.25</AIEarlyBuildUpMultiplier>
  18. </AIData>
  19. </TechDef>
  20. </Techs>

And the other contains:

 

Code: xml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <TechTrees>
  3. <TechTree InternalName="TechTree_Amarian">
  4. <Tech>ManaRegen_Amarian</Tech>
  5. </TechTree>
  6. </TechTrees>

I expected this to add a new tech to the kingdom tech tree, but it doesn't show up, there is only the default tech tree. How do I add a tech?

2,542 views 2 replies
Reply #1 Top

At this point it appears that the only way to add tech is to copy the entire previous tech tree. Anyway you forgot to add <category> to your second file.

Reply #2 Top

OK, I tried copying the entire previous tech tree, and just adding the line "<Tech>ManaRegen_Amarian</Tech>" under the Magic category. The tech still isn't showing up when I play the game.