Hi guys! I'm hoping I might be able to get the attention of someone with more experience with this than myself.


I've spent the past few days figuring out the system, and I believe I've got the workings of a custom faction. My biggest issue at the moment is that when creating the faction affinity I seem to lose the ability to attach technology to the new affinity. Example below:


Simulation\Factions.XML

  <Faction Name="FactionNecromancers"     Standard="true"   Author="Mazu" Priority="180">
    <Affinity Name="AffinityNecromancers"/>
    <AffinityMapping Name="AffinityMappingReplicants"/>


Just a snippet of a section of the XML wherein I believe I'm creating a new faction using the Replicants mapping to decide how they appear. The technology portion:


Simulations\DepartmentOfScience+Constructibles[Era1Technology].xml


    <PathPrerequisite Flags="Prerequisite,Discard,DiplomaticTradable">EmpireTypeMajor,AffinityNecromancers</PathPrerequisite>



I've tested the code and this absolutely works for replacing the technology up until I create the new Affinity and replace it in the second quoted XML file. There has to be some missing link that handles technology and the GUI XMLs. What am I missing?


For reference here is a copy of my (very inexperienced and sloppy) code:


NecromancerFaction V0476.rar