Ok, so not being content with the kiddy pool, I'm jumping in a bit deeper.
Now I have made 3 files, they are - in order...
CIV4FactionsSchema.xml
CIV4Factions.xml
CIV4FactionDiplomacyModifications.xml
I know the sections of SDK I need to look at are CvXMLLoadUtilitySet and CvInfos, but I am looking at CvXMLLoadUtilitySet, and just not knowing the hows or whys or wheres of the file.
Any tips or suggestions would be appreciated, and I thought I might include the schema, just in case it's important...
Biggest question I have right now, is where to start
Another point of interest -><element name="Type"/> - I never see this declared anywhere in any of the other files, so I didn't declare it my own - hope I done right...
Going through the Schema you will see that CIV4Factions.xml now contains TXT_KEY and PEDIA entries, as well as the list of leaders contained in the faction, while CIV4FactionDiplomacyModifications.xml contains the diplomacy changes between leaders of differing factions.
Now I have made 3 files, they are - in order...
CIV4FactionsSchema.xml
CIV4Factions.xml
CIV4FactionDiplomacyModifications.xml
I know the sections of SDK I need to look at are CvXMLLoadUtilitySet and CvInfos, but I am looking at CvXMLLoadUtilitySet, and just not knowing the hows or whys or wheres of the file.
Any tips or suggestions would be appreciated, and I thought I might include the schema, just in case it's important...
Code:
<Schema xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="Description" content="textOnly"/>
<ElementType name="Civilopedia" content="textOnly"/>
<ElementType name="LeaderName" content="textOnly"/>
<ElementType name="bLeaderAvailability" content="textOnly" dt:type="boolean"/>
<ElementType name="Leaders" content="eltOnly">
<element type="LeaderName"/>
<element type="bLeaderAvailability"/>
</ElementType>
<ElementType name="FactionInfo" content="eltOnly">
<element name="Type"/>
<element name="Description"/>
<element name="Civilopedia"/>
<element name="Leaders" minOccurs="0" maxOccurs="*"/>
</ElementType>
<ElementType name="iDiplomacyChange" content="textOnly" dt:type="int"/>
<ElementType name="DiplomancyChange" content="eltOnly">
<element name="Type"/>
<element name="iDiplomacyChange"/>
</ElementType>
<ElementType name="ChangeToFaction" content="eltOnly">
<element name="Type" MaxOccurs="1"/>
<element name="DiplomacyChange" MaxOccurs="*"/>
</ElementType>
<ElementType name="FactionInfos" content="eltOnly">
<element name="FactionInfo" maxOccurs="*"/>
</ElementType>
<ElementType name="DiplomacyChanges" content="eltOnly">
<element name="ChangeToFaction"/>
</ElementType>
<ElementType name="Civ4Factions" content="eltOnly">
<element name="FactionInfos" maxOccurs="1"/>
</ElementType>
<ElementType name="Civ4FactionDiplomacyModifications" content="eltOnly">
<element name="DiplomacyChanges"/>
</ElementType>
</Schema>
Another point of interest -><element name="Type"/> - I never see this declared anywhere in any of the other files, so I didn't declare it my own - hope I done right...
Going through the Schema you will see that CIV4Factions.xml now contains TXT_KEY and PEDIA entries, as well as the list of leaders contained in the faction, while CIV4FactionDiplomacyModifications.xml contains the diplomacy changes between leaders of differing factions.