Modders Guide to Civilization V

@L00K3 and 100kg: Did you give your custom civs at least two uniques? Otherwise they will not appear. Also, did you set the XML or SQL file(s) with your new civs to UpdateDatabase?
Oh, and welcome to CivFanatics!
 
I have a quick question, what happens if we want to mod the DLC civs, for example in my mod I am planning to change spain's power. If I just use <Update> on the power and they don't have the DLC what happens?
 
Nothing happens.

Read it in English, e.g., Update: Where Column is set to Value, Set Column2 to Value2.

If there are one or multiple rows where Column is set to Value, it will Set Column2 to Value2 for each of the rows. If there are none, then there's nothing to do.
 

I built a mod called the civilizations pack, eventually going to incorperate hundreds of idease collected for civilizations. The first civilization has been added called the Potato Empire, idea from a joke a friend of mine came up with.

The problem is that the civilization doesn't show in the selection screen. I go...
{Mods --> Accept --> Civilizations Pack --> Single Player --> Setup Game --> Choose Civilization}

Please Help...:confused:
You should start a new thread under the main creation & customization forum for asking questions like this not because asking them here is 'bad' in terms of forum usage but because you'll only get answers by luck or chance. Not many of us are looking here for trouble-shooting help requests.

That having been said:
Code:
this:
<GameData>
	<BuildingClasses>
		<Row>
			<Type>BUILDINGCLASS_QLABS</Type>
			<DefaultBuilding>BUILDING_QLABS</DefaultBuilding>
			<Description>TXT_KEY_BUILDING_QLABS</Description>
		</Row>
	</BuildingClasses>
</GameData>

is in direct conflict with this:

<GameData>
	
	<Buildings>
		
		<Row>
			<Type>BUILDING_QLABS</Type>
			<BuildingClass>[COLOR="Red"]BUILDINGCLASS_MILITARY_BASE[/COLOR]</BuildingClass>
The game will not accept such conflicting instructions and will either completely crash to your desktop or will discard the file with the BUILDING_QLABS definition of the building.

Nor can you have these two commands within the same building:
Code:
<ConquestProb>66</ConquestProb>
<NeverCapture>true</NeverCapture>
It has to be one or the other. Since the first is telling the game that 2/3rds of the time, when a city with this building is captured, the building wil survive. The other command is telling the game the building never survives the city being captured.

You have numerous other errors but you need to start a new thread for getting answers to those in the main creation & cusomization forum.

edit --> oops, didn't look closely enough at the date in the post to which I was responding. Over a month ago.
 
100kg,

I would start a thread in the main creation and customization forum, posting your question/trouble, and including a zipped copy of your mod as an attachment to your post. You're far more likely to get help that way because your question/trouble thread will be far more visible to the modding members of the CIV5 community.
 
In the actions for my mod i am unable to type in the file, so i can't create my mod. How do i fix this problem?
 
Kael's guide indicates that the first step to making a mod is to start the "Mod Buddy"

Follow these steps to get started on your own mod. (Screen shots may differ slightly from the release version since I'm using beta versions of all the tools to create this document).
1. Load ModBuddy (the Sid Meier's Civilization V SDK).

This application must be downloaded. If you log in to your Steam account, and look under your libraries tab, there will be a tools row on the pull down.

This opens a long list of tools available for the games you have in your library. Presumably Sid Meier's Civ 5 SDK should be in there if you have a licensed Steam version.

ADDIT: and just another FYI for anyone else who is coming into the Civ 5 community and modding at this relatively "late stage" when older documents are no longer needed for those who have been modding along for years now . . . Running the Civ 5 SDK will require that you have: Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package installed. Just do a Google advanced search for that (or key parts of that) text and make sure you go to a Microsoft site. This was the url I downloaded from

http://www.microsoft.com/en-us/download/confirmation.aspx?id=1366
 
I'm not sure if this is the right place to ask but i am using this guide as a reference and am running into a small problem:

i'm trying to make a civilization that replaces both great engineers and great scientists with a new unit that performs the functions of both. The civilization works, the new unit replaces both the engineer and scientist without problem, and can construct everything i ask it, but runs into something weird with the great person actions.

Whereas the unit is intended to be able to both Hurry production and Grant the scientist's tech boost (not at the same time), the unit is instead capable of only granting the tech boost, and for some reason, granting a golden age. This is weird considering my use of the great engineer's XML as base for the new unit, and i cannot figure out why it won't hurry production, or how to remove the golden age ability.

The code i use to determine the unit's abilities is this:
<Units>

<Row>
<Class>UNITCLASS_ENGINEER</Class>
<Type>UNIT_GUILD_INVENTOR</Type>
<Cost>-1</Cost>
<Moves>2</Moves>
<CivilianAttackPriority>CIVILIAN_ATTACK_PRIORITY_HIGH</CivilianAttackPriority>
<Special>SPECIALUNIT_PEOPLE</Special>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ENGINEER</DefaultUnitAI>
<Description>TXT_KEY_UNIT_GUILD_INVENTOR</Description>
<Civilopedia>TXT_KEY_CIV5_GUILD_INVENTOR_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_GUILD_INVENTOR_STRATEGY</Strategy>
<AdvancedStartCost>-1</AdvancedStartCost>
<WorkRate>1</WorkRate>
<CombatLimit>0</CombatLimit>
<GoldenAgeTurns>8</GoldenAgeTurns>
<NumFreeTechs>1</NumFreeTechs>
<BaseHurry>300</BaseHurry>
<HurryMultiplier>30</HurryMultiplier>
<UnitArtInfo>ART_DEF_UNIT_ENGINEER</UnitArtInfo>
<UnitArtInfoEraVariation>true</UnitArtInfoEraVariation>
<UnitFlagIconOffset>89</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>47</PortraitIndex>
<MoveRate>GREAT_PERSON</MoveRate>
</Row>

</Units>

Removing the <NumFreeTechs>1</NumFreeTechs> line does stop it from granting tech boosts, but still has it able to create golden ages.
 
The line right above <NumFreeTechs>1</NumFreeTechs> is <GoldenAgeTurns>8</GoldenAgeTurns> which is used as an attribute of the UNIT_ARTIST, and is not part of the G Engineer. At least, in BNW. Can't remember if the G Artist golden age thing was done any differently in the previous expansions.
 
You're right. I only found out after i checked both the BNW and vanilla Civ unit files. The vanilla Engineer does have the goldenageturns modifier, but the BNW version not. That explains the golden age ability.

I also managed to hook the unit up so it can produce great works, but apperently each and every artist may only construct one kind of great work.
 
Hello! I created my own mod, and the error is that whenever I activate the mod, my leader and civilization will not show up! I might be making some silly/major errors. Please help me!

I have programmed extensively with Java, Python, and C++. XML is used slightly in some of these, but I am very new.
Here is the civilizations XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/20/2014 12:57:00 AM -->
<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_BLUEJEANIANS</Type>
<Description>TXT_KEY_CIV_CELT_DESC</Description>
<ShortDescription>TXT_KEY_CIV_CELT_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_CELT_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_CELT_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_CELT</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_DARK_GREEN</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_ENGLAND</ArtDefineTag>
<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
<ArtStyleSuffix>_EURO</ArtStyleSuffix>
<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_LEGENDS</IconAtlas>
<PortraitIndex>6</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>MapEngland512.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_CELT_TEXT_1</DawnOfManQuote>
<DawnOfManImage>BlueJeanz.dds</DawnOfManImage>
</Row>
</Civilizations>
<Civilization_CityNames>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BLUEJEANOPOLIS</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_COTTONGROVE</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_DENIMFORDAYZ</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BLUEFORYOU</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_PANTZDANTZ</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_COOLBEANZJEANZ</CityName>
</Row>
</Civilization_CityNames>
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
<LeaderheadType>BLUEJEANZ</LeaderheadType>
</Row>
</Civilization_Leaders>
<Civilization_Start_Region_Priority>
<Row>
<CivilizationType>CIVILIZATION_BLUEJEANIANS</CivilizationType>
</Row>
</Civilization_Start_Region_Priority>
</GameData>

So here is my leaders XML

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/20/2014 2:46:26 AM -->
<GameData>
<Leaders>
<Row>
<Type>BLUE_JEANZ</Type>
<Description>TXT_KEY_BLUE_JEANZ</Description>
<Civilopedia>TXT_KEY_BLUE_JEANZ_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ</CivilopediaTag>
<ArtDefineTag>Elizabeth_Scene.xml</ArtDefineTag>
<VictoryCompetitiveness>10</VictoryCompetitiveness>
<WonderCompetitiveness>7</WonderCompetitiveness>
<MinorCivCompetitiveness>3</MinorCivCompetitiveness>
<Boldness>10</Boldness>
<DiploBalance>3</DiploBalance>
<WarmongerHate>2</WarmongerHate>
<WorkAgainstWillingness>7</WorkAgainstWillingness>
<WorkWithWillingness>4</WorkWithWillingness>
<PortraitIndex>6</PortraitIndex>
<IconAtlas>LEADER_ATLAS</IconAtlas>
</Row>
</Leaders>
<Leader_MajorCivApproachBiases>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_WAR</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_HOSTILE</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_DECEPTIVE</MajorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_GUARDED</MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_AFRAID</MajorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_FRIENDLY</MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_NEUTRAL</MajorCivApproachType>
<Bias>4</Bias>
</Row>
</Leader_MajorCivApproachBiases>
<Leader_MinorCivApproachBiases>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_IGNORE</MinorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_FRIENDLY</MinorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_PROTECTIVE</MinorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_CONQUEST</MinorCivApproachType>
<Bias>8</Bias>
</Row>
</Leader_MinorCivApproachBiases>
<Leader_Flavors>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_MOBILE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_NAVAL_GROWTH</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_NAVAL_TILE_IMPROVEMENT</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_AIR</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_EXPANSION</FlavorType>
<Flavor>9</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_TILE_IMPROVEMENT</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_INFRASTRUCTURE</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_WONDER</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_RELIGION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_SPACESHIP</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>BLUE_JEANZ</LeaderType>
<FlavorType>FLAVOR_WATER_CONNECTION</FlavorType>
<Flavor>6</Flavor>
</Row>
</Leader_Flavors>
<Leader_Traits>
<Row>
<LeaderType>BLUEJEANZ</LeaderType>
<TraitType>TRADING_JEANZ</TraitType>
</Row>
</Leader_Traits>
</GameData>

The leaders trait xml

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/20/2014 12:58:23 AM -->
<GameData>
<Traits>
<Row>
<Type>TRADING_JEANZ</Type>
<Description>TXT_KEY_TRAIT_TRADING_JEANZ</Description>
<ShortDescription>TXT_KEY_TRAIT_TRADING_JEANZ_SHORT</ShortDescription>
<TradeRouteModifier>15</TradeRouteModifier>
<HappinessPerTradeRoute>200</HappinessPerTradeRoute>
<CulturePerTradeRoute>200</CulturePerTradeRoute>
</Row>
</Traits>
</GameData>

Here is teh text definitions in xml

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/20/2014 1:04:38 AM -->
<GameData>
<Language_en_US>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ">
<Text>Blue Jeanz</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ_TEXT_1">
<Text>Blue Jeanz always did everything the best. Yeah, he was cool.</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ_LIVED">
<Text>1994-present</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ_NAME">
<Text>Blue Jeanz</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_BLUEJEANZ_SUBTITLE">
<Text>Overlord of the Jeanz</Text>
</Row>
<Row Tag="TXT_KEY_LEADER_BLUEJEANZ">
<Text>Blue Jeanz</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BLUEJEANOPOLIS">
<Text>BlueJeanopolis</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_COTTONGROVE">
<Text>Cotton Grove</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_DENIMFORDAYZ">
<Text>Denim for Dayz</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BLUEFORYOU">
<Text>Blue for You</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_PANTZDANTZ">
<Text>Pantz Dantz</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_COOLBEANZJEANZ">
<Text>Cool Beanz Jeanz</Text>
</Row>
<Row Tag="TXT_KEY_CIV_CELT_ADJECTIVE">
<Text>jeanian</Text>
</Row>
<Row Tag="TXT_KEY_CIV_CELT_DESC">
<Text>Blue Jean Overlords</Text>
</Row>
<Row Tag="TXT_KEY_CIV_CELT_SHORT_DESC">
<Text>Blue Jeans</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_CELT_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_CELT_TEXT_1">
<Text>Blue Jeanians are by far the best at everything involving anything. Jeanz OP.</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_TRADING_JEANZ">
<Text> City connections give you an extra 2 happiness, and 4 culture, you also produce 15% more gold from city connections. </Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_TRADING_JEANZ_SHORT">
<Text> City connections give you an extra 2 happiness, and 4 culture, you also produce 15% more gold from city connections. </Text>
</Row>
</Language_en_US>
</GameData>
 
Exactly the same problem here. Tried to create new civilization, did all the instructions, but civilization does not appear in the list :sad:

I am also having this problem. But I have modified the original input a lot. Really frustrating to work on a mod for hours, and then have it not work at all.:mad: Not even in the slightest.:cry:
 
My general advice in all such cases as new civilization mods is to start a thread in this forum asking for help. You are about 50 times more likely to get help that way than posting on this thread, because far more people are looking at that Creation & Customization forum for CIV5 than are ever looking at this thread.

Before doing so review this: whoward69's zip your mods and attach tutorial For instructions on how to attach the built version of the mod to a post.
Without the mod to look at it is nearly impossible to know which of the 50-odd 1st-time-modder mistakes you may have made. It is also much easier to "see" mistakes in the code when looking at the original code as opposed to the way the forum software displays it.

Also see these:
whoward69's what ModBuddy setting for what file types tutorial
whoward69's enable error logging tutorial
whoward69's DDS Texture (Image File) Creation and Usage for Beginners
FramedArchitect's Icon and Screen Pixel Dimension Reference tutorial

....................................................................................................................................

All that having been said, one of the mistakes I see in the code of Post #573 is this:
Code:
<PortraitIndex>0</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_LEGENDS</IconAtlas>
[COLOR="Red"]<PortraitIndex>6</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>[/COLOR]
The second set of commands will cause the game to discard the entire file where this repeat of commands occurs.
 
Thank you so much for the guidance! I apologize for my own naivety when dealing with this problem. I did not know where to go.
 
I have a question, if anybody is reading this...
Anyway, I am trying to make a mod in which the order of cities is changed. For example, I want Baghdad to appear first on the Arab city list. I know how to do it by "hacking" the xml file, but since I don't want to touch the original files, and do it all in a mod, I want to know how it can be done. I tried to search for the answer everywhere, but just couldn't find it in any tutorial.
 
I have a question, if anybody is reading this...
Anyway, I am trying to make a mod in which the order of cities is changed. For example, I want Baghdad to appear first on the Arab city list. I know how to do it by "hacking" the xml file, but since I don't want to touch the original files, and do it all in a mod, I want to know how it can be done. I tried to search for the answer everywhere, but just couldn't find it in any tutorial.

The best way to do it would be to copy the xml of the base city list for the civ that you want to edit. Then reorder them as desired. Finally, be sure to "delete" the base city data in your code.

I have done it before, but I don't have access the files at the moment. If I can find it, I will try to post it here as an example for you. In the meantime, you can use Kale's guide for basic functions like deleting to see what I am referring to.

Sent from my T-Mobile myTouch Q using Tapatalk 2
 
For example, I want Baghdad to appear first on the Arab city list.
You could delete all of Arabia's city names, then re-add them in the appropriate order.

With SQL syntax:
Code:
DELETE FROM Civilization_CityNames WHERE CivilizationType = 'CIVILIZATION_ARABIA';
INSERT INTO Civilization_CityNames (CivilizationType, CityName)
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_BAGHDAD' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_MECCA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_MEDINA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_DAMASCUS' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_NAJRAN' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_KUFAH' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_BASRA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_KHURASAN' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_ANJAR' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_FUSTAT' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_ADEN' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_YAMAMA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_MUSCAT' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_MANSURA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_BUKHARA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_SHIRAZ' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_MERW' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_BALKH' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_MOSUL' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_AYDAB' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_BAYT_RAS' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_SUHAR' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_TAIF' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_HAMA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_TABUK' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_SANAA' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_SHIHR' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_TRIPOLI' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_TUNIS' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_KAIROUAN' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_ALGIERS' UNION ALL
  SELECT 'CIVILIZATION_ARABIA', 'TXT_KEY_CITY_NAME_ORAN';

XML syntax is similar:
Code:
<GameData>
  <Civilization_CityNames>
    <Delete CivilizationType="CIVILIZATION_ARABIA" />
    <Row CivilizationType="CIVILIZATION_ARABIA" CityName="TXT_KEY_CITY_NAME_BAGHDAD" />
    <Row CivilizationType="CIVILIZATION_ARABIA" CityName="TXT_KEY_CITY_NAME_MECCA" />
    <Row CivilizationType="CIVILIZATION_ARABIA" CityName="TXT_KEY_CITY_NAME_MEDINA" />
    <Row CivilizationType="CIVILIZATION_ARABIA" CityName="TXT_KEY_CITY_NAME_DAMASCUS" />
    <Row CivilizationType="CIVILIZATION_ARABIA" CityName="TXT_KEY_CITY_NAME_NAJRAN" />
<!-- ... -->
    <Row CivilizationType="CIVILIZATION_ARABIA" CityName="TXT_KEY_CITY_NAME_ORAN" />
  </Civilization_CityNames>
</GameData>

If you have any questions, you should probably make your own thread in the main Creation & Customization subforum since this doesn't relate to the Modders Guide per se.
 
Top Bottom