What is up with this XML

Scaramanga

Brickhead
Joined
Nov 16, 2006
Messages
2,215
Location
Canada
Ok I might have been a little cocky after adding various civs in Civ 4 but now I can't do even this simple task in Civ 5.

I've done the basic Kael-sanctioned setup with XML files, actions, and making sure the mod is enabled in the game but I'm not seeing the coveted changes in WorldBuilder (making sure it's loaded there too).

Anyone enjoys this type of thing I would appreciate your help. The mod is very barebones and currently uses a lot of data from existing civs as filler. I need a second pair of eyes, thanks in advance.

XML\Civilizations\Civ_Umbar.xml:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/2/2010 8:17:19 PM -->
<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_UMBAR</Type>
<Description>TXT_KEY_CIV_UMBAR_DESC</Description>
<ShortDescription>TXT_KEY_CIV_UMBAR_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_UMBAR_ADJECTIVE</Adjective>
<CivilopediaTag>TXT_KEY_CIV5_OTTOMAN</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_OTTOMAN</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_OTTOMANS</ArtDefineTag>
<ArtStyleType>ARTSTYLE_MIDDLE_EAST</ArtStyleType>
<ArtStyleSuffix>_AFRI</ArtStyleSuffix>
<ArtStylePrefix>AFRICAN</ArtStylePrefix>
<PortraitIndex>15</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>MapOttoman512.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_DAWN_OTTOMANS_TEXT</DawnOfManQuote>
<DawnOfManImage>DOM_Suleiman.dds</DawnOfManImage>
<DawnOfManAudio>AS2D_DOM_SPEECH_OTTOMANS</DawnOfManAudio>
</Row>
</Civilizations>
<Civilization_CityNames>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_UMBAR</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_PELLARDUR</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_MARÖS</CityName>
</Row>
</Civilization_CityNames>
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<LeaderheadType>LEADER_SANGAHYANDO</LeaderheadType>
</Row>
</Civilization_Leaders>
<Civilization_Start_Region_Priority>
<Row>
<CivilizationType>CIVILIZATION_UMBAR</CivilizationType>
<StartAlongOcean>true</StartAlongOcean>
</Row>
</Civilization_Start_Region_Priority>
</GameData>

XML\Civilizations\Traits.xml:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/3/2010 6:24:21 PM -->
<GameData>
<Traits>
<Row>
<Type>TRAIT_CONVERTS_BARBARIANS</Type>
<Description>TXT_KEY_TRAIT_CONVERTS_BARBARIANS</Description>
<ShortDescription>TXT_KEY_TRAIT_CONVERTS_BARBARIANS_SHORT</ShortDescription>
<LandBarbarianConversionPercent>50</LandBarbarianConversionPercent>
<SeaBarbarianConversionPercent>50</SeaBarbarianConversionPercent>
</Row>
</Traits>
</GameData>

XML\Leaders\Leaders.xml:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/3/2010 8:01:46 PM -->
<GameData>
<Leaders>
<Row>
<Type>LEADER_SANGAHYANDO</Type>
<Description>TXT_KEY_LEADER_LEADER_SANGAHYANDO</Description>
<Civilopedia>TXT_KEY_LEADER_SULEIMAN_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIVILOPEDIA_LEADERS_SULEIMAN</CivilopediaTag>
<ArtDefineTag>Sulieman_Scene.xml</ArtDefineTag>
<VictoryCompetitiveness>5</VictoryCompetitiveness>
<WonderCompetitiveness>5</WonderCompetitiveness>
<MinorCivCompetitiveness>6</MinorCivCompetitiveness>
<Boldness>8</Boldness>
<DiploBalance>6</DiploBalance>
<WarmongerHate>4</WarmongerHate>
<WorkAgainstWillingness>7</WorkAgainstWillingness>
<WorkWithWillingness>5</WorkWithWillingness>
<PortraitIndex>15</PortraitIndex>
<IconAtlas>LEADER_ATLAS</IconAtlas>
</Row>
</Leaders>
<Leader_MajorCivApproachBiases>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_WAR</MajorCivApproachType>
<Bias>6</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_HOSTILE</MajorCivApproachType>
<Bias>6</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_DECEPTIVE</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_GUARDED</MajorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_AFRAID</MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_FRIENDLY</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_NEUTRAL</MajorCivApproachType>
<Bias>5</Bias>
</Row>
</Leader_MajorCivApproachBiases>
<Leader_MinorCivApproachBiases>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_IGNORE</MinorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_FRIENDLY</MinorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_PROTECTIVE</MinorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_CONQUEST</MinorCivApproachType>
<Bias>6</Bias>
</Row>
</Leader_MinorCivApproachBiases>
<Leader_Flavors>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_MOBILE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_NAVAL_GROWTH</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_NAVAL_TILE_IMPROVEMENT</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_AIR</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_EXPANSION</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_TILE_IMPROVEMENT</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_INFRASTRUCTURE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_WONDER</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_RELIGION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_SPACESHIP</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<FlavorType>FLAVOR_WATER_CONNECTION</FlavorType>
<Flavor>6</Flavor>
</Row>
</Leader_Flavors>
<Leader_Traits>
<Row>
<LeaderType>LEADER_SANGAHYANDO</LeaderType>
<TraitType>TRAIT_CONVERTS_BARBARIANS</TraitType>
</Row>
</Leader_Traits>
</GameData>

XML\New Text\GameText.xml:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/2/2010 5:58:45 PM -->
<GameData>
<Language_en_US>
<Row Tag="TXT_KEY_CIV_UMBAR_ADJECTIVE">
<Text>Umbarean</Text>
</Row>
<Row Tag="TXT_KEY_CIV_UMBAR_DESC">
<Text>Umbarean Empire</Text>
</Row>
<Row Tag="TXT_KEY_CIV_UMBAR_SHORT_DESC">
<Text>Umbar</Text>
</Row>
<Row Tag="TXT_KEY_LEADER_SANGAHYANDO">
<Text>Sangahyando</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_UMBAR">
<Text>Umbar</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_PELLARDUR">
<Text>Pellardur</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_MARÖS">
<Text>Marös</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_CONVERTS_BARBARIANS_SHORT">
<Text>Corsair Lords</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_CONVERTS_BARBARIANS">
<Text>50% Chance of converting a Barbarian naval, or encamped, unit and earning 25 [ICON_GOLD] Gold.</Text>
</Row>
</Language_en_US>
</GameData>

Realms in Exile (v 1).modinfo:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<Mod id="b80b9604-ed9e-4fae-a2bb-3ed0fd416840" version="1">
<Properties>
<Name>Realms in Exile</Name>
<Stability>Experimental</Stability>
<Description>Middle-earth after the fall of Sauron at the hands of the Last Alliance.</Description>
<Authors>Scaramanga</Authors>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="4B04D654622FBB8E6684928D7FE684E6">Maps/Middle-Earth.Civ5Map</File>
<File md5="B1CCA99C1E4983378DE85358CC2B3629">XML/Civilizations/Civ_Umbar.xml</File>
<File md5="FBB73CFE119148DB47EF26D748255CDE">XML/Civilizations/Traits.xml</File>
<File md5="076B7A1245E10C09317E5AE22DFCCD9F">XML/Leaders/Leaders.xml</File>
<File md5="E3C5911FA87EF1321FB6A17FA6A859DE">XML/New Text/GameText.xml</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>XML/Civilizations/Civ_Umbar.xml</UpdateDatabase>
<UpdateDatabase>XML/Civilizations/Traits.xml</UpdateDatabase>
<UpdateDatabase>XML/New Text/GameText.xml</UpdateDatabase>
<UpdateDatabase>XML/Leaders/Leaders.xml</UpdateDatabase>
</OnModActivated>
</Actions>
</Mod>
 
BTW: the spoiler tags are entering spaces all over for some reason. They don't exist in the actual files (who could miss those :crazyeye:?). Thanks again.
 
Possible causes for it not to be working (sorry I'm a bit lazy today so I'm not going to be pursuing any code :P)

1) There's a syntax error in you Civilizations.xml which is crashing the file and not loading it (therefore it wouldn't be showing up)
2) You didn't set actions for your xml files in Mod Properties
3) Maybe you didn't build? Very unlikely
4) Similar to #2, you may have misspelled something in the Mod Properties actions.

Your most likely problems are from #1 or #2. I isolated the Civilizations.xml because if you made a syntax error in that, your civilization wouldn't be recognized and it wouldn't show up. If there was a problem in, say, the text file, your civ would just show up as "TXT_KEY..." stuff. If #2 is not done, then your Mod would be loading nothing. So check those two problems the hardest. #3 is really unlikely because if that's the case then...well, yeah...and #4 is basically if you misspelled it, it's not calling it from the Mod and that should be an easy fix.

Hope this helps!
 
Thanks,

I was putting StartAlongOcean info inside of a Civilization_Start_Region_Priority tag.
 
Back
Top Bottom