Request for help in creating new civilization mod

Marcus_Virgil

Chieftain
Joined
Nov 23, 2012
Messages
12
Hey, all. I've run through Kael's ModdersGuide and attempted to make my first civilization mod. I know it's a little outdated, but some research on the forums seemed to suggest that the only major change in this context was changing the false/true properties in the Import into VFS sections. In any case, I went through the guide step-by-step in order to make the kingdom of Dalmasca, in the vein of scotchandcake's Lindblum and Archadia mods. This being my first attempt, I'm sure I've missed things along the way, but I don't know what to look for or what to do in portions where the guide wasn't quite clear to me. I may have gone overboard by making the whole civilization before testing to see if it worked along the way, but hey. Anyway, the game crashed when I started the game with my civ selected, so I know there are at least a few things wrong.

Okay...here goes. Before I go further, I can tell you that, before the game crashed, the Leader name was in all caps and began with TXT_KEY(etc.), the portrait was still Elizabeth's, and the shield icon was America's. Also, I added new XML icons in ModBuddy using Gimp.

I'll list things in roughly the order that Kael's guide gives. First up is the Civ_Dalmasca.xml

Spoiler :
<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_DALMASCA</Type>
<Description>TXT_KEY_CIV_DALMASCA_DESC</Description>
<ShortDescription>TXT_KEY_CIV_DALMASCA_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_DALMASCA_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_DALMASCA_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_DALMASCA</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_YELLOW</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_DALMASCA</ArtDefineTag>
<ArtStyleType>ARTSTYLE_GRECO_ROMAN</ArtStyleType>
<ArtStyleSuffix>_MED</ArtStyleSuffix>
<ArtStylePrefix>MEDITERRANEAN</ArtStylePrefix>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_LEGENDS</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>MapEngland512.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_DALMASCA_TEXT_1</DawnOfManQuote>
<DawnOfManImage>DOM_DalmascaAshelia 1024x768.dds</DawnOfManImage>
</Row>
</Civilizations>
<Civilization_CityNames>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_RABANASTRE</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_NALBINA</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BHUJERBA</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_JAHARA</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_NABUDIS</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ERUYT</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BUR-OMISACE</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BALFONHEIM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_GIRUVEGAN</CityName>
</Row>
</Civilization_CityNames>
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<LeaderheadType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderheadType>
</Row>
</Civilization_Leaders>
<Civilization_Start_Region_Priority>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<RegionType>REGION_DESERT</RegionType>
</Row>
</Civilization_Start_Region_Priority>
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_DALMASCA</CivilizationType>
<UnitClassType>UNITCLASS_WARRIOR</UnitClassType>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
</Row>
</Civilization_UnitClassOverrides>
</GameData>


I'm not sure if it matters that there's a space instead of an underscore in the photo file's name for the Dawn of Man Image (DalmascaAshelia 1024x768.dds); that's the way it's saved on my computer...

As a side note, should the FreeUnits section include the 'Battle Mage' unique unit since it replaces the Warrior?

Next is the GameText.xml

Spoiler :
<GameData>
<Language_en_US>
<Row Tag="TXT_KEY_CITY_NAME_RABANASTRE">
<Text>Rabanastre</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_NALBINA">
<Text>Nalbina</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BHUJERBA">
<Text>Bhujerba</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_JAHARA">
<Text>Jahara</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_NABUDIS">
<Text>Nabudis</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_ERUYT">
<Text>Eruyt</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BUR-OMISACE">
<Text>Bur-Omisace</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BALFONHEIM">
<Text>Balfonheim</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_GIRUVEGAN">
<Text>Giruvegan</Text>
</Row>
<Row Tag="TXT_KEY_CIV_DALMASCA_ADJECTIVE">
<Text>Dalmascan</Text>
</Row>
<Row Tag="TXT_KEY_CIV_DALMASCA_DESC">
<Text>Kingdom of Dalmasca</Text>
</Row>
<Row Tag="TXT_KEY_CIV_DALMASCA_SHORT_DESC">
<Text>Dalmasca</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_DALMASCA_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_DALMASCA_TEXT_1">
<Text>Dalmasca is a small peaceful kingdom in Ivalice. Dalmasca is surrounded by the much larger states of Archadia and Rozarria which have warred with each other for quite some time. The royal family of Dalmasca are related to the Dynast King, Raithwall. One of the greatest treasures of the Dalmascan royal family is the piece of deifacted nethicite, the Dusk Shard, hidden in a statue in a hidden room deep within the Dalmascan Royal Palace of Rabanastre.</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_TEXT_1">
<Text>Ashe was raised as the Princess of Dalmasca, the ninth, last, and only daughter of the Dalmascan Royal Family. Her eight older brothers had died of illness or fallen in battle, making her the sole heir of her kingdom by the time of her marriage. She had a relatively easy early life, but was raised with the duties and responsibilities of her rank. Besides being raised in royal etiquette, Ashe was no stranger to the defensive arts.[NEWLINE][NEWLINE]Married at the age of seventeen to Lord Rasler of Nabradia, both Ashe and Rasler understood the marriage was intended to cement an alliance between Dalmasca and Nabradia against the conquering empire of Archadia. Ashe said she was "willing to play her part" in the marriage, and despite the political nature of it, both parties genuinely cared for each other. She was widowed shortly afterward, when Rasler was killed at the Battle of Nalbina Fortress. This devastated the Princess and also fueled her anger and hate towards the Archadian Empire. Not long after this, Archadia made a full-scale assault on Dalmasca. Though Raminas intended to surrender willingly - though reluctantly - to save his people, he was killed by Judge Gabranth - posing as his twin, Basch fon Ronsenburg - after signing a peace agreement with Archadia. Ashe's suicide was publicly announced by Bhujerba's ruler, Halim Ondore IV. Now unable to seek Ondore's aid, Ashe retreated underground and assumed the name Amalia. Vossler, a captain in the former Dalmascan army, joined her, and they formed the Resistance to try and win back Dalmasca's independence. The Resistance moved slowly, not winning any major victories or causing enough unrest to be notable until Vayne Solidor traveled to Dalmasca to assume his position as consul in the year 706.[NEWLINE][NEWLINE]In a long series of events following Vayne's arrival in Rabanstre, Ashe embarked on a journey across the lands of Ivalice, in the growing company of faithful subjects, friends, and sky pirates, in order to seek a means to remove the Archadian Empire's presence from her beloved kingdom. This journey culminated in a rejection of awesome yet enslaving magical power offered by the puppeteering gods called the Occuria, but nevertheless ended triumphantly in a battle in the skies above Rabanstre. Following Vayne Solidor's death in the conflict's climax, Ashe and Larsa Solidor sign a treaty, ending the war and restoring the kingdom of Dalmasca to its proper ruler. </Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_LIVED">
<Text>687- Old Valendia</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_NAME">
<Text>Ashelia B'nargin Dalmasca</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_SUBTITLE">
<Text>Princess of the Dalmascans</Text>
</Row>
<Row Tag="TXT_KEY_LEADER_ASHELIA B'NARGIN DALMASCA">
<Text>Ashelia B'nargin Dalmasca</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_DESERT_DWELLERS">
<Text>Desert tiles give one additional [ICON_FOOD] Food, desert hills give one additional [ICON_PRODUCTION] Production, and flood plains give one additional [ICON_GOLD] Gold.</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT">
<Text>Desert Dwellers</Text>
</Row>
</Language_en_US>
</GameData>


I'm afraid I don't know how to mod in the resource adjustments from the civ's unique trait; though, I may change the Food to 2 for balancing.

As stated above, I have the right number of icons (and various sizes): 32, 45, 64, 80, 128, 214, 256, and 1024x768 for the opening loading screen.

Next is the CIV5Leader_Ashelia B'nargin Dalmasca.xml

Spoiler :
<GameData>
<Leaders>
<Row>
<Type>LEADER_ASHELIA B'NARGIN DALMASCA</Type>
<Description>TXT_KEY_LEADER_ASHELIA B'NARGIN DALMASCA</Description>
<Civilopedia>TXT_KEY_LEADER_ASHELIA B'NARGIN DALMASCA_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA</CivilopediaTag>
<ArtDefineTag>Elizabeth_Scene.xml</ArtDefineTag>
<VictoryCompetitiveness>7</VictoryCompetitiveness>
<WonderCompetitiveness>5</WonderCompetitiveness>
<MinorCivCompetitiveness>3</MinorCivCompetitiveness>
<Boldness>6</Boldness>
<DiploBalance>5</DiploBalance>
<WarmongerHate>6</WarmongerHate>
<WorkAgainstWillingness>4</WorkAgainstWillingness>
<WorkWithWillingness>7</WorkWithWillingness>
<PortraitIndex>6</PortraitIndex>
<IconAtlas>LEADER_ATLAS</IconAtlas>
</Row>
</Leaders>
<Leader_MajorCivApproachBiases>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_WAR</MajorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_HOSTILE</MajorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_DECEPTIVE</MajorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_GUARDED</MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_AFRAID</MajorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_FRIENDLY</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_NEUTRAL</MajorCivApproachType>
<Bias>5</Bias>
</Row>
</Leader_MajorCivApproachBiases>
<Leader_MinorCivApproachBiases>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_IGNORE</MinorCivApproachType>
<Bias>6</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_FRIENDLY</MinorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_PROTECTIVE</MinorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_CONQUEST</MinorCivApproachType>
<Bias>4</Bias>
</Row>
</Leader_MinorCivApproachBiases>
<Leader_Flavors>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_MOBILE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_NAVAL_GROWTH</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_NAVAL_TILE_IMPROVEMENT</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_AIR</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_EXPANSION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_TILE_IMPROVEMENT</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_INFRASTRUCTURE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_WONDER</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_RELIGION</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_SPACESHIP</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<FlavorType>FLAVOR_WATER_CONNECTION</FlavorType>
<Flavor>6</Flavor>
</Row>
</Leader_Flavors>
<Leader_Traits>
<Row>
<LeaderType>LEADER_ASHELIA B'NARGIN DALMASCA</LeaderType>
<TraitType>TRAIT_DESERT_DWELLERS</TraitType>
</Row>
</Leader_Traits>
</GameData>


I'm not certain if the Portrait Index or the Atlas Icons are correct.

Here's the Traits.xml

Spoiler :
<GameData>
<Traits>
<Row>
<Type>TRAIT_DESERT_DWELLERS</Type>
<Description>TXT_KEY_TRAIT_DESERT_DWELLERS</Description>
<ShortDescription>TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT</ShortDescription>
</Row>
</Traits>

</GameData>


That's all I've got so far, and I just found that there's a blank line in-between the bottom Traits and GameData, but I know there are other issues anyway. Regardless, I'm hoping someone can tell me how to create the proper traits of the Trait.

Then I added the unique unit in the CIV5Units.xml. I wanted it to replace the Warrior, have 2 more attack than a normal warrior, and have the Unit Attribute 'Heals at Double Rate'.

Spoiler :
<GameData>
<Units>
<Row>
<Class>UNITCLASS_WARRIOR</Class>
<Type>UNIT_BATTLE_MAGE</Type>
<Combat>10</Combat>
<Cost>40</Cost>
<Moves>2</Moves>
<CombatClass>UNITCOMBAT_MELEE</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_BATTLE_MAGE</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_WARRIOR_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_WARRIOR_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_BATTLE_MAGE</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_METAL_CASTING</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_SPEARMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>10</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<Conscription>1</Conscription>
<UnitArtInfo>ART_DEF_UNIT_BATTLE_MAGE</UnitArtInfo>
<UnitFlagIconOffset>3</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>3</PortraitIndex>
</Row>
</Units>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<PromotionType>PROMOTION_HEALS_AT_DOUBLE_RATE</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_AITypes>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<UnitAIType>UNITAI_ATTACK</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<UnitAIType>UNITAI_DEFENSE</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<UnitAIType>UNITAI_EXPLORE</UnitAIType>
</Row>
</Unit_AITypes>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<UnitClassType>UNITCLASS_SWORDSMAN</UnitClassType>
</Row>
</Unit_ClassUpgrades>
<Unit_Flavors>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>1</Flavor>
</Row>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>2</Flavor>
</Row>
<Row>
<UnitType>UNIT_BATTLE_MAGE</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>2</Flavor>
</Row>
</Unit_Flavors>
<UnitMemberArtInfo>
<Type>ART_DEF_UNIT_MEMBER_WARRIOR</Type>
<fScale>0.14</fScale>
<Granny>Assets/Units/Warrior/Warrior.fxsxml</Granny>
<Combat>
<Defaults>ART_DEF_TEMPLATE_WARRIOR</Defaults
</Combat>
<MaterialTypeTag>CLOTH</MaterialTypeTag>
<MaterialTypeSoundOverrideTag>FLESH</MaterialTypeSoundOverrideTag>
</UnitMemberArtInfo>
<Row Tag="TXT_KEY_UNIT_BATTLE_MAGE">
<Text>Battle Mage</Text>
</Row>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_HELP_BATTLE_MAGE">
<Text>This unit's healing magic keeps it fighting on the frontlines.</Text>
</Row>
</Language_en_US>
</GameData>


The Unit Art section in Kael's guide confused me a little, so I don't know about the placement/format, and I wasn't sure if the Text section belonged in this XML or in the GameText.xml.

Also, does the <Civilization_UnitClassOverrides> section belong here, or in the Civ_Dalmasca.xml?

Next I added a unique building. I expect this section is pretty messed up because I was looking back and forth between Kael's guide and Thadian's 'How to make a building: Entry level' post. I made two xmls, anyway. First is CIV5Buildings.xml

Spoiler :
<GameData>
<Buildings>
<Row>
<Type>BUILDING_CLAN_CENTURIO_HEADQUARTERS</Type>
<BuildingClass>BUILDINGCLASS_CLAN_CENTURIO_HEADQUARTERS</BuildingClass>
<Cost>120</Cost>
<GoldMaintenance>1</GoldMaintenance>
<Help>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_HELP</Help>
<Description>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDINGS_CLAN_CENTURIO_HEADQUARTERS_TEXT</Civilopedia>
<Strategy>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_STRATEGY</Strategy>
<ArtDefineTag>ART_DEF_BUILDING_BARRACKS</ArtDefineTag>
<MaxStartEra>ERA_MEDIEVAL</MaxStartEra>
<MinAreaSize>-1</MinAreaSize>
<HurryCostModifier>25</HurryCostModifier>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<NeverCapture>true</NeverCapture>
<PortraitIndex>32</PortraitIndex>
</Row>
</Buildings>
</GameData>


I basically copied Kael's Palisade example and removed the parts that seemed not to apply, but I'm certain it needs work.

Next is CIV5BuildingClasses.xml

Spoiler :
<GameData>
<BuildingClasses>
<Row>
<Type>BUILDINGCLASS_CLAN_CENTURIO_HEADQUARTERS</Type>
<DefaultBuilding>BUILDING_CLAN_CENTURIO_HEADQUARTERS</DefaultBuilding>
<Description>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS</Description>
</Row>
</BuildingClasses>
<Buildings>
<Row>
<Type>BUILDING_CLAN_CENTURIO_HEADQUARTERS</Type>
<BuildingClass>BUILDINGCLASS_CLAN_CENTURIO_HEADQUARTERS</BuildingClass>
<Cost>120</Cost>
<GoldMaintenance>1</GoldMaintenance>
<Description>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDINGS_CLAN_CENTURIO_HEADQUARTERS_TEXT</Civilopedia>
<Strategy>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_STRATEGY</Strategy>
<Help>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_HELP</Help>
<ArtDefineTag>ART_DEF_BUILDING_CLAN_CENTURIO_HEADQUARTERS</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<Culture>3</Culture>
<ConquestProb>66</ConquestProb>
<HurryCostModifier>25</HurryCostModifier>
<NeverCapture>true</NeverCapture>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<PortraitIndex>19</PortraitIndex>
</Row>
</Buildings>
<Building_ClassesNeededInCity>
<Row>
<BuildingType>BUILDING_CLAN_CENTURIO_HEADQUARTERS</BuildingType>
<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
</Row>
</Building_ClassesNeededInCity>
<Building_Flavors>
<BuildingType>BUILDING_CLAN_CENTURIO_HEADQUARTERS</BuildingType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>7</Flavor>
</Building_Flavors>
<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS">
<Text>Clan Centurio Headquarters</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_STRATEGY">
<Text>Clan Centurio Headquarters allows Culture to be gained from each enemy unit killed. Requires a Barracks.</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_BUILDINGS_CLAN_CENTURIO_HEADQUARTERS_TEXT">
<Text>Clan Centurio is an independent organization dedicated to the hunting of marks. The victory of its members in deadly combat adds prestige and glory to the clan's reputation, as well as the kingdom's.</Text>
</Row>
</Language_en_US>
</GameData>


I basically copied Thadian's post for this one, and I expect the two xmls are redundant in some way.

For the unique building, I'd originally wanted it to add the Aztec civilization trait of adding culture when enemy units were killed, but for now I tried to just make it add 3 culture.

Finally, I currently have 7 OnModActivated UpdateDatabase Actions: Civ_Dalmasca.xml, Traits.xml, GameText.xml, CIV5Leader_Ashelia B'nargin Dalmasca.xml, CIV5Units.xml, CIV5BuildingClasses.xml, and CIV5Buildings.xml

So, my first test told me that something in the code is definitely wrong. I'm more than a little lost from here, though. Would anyone be able to help me work out the problems and get this mod operational? Thanks.
 
Well firstly turn on debugging and look at the logs, also post them here :) They are set in ...My Games\Sid Meiers Civilization V\ there is config.ini, open it up with notepad, at the top is debugging you want to turn on(set to 1) these options:-

EnableTuner = 1 (Allow the Firetuner to log to the game while its running)
EnableLuaDebugLibrary = 1 (I think this enables stack trace back of lua errors)

Then under Debug:

LoggingEnabled = 1 (Prints logs to the /Logs folder)

There are lots of other options, but these are the main 3, the rest are down to you.
ALso try too include you code in
Code:
 tags inside your spoiler tags, this way it keeps the formating of XML(but not SQL) and makes it easier to read.

Edit:-  CIV5BuildingClasses.xml, and CIV5Buildings.xml this one of the problems, you are duplicating Entries with them xml's, you do not need CIV5Buildings.xml since the info in this is in CIV5BuildingClasses.xml, also change the Tags of you xml's from CIV5 to MYMOD(or whatever), because if you set VFS = True to the xmls, they will Override the base game files with your info and you will end up with only 1 Building in the whole game. VFS is realy only for lua and its assosiated xmls and not always all of them. Traits.xml should be in GameText.xml since it is after all game text code, not trait code. Also, I think you are missing Spy names from your Civilization code, Spies were introduced with G&K and are the most comman reason for new Civilization's failing.
 
Okay, either removing that space, deleting the Buildings.xml, or renaming them all to MYMOD seems to have done the trick. I was able to start a game without crashing, anyway.

First evident problems: the text box in the opening loading screen was blank, and the headings were TXT_KEY_LEADER_ASHELIA B'NARGIN DALMASCA and TXT_KEY_CIV_DALMASCA_DESC. There were also two pyramid icons in place of the unique buildings/units section, but they also disappeared and became BONUS LABEL once I was able to press Start Game. Similarly, there was no 1024x768 background.

Next, I didn't start with a warrior (I expected that, though); however, I wasn't able to build a warrior/the battle mage in the city either. The city itself was named TXT_KEY_CITY_NAME_RABANASTRE. The circular icons were blank, and didn't have the dds images I'd made for them. I expect that I wouldn't be able to make the unique building, either; would that take a code reference to its prerequisites (i.e. some tech in the Medieval era)?

I made a different game with the civ as an AI, and when I talked to them on the diplomacy screen, it had Elizabeth's animations and voiceover; I'd like to have the 1024x768 there later.

I turned on the Debug logs like you said. Here's the Database notepad document that seems to have been generated. I couldn't find any others with references to the civ, though, so I don't know if I should have others.

Spoiler :
Code:
[2724.640] constraint failed
[2724.640] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[2733.312] no such table: ContentPackage.LocalizedText
[2737.687] Validating Foreign Key Constraints...
[2737.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[2737.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[2737.687] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[2738.437] Invalid Reference on Leader_MinorCivApproachBiases.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2738.437] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2738.437] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2738.437] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2738.437] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2739.046] Failed Validation.
[2739.625] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		366912		31250840
PageCache:	4357		4982
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		27881760
Scratch:	0		0

Largest Allocations:
Malloc:		131072
PageCache:	1160
Scratch:	6640

Prepared Statements:
Current:		6
------------------------------
[2857.375] no such table: ContentPackage.LocalizedText
[2862.343] no such table: ContentPackage.LocalizedText
[2865.562] constraint failed
[2865.562] While executing - 'insert into Traits('Type', 'Description', 'ShortDescription') values (?, ?, ?);'
[2865.562] In XMLSerializer while inserting row into table insert into Traits('Type', 'Description', 'ShortDescription') with  values (TRAIT_DESERT_DWELLERS, TXT_KEY_TRAIT_DESERT_DWELLERS, TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT, ).
[2865.562] In XMLSerializer while updating table Traits from file XML/New Text/GameText.xml.
[2865.562] column Type is not unique
[2865.562] Database::XMLSerializer (XML/Units/MYMODUnits.xml): 'Row' or 'Delete' expected, got 'Type'.
[2865.562] table Buildings has no column named Culture
[2865.562] In Query - insert into Buildings('Type', 'BuildingClass', 'Cost', 'GoldMaintenance', 'Description', 'Civilopedia', 'Strategy', 'Help', 'ArtDefineTag', 'MinAreaSize', 'Culture', 'ConquestProb', 'HurryCostModifier', 'NeverCapture', 'IconAtlas', 'PortraitIndex') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[2865.562] In XMLSerializer while updating table Buildings from file XML/Buildings/MYMODBuildingClasses.xml.
[2908.328] Validating Foreign Key Constraints...
[2908.343] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[2908.343] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[2908.343] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[2908.578] Invalid Reference on Civilizations.IconAtlas - "CIV_COLOR_ATLAS_LEGENDS" does not exist in IconTextureAtlases
[2908.625] Invalid Reference on Civilizations.Adjective - "TXT_KEY_CIV_DALMASCA_ADJECTIVE" does not exist in Language_en_US
[2908.671] Invalid Reference on Civilizations.ShortDescription - "TXT_KEY_CIV_DALMASCA_SHORT_DESC" does not exist in Language_en_US
[2908.703] Invalid Reference on Civilizations.Description - "TXT_KEY_CIV_DALMASCA_DESC" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_RABANASTRE" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_NALBINA" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BHUJERBA" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_JAHARA" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_NABUDIS" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_ERUYT" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BUR-OMISACE" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BALFONHEIM" does not exist in Language_en_US
[2908.750] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_GIRUVEGAN" does not exist in Language_en_US
[2908.796] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_BATTLE_MAGE" does not exist in Units
[2909.062] Invalid Reference on Leader_MinorCivApproachBiases.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2909.062] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2909.062] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2909.062] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2909.062] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[2909.640] Failed Validation.
[2910.203] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		512736		31250840
PageCache:	4385		4982
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		27881760
Scratch:	0		0

Largest Allocations:
Malloc:		131072
PageCache:	1160
Scratch:	6664

Prepared Statements:
Current:		27
------------------------------
[2910.546] no such column: Type
[2910.546] In Query - select * from Natural_Wonder_Placement where Type = ? LIMIT 1
[2910.984] near "NARGIN": syntax error
[2910.984] In Query - select * from Leader_Traits where LeaderType ='LEADER_ASHELIA B'NARGIN DALMASCA'
[2926.015] near "NARGIN": syntax error
[2926.015] In Query - select * from Leader_Traits where LeaderType ='LEADER_ASHELIA B'NARGIN DALMASCA'
[2926.812] near "NARGIN": syntax error
[2926.812] In Query - select * from Leader_Traits where LeaderType ='LEADER_ASHELIA B'NARGIN DALMASCA'
[3094.187] no such table: ContentPackage.LocalizedText
[3121.281] no such table: ContentPackage.LocalizedText
[3124.890] no such table: ContentPackage.LocalizedText
[3127.296] constraint failed
[3127.296] While executing - 'insert into Traits('Type', 'Description', 'ShortDescription') values (?, ?, ?);'
[3127.296] In XMLSerializer while inserting row into table insert into Traits('Type', 'Description', 'ShortDescription') with  values (TRAIT_DESERT_DWELLERS, TXT_KEY_TRAIT_DESERT_DWELLERS, TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT, ).
[3127.296] In XMLSerializer while updating table Traits from file XML/New Text/GameText.xml.
[3127.296] column Type is not unique
[3127.296] Database::XMLSerializer (XML/Units/MYMODUnits.xml): 'Row' or 'Delete' expected, got 'Type'.
[3127.296] table Buildings has no column named Culture
[3127.296] In Query - insert into Buildings('Type', 'BuildingClass', 'Cost', 'GoldMaintenance', 'Description', 'Civilopedia', 'Strategy', 'Help', 'ArtDefineTag', 'MinAreaSize', 'Culture', 'ConquestProb', 'HurryCostModifier', 'NeverCapture', 'IconAtlas', 'PortraitIndex') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[3127.296] In XMLSerializer while updating table Buildings from file XML/Buildings/MYMODBuildingClasses.xml.
[3165.234] Validating Foreign Key Constraints...
[3165.234] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[3165.234] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[3165.234] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[3165.484] Invalid Reference on Civilizations.IconAtlas - "CIV_COLOR_ATLAS_LEGENDS" does not exist in IconTextureAtlases
[3165.515] Invalid Reference on Civilizations.Adjective - "TXT_KEY_CIV_DALMASCA_ADJECTIVE" does not exist in Language_en_US
[3165.562] Invalid Reference on Civilizations.ShortDescription - "TXT_KEY_CIV_DALMASCA_SHORT_DESC" does not exist in Language_en_US
[3165.609] Invalid Reference on Civilizations.Description - "TXT_KEY_CIV_DALMASCA_DESC" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_RABANASTRE" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_NALBINA" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BHUJERBA" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_JAHARA" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_NABUDIS" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_ERUYT" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BUR-OMISACE" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BALFONHEIM" does not exist in Language_en_US
[3165.656] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_GIRUVEGAN" does not exist in Language_en_US
[3165.703] Invalid Reference on Civilization_UnitClassOverrides.UnitType - "UNIT_BATTLE_MAGE" does not exist in Units
[3165.968] Invalid Reference on Leader_MinorCivApproachBiases.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[3165.968] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[3165.968] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[3165.968] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[3165.968] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[3166.562] Failed Validation.
[3167.109] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		514784		31250840
PageCache:	4385		4982
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	0		27881760
Scratch:	0		0

Largest Allocations:
Malloc:		131072
PageCache:	1160
Scratch:	6664

Prepared Statements:
Current:		28
------------------------------
[3167.421] no such column: Type
[3167.421] In Query - select * from Natural_Wonder_Placement where Type = ? LIMIT 1


Finally, what does the Spy name template look like, and where should it go? I haven't been able to find any examples of it yet.
 
I did, yeah. I Built the solution again after I last edited the xmls, uploaded it as a private mod to Steam Workshop, and subscribed to it. Then I made the game in the Mods section of the main menu. It felt a little roundabout, but I didn't think about dropping it directly into the MODS folder.
 
but I didn't think about dropping it directly into the MODS folder.
Its does that automaticly when you press 'Build'.

From your logs you are trying to Duplicate columns with your art define entry, since it alrdy exists. You dont need to include an ArtDefine unless your changing the game graphics, you can see where in the logs. You should get the Vanilla Assests Viewer for modd buddy in the tools forum, you should also get a SQL DB program, like SQLITE for Firefox so you can look and familarize yourself with the tables(located in cache folder), will prevent these :- table Buildings has no column named Culture, yields are allocated under Building_YieldModifiers table.

Edit: Tip - Check your xmls over before building for red squiggley lines under parts of code which indicates theres a problem.
 
Got everything installed correctly, and I'm looking at the cache tables and such. I can vaguely tell how things relate to the game (like where Improvement_TechYieldChanges affects resource output), but I'm afraid I don't know how it relates to the coding, or where to go from here.
 
Made a few edits in the xmls after looking at vanilla assets. First off, I found a single error in the combat section of the battle mage, so that's fixed. Anyway, in the MYMODBuildingClasses.xml, I changed the <ArtDefineTag>ART_DEF_BUILDING_CLAN_CENTURIO_HEADQUARTERS</ArtDefineTag> to <ArtDefineTag>ART_DEF_BUILDING_BARRACKS</ArtDefineTag>; I'm assuming that's the portion that selects the specific icon to go with the building? Also added the line <PrereqTech>TECH_CHIVALRY</PrereqTech> and changed <PortraitIndex>19</PortraitIndex> to <PortraitIndex>5</PortraitIndex> (because vanilla barracks is 5). Then I added
Code:
<Building_YieldChanges>
		<Row>
			<BuildingType>BUILDING_CLAN_CENTURIO_HEADQUARTERS</BuildingType>
			<YieldType>YIELD_CULTURE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Building_YieldChanges>
. So, that whole xml is now

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/23/2012 12:13:47 AM -->
<GameData>
	<BuildingClasses>
		<Row>
			<Type>BUILDINGCLASS_CLAN_CENTURIO_HEADQUARTERS</Type>
			<DefaultBuilding>BUILDING_CLAN_CENTURIO_HEADQUARTERS</DefaultBuilding>
			<Description>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS</Description>
		</Row>
	</BuildingClasses>
	<Buildings>
		<Row>
			<Type>BUILDING_CLAN_CENTURIO_HEADQUARTERS</Type>
			<BuildingClass>BUILDINGCLASS_CLAN_CENTURIO_HEADQUARTERS</BuildingClass>
			<FreeStartEra>ERA_INDUSTRIAL</FreeStartEra>
			<Cost>120</Cost>
			<GoldMaintenance>1</GoldMaintenance>
			<PrereqTech>TECH_CHIVALRY</PrereqTech>
			<Description>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS</Description>
			<Civilopedia>TXT_KEY_CIV5_BUILDINGS_CLAN_CENTURIO_HEADQUARTERS_TEXT</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_STRATEGY</Strategy>
			<Help>TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_HELP</Help>
			<ArtDefineTag>ART_DEF_BUILDING_BARRACKS</ArtDefineTag>
			<MinAreaSize>-1</MinAreaSize>
			<ConquestProb>66</ConquestProb>
			<HurryCostModifier>25</HurryCostModifier>
			<NeverCapture>true</NeverCapture>
			<IconAtlas>BW_ATLAS_1</IconAtlas>
			<PortraitIndex>5</PortraitIndex>
		</Row>
	</Buildings>
	<Building_YieldChanges>
		<Row>
			<BuildingType>BUILDING_CLAN_CENTURIO_HEADQUARTERS</BuildingType>
			<YieldType>YIELD_CULTURE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Building_YieldChanges>
	<Building_ClassesNeededInCity>
		<Row>
			<BuildingType>BUILDING_CLAN_CENTURIO_HEADQUARTERS</BuildingType>
			<BuildingClassType>BUILDINGCLASS_BARRACKS</BuildingClassType>
		</Row>
	</Building_ClassesNeededInCity>
	<Building_Flavors>
		<BuildingType>BUILDING_CLAN_CENTURIO_HEADQUARTERS</BuildingType>
		<FlavorType>FLAVOR_CULTURE</FlavorType>
		<Flavor>7</Flavor>
	</Building_Flavors>
	<Language_en_US>
		<Row Tag="TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS">
			<Text>Clan Centurio Headquarters</Text>
		</Row>
		<Row Tag="TXT_KEY_BUILDING_CLAN_CENTURIO_HEADQUARTERS_STRATEGY">
			<Text>Clan Centurio Headquarters grants [ICON_CULTURE] culture to the city in which it is built.  Requires Chivalry.</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV5_BUILDINGS_CLAN_CENTURIO_HEADQUARTERS_TEXT">
			<Text>Clan Centurio is an independent organization dedicated to the hunting of dangerous marks. The victory of its members in deadly combat adds prestige and glory to the clan's reputation, as well as to that of its hosting cities.</Text>
		</Row>
	</Language_en_US>
</GameData>

Then I changed some details in MYMODGameText.xml; specifically, also going off the vanilla Leaders, I added the line <Gender>feminine</Gender> underneath <Row Tag="TXT_KEY_LEADER_ASHELIA B'NARGIN DALMASCA">
<Text>Ashelia B'nargin Dalmasca</Text>

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/22/2012 4:00:30 PM -->
<GameData>
	<Traits>
		<Row>
			<Type>TRAIT_DESERT_DWELLERS</Type>
			<Description>TXT_KEY_TRAIT_DESERT_DWELLERS</Description>
			<ShortDescription>TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT</ShortDescription>
		</Row>
	</Traits>
	<Language_en_US>
		<Row Tag="TXT_KEY_CITY_NAME_RABANASTRE">
			<Text>Rabanastre</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_NALBINA">
			<Text>Nalbina</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_BHUJERBA">
			<Text>Bhujerba</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_JAHARA">
			<Text>Jahara</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_NABUDIS">
			<Text>Nabudis</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_ERUYT">
			<Text>Eruyt</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_BUR-OMISACE">
			<Text>Bur-Omisace</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_BALFONHEIM">
			<Text>Balfonheim</Text>
		</Row>
		<Row Tag="TXT_KEY_CITY_NAME_GIRUVEGAN">
			<Text>Giruvegan</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV_DALMASCA_ADJECTIVE">
			<Text>Dalmascan</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV_DALMASCA_DESC">
			<Text>Kingdom of Dalmasca</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV_DALMASCA_SHORT_DESC">
			<Text>Dalmasca</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV5_DALMASCA_HEADING_1">
			<Text>History</Text>
		</Row>
		<Row Tag="TXT_KEY_CIV5_DALMASCA_TEXT_1">
			<Text>Dalmasca is a small peaceful kingdom in Ivalice. Dalmasca is surrounded by the much larger states of Archadia and Rozarria which have warred with each other for quite some time. The royal family of Dalmasca are related to the Dynast King, Raithwall. One of the greatest treasures of the Dalmascan royal family is the piece of deifacted nethicite, the Dusk Shard, hidden in a statue in a hidden room deep within the Dalmascan Royal Palace of Rabanastre.</Text>
		</Row>
		<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_HEADING_1">
			<Text>History</Text>
		</Row>
		<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_TEXT_1">
			<Text>Ashe was raised as the Princess of Dalmasca, the ninth, last, and only daughter of the Dalmascan Royal Family. Her eight older brothers had died of illness or fallen in battle, making her the sole heir of her kingdom by the time of her marriage. She had a relatively easy early life, but was raised with the duties and responsibilities of her rank. Besides being raised in royal etiquette, Ashe was no stranger to the defensive arts.[NEWLINE][NEWLINE]Married at the age of seventeen to Lord Rasler of Nabradia, both Ashe and Rasler understood the marriage was intended to cement an alliance between Dalmasca and Nabradia against the conquering empire of Archadia. Ashe said she was "willing to play her part" in the marriage, and despite the political nature of it, both parties genuinely cared for each other. She was widowed shortly afterward, when Rasler was killed at the Battle of Nalbina Fortress. This devastated the Princess and also fueled her anger and hate towards the Archadian Empire. Not long after this, Archadia made a full-scale assault on Dalmasca. Though Raminas intended to surrender willingly - though reluctantly - to save his people, he was killed by Judge Gabranth - posing as his twin, Basch fon Ronsenburg - after signing a peace agreement with Archadia. Ashe's suicide was publicly announced by Bhujerba's ruler, Halim Ondore IV. Now unable to seek Ondore's aid, Ashe retreated underground and assumed the name Amalia. Vossler, a captain in the former Dalmascan army, joined her, and they formed the Resistance to try and win back Dalmasca's independence. The Resistance moved slowly, not winning any major victories or causing enough unrest to be notable until Vayne Solidor traveled to Dalmasca to assume his position as consul in the year 706.[NEWLINE][NEWLINE]In a long series of events following Vayne's arrival in Rabanstre, Ashe embarked on a journey across the lands of Ivalice, in the growing company of faithful subjects, friends, and sky pirates, in order to seek a means to remove the Archadian Empire's presence from her beloved kingdom.  This journey culminated in a rejection of awesome yet enslaving magical power offered by the puppeteering gods called the Occuria, but nevertheless ended triumphantly in a battle in the skies above Rabanstre.  Following Vayne Solidor's death in the conflict's climax, Ashe and Larsa Solidor sign a treaty, ending the war and restoring the kingdom of Dalmasca to its proper ruler. </Text>
		</Row>
		<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_LIVED">
			<Text>687- Old Valendia</Text>
		</Row>
		<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_NAME">
			<Text>Ashelia B'nargin Dalmasca</Text>
		</Row>
		<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_ASHELIA B'NARGIN DALMASCA_SUBTITLE">
			<Text>Princess of the Dalmascans</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA B'NARGIN DALMASCA">
			<Text>Ashelia B'nargin Dalmasca</Text>
			<Gender>feminine</Gender>
		</Row>
		<Row Tag="TXT_KEY_TRAIT_DESERT_DWELLERS">
			<Text>Desert tiles give one additional [ICON_FOOD] Food, desert hills give one additional [ICON_PRODUCTION] Production, and flood plains give one additional [ICON_GOLD] Gold.</Text>
		</Row>
		<Row Tag="TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT">
			<Text>Desert Dwellers</Text>
		</Row>
	</Language_en_US>
</GameData>

I also added a new xml called MYMOD_Dialog_Ashelia B'nargin Dalmasca.xml, mostly going off of Elizabeth's xml.

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/23/2012 4:57:01 PM -->
<GameData>
	<Language_en_US>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_1">
			<Text>Very well.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_2">
			<Text>All right.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_3">
			<Text>Certainly.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_4">
			<Text>It is agreed.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_5">
			<Text>Oh, very well.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_6">
			<Text>I suppose I must.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_AGREE_SHORT_7">
			<Text>Excellent.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_ATTACKED_1">
			<Text>Very well - on your head be it!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_ATTACKED_3">
			<Text>You dare! You will suffer for your monstrous arrogance!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DECLAREWAR_1">
			<Text>Your many insults to us and to our loyal subjects will not go unpunished - prepare for war!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DECLAREWAR_2">
			<Text>By the gods, your days are numbered. Prepare for war!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DECLAREWAR_3">
			<Text>The time for polite speeches and pretty gestures has ended - we shall meet on the field of battle!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DEFEATED_1">
			<Text>You have bested us on the field of battle. We congratulate you in your victory.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DEFEATED_2">
			<Text>You have defeated us, for now. But Dalmasca shall rise again one day, even mightier than before!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DEFEATED_3">
			<Text>You have triumphed over us. The day is yours.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DEMANDTRIBUTE_ANGRY">
			<Text>Give us what we want or suffer the consequences.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DEMANDTRIBUTE_HAPPY">
			<Text>My beloved friend, can you assist us in our hour of need?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DEMANDTRIBUTE_NEUTRAL">
			<Text>Dalmasca has needs - needs that only you can fulfill. We trust that you will rise to the occasion.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_1">
			<Text>No.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_2">
			<Text>Certainly not.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_3">
			<Text>We decline.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_4">
			<Text>Of course not.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_5">
			<Text>That's unacceptable.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_6">
			<Text>You cannot be serious!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_DISAGREE_SHORT_7">
			<Text>I beg your pardon?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_FIRSTGREETING_1">
			<Text>Greetings. We hope that our two people meet as friends, rather than foes.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_FIRSTGREETING_2">
			<Text>You are well met. I pray that it was an auspicious wind that brought us together.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_FIRSTGREETING_3">
			<Text>We are pleased to meet you.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_FIRSTGREETING_4">
			<Text>Welcome to Dalmasca.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_1">
			<Text>Good day.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_2">
			<Text>Farewell.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_3">
			<Text>Goodbye.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_4">
			<Text>Until we meet again.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_5">
			<Text>Go away now.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_6">
			<Text>That is all.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GOODBYE_7">
			<Text>Away with you.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_1">
			<Text>Well met!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_2">
			<Text>Hello again.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_3">
			<Text>Greetings.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_4">
			<Text>Welcome.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_5">
			<Text>Oh, it's you.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_6">
			<Text>Well?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_GREETING_7">
			<Text>What do you want?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_1">
			<Text>Let's hear it.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_2">
			<Text>Go ahead.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_3">
			<Text>Proceed.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_4">
			<Text>I'm listening.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_5">
			<Text>Yes?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_6">
			<Text>You were saying?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_7">
			<Text>And?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LETSHEARIT_8">
			<Text>Go on.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_LOSEWAR_1">
			<Text>Well then, that's settled. I can only hope that our relations remain peaceful and friendly in the future.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_QUOTE_1">
			<Text>Dalmasca does not forget kindness, nor ill deed done. With sword in hand, she aids her allies, sword in hand she lays to rest her foes.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_QUOTE_2">
			<Text>I am simply myself. No more and no less. And I want only to be free.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_ANGRY_1">
			<Text>Dalmasca is not so generous. You must do better than that.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_ANGRY_2">
			<Text>That's not good enough.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_ANGRY_3">
			<Text>You must do better than that.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_ANGRY_4">
			<Text>Almost&#8230;</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_HAPPY_1">
			<Text>Come now! Dalmasca can ill-afford to be so generous, even to dear friends! Will you not improve your offer?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_HAPPY_2">
			<Text>Is that the best you can do?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_HAPPY_3">
			<Text>You're almost there&#8230;</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_HAPPY_4">
			<Text>Almost&#8230;</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_NEUTRAL_1">
			<Text>Come now! Such penuriousness ill-becomes a leader of your stature! Surely you can improve your paltry offer!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_NEUTRAL_2">
			<Text>Can you do better?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_NEUTRAL_3">
			<Text>That's not quite good enough.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NEEDMORE_NEUTRAL_4">
			<Text>Almost&#8230;</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NO_ANGRY">
			<Text>Your request is an insult to Dalmasca. We refuse.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NO_HAPPY">
			<Text>My dear friend,  whilst We would personally give you everything we possess, unto our very last farthing, Our advisors are somewhat less generous. I therefore must regretfully decline your offer.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_NO_NEUTRAL">
			<Text>We implore you not to waste Our time with such foolishness.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_YES_ANGRY">
			<Text>Oh very well. I suppose I must. We are agreed.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_YES_HAPPY">
			<Text>We congratulate you on your bargaining skill and acumen! We accept your offer.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADE_YES_NEUTRAL">
			<Text>Your offer is agreeable to Us. We accept.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADEREQUEST_ANGRY">
			<Text>Here is Our offer - and it is far better than you deserve.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADEREQUEST_HAPPY">
			<Text>My dear friend, would you be interested in a trade agreement with England?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRADEREQUEST_NEUTRAL">
			<Text>Commercial intercourse is the lifeblood of civilization, don't you agree?</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRIBUTE_NO_ANGRY">
			<Text>You presume to demand tribute from Us? Go away, you hateful villain!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRIBUTE_NO_HAPPY">
			<Text>Friends should not treat each other thusly. We are surprised at your temerity!</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRIBUTE_NO_NEUTRAL">
			<Text>How amusing you are. Certainly not.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRIBUTE_YES_ANGRY">
			<Text>You have Us at a disadvantage now, but it may not always be so. We shall remember this.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRIBUTE_YES_HAPPY">
			<Text>It is Our pleasure to assist Our friend and ally in their hour of need.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_TRIBUTE_YES_NEUTRAL">
			<Text>Oh, very well, I suppose we have no choice.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WARBLUFF_1">
			<Text>How disappointing.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WARBLUFF_2">
			<Text>How very disappointing.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WARBLUFF_3">
			<Text>Indeed? I trust that you will not live to regret your short-sightedness.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WARBLUFF_4">
			<Text>How foolish of you.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WARBLUFF_5">
			<Text>Your foolish pride will be the death of you if you do not take care.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WARBLUFF_6">
			<Text>Very well. On your head be it.</Text>
		</Row>
		<Row Tag="TXT_KEY_LEADER_ASHELIA_B'NARGIN_DALMASCA_WINWAR_1">
			<Text>Dalmasca shall always rise triumphant over her foes! You would do well to remember that in the future.</Text>
		</Row>
	</Language_en_US>
</GameData>

Then I made some slight adjustments to the battle mage in the <Civilopedia> and <Strategy> lines, changing those to Battle_Mage instead of Warrior. Also changed <UnitArtInfo> to Warrior.

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/22/2012 11:32:40 PM -->
<GameData>
	<Units>
		<Row>
			<Class>UNITCLASS_WARRIOR</Class>
			<Type>UNIT_BATTLE_MAGE</Type>
			<Combat>8</Combat>
			<Cost>40</Cost>
			<Moves>2</Moves>
			<CombatClass>UNITCOMBAT_MELEE</CombatClass>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
			<Description>TXT_KEY_UNIT_BATTLE_MAGE</Description>
			<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_BATTLE_MAGE_TEXT</Civilopedia>
			<Strategy>TXT_KEY_UNIT_BATTLE_MAGE_STRATEGY</Strategy>
			<Help>TXT_KEY_UNIT_HELP_BATTLE_MAGE</Help>
			<MilitarySupport>true</MilitarySupport>
			<MilitaryProduction>true</MilitaryProduction>
			<Pillage>true</Pillage>
			<ObsoleteTech>TECH_METAL_CASTING</ObsoleteTech>
			<GoodyHutUpgradeUnitClass>UNITCLASS_SPEARMAN</GoodyHutUpgradeUnitClass>
			<AdvancedStartCost>10</AdvancedStartCost>
			<XPValueAttack>3</XPValueAttack>
			<XPValueDefense>3</XPValueDefense>
			<Conscription>1</Conscription>
			<UnitArtInfo>ART_DEF_UNIT_WARRIOR</UnitArtInfo>
			<UnitFlagIconOffset>3</UnitFlagIconOffset>
			<IconAtlas>UNIT_ATLAS_1</IconAtlas>
			<PortraitIndex>3</PortraitIndex>
		</Row>
	</Units>
	<Unit_FreePromotions>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<PromotionType>PROMOTION_HEALS_AT_DOUBLE_RATE</PromotionType>
		</Row>
	</Unit_FreePromotions>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<UnitAIType>UNITAI_ATTACK</UnitAIType>
		</Row>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<UnitAIType>UNITAI_DEFENSE</UnitAIType>
		</Row>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<UnitAIType>UNITAI_EXPLORE</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_ClassUpgrades>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<UnitClassType>UNITCLASS_SWORDSMAN</UnitClassType>
		</Row>
	</Unit_ClassUpgrades>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<FlavorType>FLAVOR_RECON</FlavorType>
			<Flavor>1</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<FlavorType>FLAVOR_OFFENSE</FlavorType>
			<Flavor>2</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_BATTLE_MAGE</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>2</Flavor>
		</Row>
	</Unit_Flavors>
	<UnitMemberArtInfo>
		<Type>ART_DEF_UNIT_MEMBER_WARRIOR</Type>
		<fScale>0.14</fScale>
		<Granny>Assets/Units/Warrior/Warrior.fxsxml</Granny>
		<Combat>
			<Defaults>ART_DEF_TEMPLATE_WARRIOR</Defaults>
		</Combat>
		<MaterialTypeTag>CLOTH</MaterialTypeTag>
		<MaterialTypeSoundOverrideTag>FLESH</MaterialTypeSoundOverrideTag>
	</UnitMemberArtInfo>
	<Row Tag="TXT_KEY_UNIT_BATTLE_MAGE">
		<Text>Battle Mage</Text>
	</Row>
	<Language_en_US>
		<Row Tag="TXT_KEY_UNIT_HELP_BATTLE_MAGE">
			<Text>This unit's healing magic keeps it fighting on the frontlines.</Text>
		</Row>
	</Language_en_US>
</GameData>

When all was said and done, I started up the game, but couldn't get the game going once I'd selected Dalmasca. The error message 'Texture Load Error: Unable to load texture [DalmascaSea 64.dds]' popped up every time I pressed a button, and the circle icon where it would go next to Elizabeth's portrait was wacky colored. I expect that's because I added a new OnModActivated UpdateDatabase Action which I'd missed before: MYMODIconTextureAtlases.xml, which follows here.

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/22/2012 6:03:40 PM -->
<GameData>
	<IconTextureAtlases>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>256</IconSize>
			<Filename>DalmascaSeal 256.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>214</IconSize>
			<Filename>DalmascaSeal 214.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>128</IconSize>
			<Filename>DalmascaSeal 128.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>80</IconSize>
			<Filename>DalmascaSeal 80.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>64</IconSize>
			<Filename>DalmascaSeal 64.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>45</IconSize>
			<Filename>DalmascaSeal 64.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>CIV_COLOR_ATLAS_LEGENDS</Atlas>
			<IconSize>32</IconSize>
			<Filename>DalmascaSeal 32.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
	</IconTextureAtlases>
</GameData>

EDIT: I'm pretty sure my problem here might be not quite understanding Kael's guide when it refers to the psd templates, which are the black fields with white circles. I just took the Dalmasca Seal, threw it into Gimp and resized it to the proper dimensions for each entry, then dragged them into the Art folder in ModBuddy. Should I do something different there?

Here's the Database log.

Spoiler :
[19195.546] constraint failed
[19195.546] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[19199.593] no such table: ContentPackage.LocalizedText
[19204.718] Validating Foreign Key Constraints...
[19204.718] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[19204.718] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[19204.718] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[19205.484] Invalid Reference on Leader_MinorCivApproachBiases.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[19205.484] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[19205.484] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[19205.484] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[19205.484] Invalid Reference on Leader_Flavors.LeaderType - "LEADER_SEJONG" does not exist in Leaders
[19206.078] Failed Validation.
[19206.671]
-- SQLite Memory Statistics --
Memory Usage:
[Cur] [Max]
Malloc: 374032 31245048
PageCache: 4363 4982
LookAside: 0 0
Scratch: 0 1

Static Buffer Overflows:
[TooLarge] [NoSpace]
PageCache: 0 27880600
Scratch: 0 0

Largest Allocations:
Malloc: 131072
PageCache: 1160
Scratch: 6664

Prepared Statements:
Current: 6
------------------------------
[19246.046] no such table: ContentPackage.LocalizedText
[19252.406] no such table: ContentPackage.LocalizedText
[19256.500] constraint failed
[19256.500] While executing - 'insert into Traits('Type', 'Description', 'ShortDescription') values (?, ?, ?);'
[19256.500] In XMLSerializer while inserting row into table insert into Traits('Type', 'Description', 'ShortDescription') with values (TRAIT_DESERT_DWELLERS, TXT_KEY_TRAIT_DESERT_DWELLERS, TXT_KEY_TRAIT_DESERT_DWELLERS_SHORT, ).
[19256.500] In XMLSerializer while updating table Traits from file XML/New Text/MYMODGameText.xml.
[19256.500] column Type is not unique
[19256.515] Database::XMLSerializer (XML/Units/MYMODUnits.xml): 'Row' or 'Delete' expected, got 'Type'.
[19256.515] Database::XMLSerializer (XML/Buildings/MYMODBuildingClasses.xml): 'Row' or 'Delete' expected, got 'BuildingType'.
[19369.843] near "NARGIN": syntax error
[19369.843] In Query - select * from Leader_Traits where LeaderType ='LEADER_ASHELIA B'NARGIN DALMASCA'


So yeah, the biggest problem at the moment seems to be the art define entry. At what point am I duplicating columns/what should I edit?
 
Art Define = 3D Model
PortraitIndex = Icon
Dont use spaces. Make sure you texture is set to VFS=true. (DalmascaSeal 256.dds has a space, thats BAD) spaces in general in xml is BAD. (Unless you tabbing to get nice lookin code)
Dude, go read up about XML and what you can and can not have, '#'- = illegal characters. (Or picksomething easier to start moddign with liek simple things untill you understand it all better)
And tbh, read more tutorials, it realy does sound liek you have not read anything and are just walking in the dark.
 
Well, after continuing my crash course, everything's working perfectly, with just a couple of exceptions that I'll iron out later. Thanks. :)
 
Back
Top Bottom