Modding tech specializations

XML entry overriding? Why?

Trying to add a [series of] new specialization tech. So far, one works fine, but the other sees the second (as appearing in the xml) specialization option overwriting the first. I've swapped the order in the xml and either way, the second occurring option overwrites the first. I've taken their specialization tags out, and they appear independently just fine. So far as I can tell, their formatting is identical to the other set of specializations I've made, and that one works fine. Help?

  <Tech>
    <InternalName>MasterLorenAntiparticleStudyA</InternalName>
    <GenericName>LorenAntiparticleStudyA</GenericName>
    <DisplayName>MasterLorenAntiparticleStudyA_Name</DisplayName>
    <TechTree>Master_Tree</TechTree>
    <ShortDescription>MasterLorenAntiparticleStudyA_ShortDec</ShortDescription>
    <Description>MasterLorenAntiparticleStudyA_Dec</Description>
    <ResearchCost>64</ResearchCost>
    <TechPoints>1</TechPoints>
    <Specialization>MasterLorenAntiparticleSpecialization</Specialization>
    <AICategoryWeight>
      <Military>14</Military>
      <Fortification>16</Fortification>
    </AICategoryWeight>
    <Prerequ>
      <Techs>
        <Option>ResourceProcessingTech</Option>
      </Techs>
      <TechAge>
        <Option>AgeOfExpansion</Option>
      </TechAge>
    </Prerequ>
  </Tech>
  <Tech>
    <InternalName>MasterLorenAntiparticleStudyE</InternalName>
    <GenericName>LorenAntiparticleStudyE</GenericName>
    <DisplayName>MasterLorenAntiparticleStudyE_Name</DisplayName>
    <TechTree>Master_Tree</TechTree>
    <ShortDescription>MasterLorenAntiparticleStudyE_ShortDec</ShortDescription>
    <Description>MasterLorenAntiparticleStudyE_Dec</Description>
    <ResearchCost>64</ResearchCost>
    <TechPoints>1</TechPoints>
    <Specialization>MasterLorenAntiparticleSpecialization</Specialization>
    <AICategoryWeight>
      <Military>18</Military>
      <Growth>10</Growth>
      <Fortification>16</Fortification>
    </AICategoryWeight>
    <Prerequ>
      <Techs>
        <Option>ResourceProcessingTech</Option>
      </Techs>
      <TechAge>
        <Option>AgeOfExpansion</Option>
      </TechAge>
    </Prerequ>
  </Tech>
 

9,056 views 5 replies
Reply #1 Top

I don't see any immediately obvious error. Did you also put a corresponding entry in MasterTechSpecializationDefs.xml?

Reply #2 Top

Yup.

  <TechSpecialization>
    <InternalName>MasterLorenAntiparticleSpecialization</InternalName>
    <DisplayName>MasterLorenAntiparticleSpecialization_Name</DisplayName>
    <ShortDescription>MasterLorenAntiparticleSpecialization_ShortDec</ShortDescription>
    <Description>MasterLorenAntiparticleSpecialization_Dec</Description>
    <FlavorName>LorenAntiparticleSpecialization_FlavorText_DisplayName</FlavorName>
    <FlavorShortDescription>LorenAntiparticleSpecialization_FlavorText_ShortDescription</FlavorShortDescription>
    <FlavorDescription>LorenAntiparticleSpecialization_FlavorText_Description</FlavorDescription>
    <ColorDef>TechYellow</ColorDef>
    <Icon>GC3_Production_Tech_Icon.png</Icon>
   </TechSpecialization>

 

Reply #4 Top

I watched the video and I'm convinced you didn't actually read my post. But thanks anyway, the editor will be very useful for managing descriptions. :)

Reply #5 Top

Well, after moving on to other aspects of the mod and then coming back to it, the problem seems to be with the tech tree viewer. Before I was using the tree view, not the list view. Using the list view, both specializations show up and the "hidden" one can be selected and researched normally. However, if it is selected when I switch from the list view to the tree, I crash to desktop.