Modders Guide to Civilization V

this is a awesome guide to helping modders thanks for making it. i am however having a problem finding a way to change an existing resource. i found the steps for removing one and a tutorial on how to make a new one but but im just trying to play around with the numbers of what is already in the game. am i just overlooking that part in the guide?
 
im just trying to play around with the numbers of what is already in the game. am i just overlooking that part in the guide?

Unfortunately, changing resource distributions can't be done through XML; the quantity stubs in the XML aren't used. You have to edit AssignStartingPlots.lua for that, and I'd highly recommend NOT playing with that file. Ever. Run away while you still can.
This particular bit of code is just not very user-friendly at all, and it's just a pain to edit.
 
Having problems with the How To: Add a Unit portion... and apparently I suck at finding what I am look for in the Forum, so please bear with me because I am sure others have asked this before...

After I add the Civ5artdefines_units and unitmembers to my file, do I keep the entire file and simply add on to the end of the file for my mod? I ensure the 'Reload Unit System' is checked... it says in the guide the 'Update' function can not be used... do I need to tell the Mod Actions to do something else besides update database?

What am I missing? It was not spelled out real clear what exactly to do with the UnitArtInfo files.... or I am just a moron.

Steve
 
no update database for those two units files, but you need to set the VFS properties to "true" in moddbuddy for both of them.
 
That did the trick... not sure what I was missing earlier. I added the Civ5artdefines files directly to the XML file in the mod... had it under Units before.. not sure if that was doing anything. I know this wasn't posted in the right thread... I'll get better at using and navigating the forum as well :) Thank again.
 
Can anyone tell me where to find the specification for the .dds files for icon atlases and mapimage files? I have tried several options with the photoshop dds plugin and have also used the nVidia command line tools. No joy. I have tried several resolutions including those of the images in working mods. I have read the modder's guid and have not found the info there either.

Everything I have tried brings up a diaolg that says it cannot load the dds file. I have tried existing mapimages and they work. I have renamed the images and changed the xml to make sure that was not the problem and the message dialog changes to the new name. It always shows a red square for the map.

Thanks in advance for any help.

Mason
 
Back in December of last year, Firaxis released a patch that overhauled the "Virtual File System", a.k.a. VFS. Previously, it had defaulted to True, now it defaults to False.

In ModBuddy, right-click on a file and select "Properties". It'll open up a small window with ~6 fields. The last thing on the list will say "Import into VFS", defaulting to False. This needs to be set to TRUE for all of the following:
> Lua and non-GameData XML files that are intended to directly replace the originals in the vanilla game. (This mainly means any UI-related changes, but also applies to things like AssignStartingPlots or the art definition files when adding new units.)
> Any custom art assets you want to add, including DDS files and MP3 files.
> Any custom Lua files that will be used through an "include" command instead of an InGameUIAddin sort of declaration. (This mainly means utility functions.)
And it should be False for everything else. (GameData XML and SQL should be loaded through an OnModActivated command, executable custom Lua through an InGameUIAddin or the equivalent.)

So what's happening in your case is that you're not loading the DDS files into the VFS, so when the Icon Atlas XML is being loaded it can't find the files you'd intended. Just because you included the DDS files in the mod doesn't mean they're actually getting loaded as content.

This change occurred after Kael wrote the guide at the start of this thread, and so isn't mentioned anywhere within the guide. It's really the only major addition you need to keep track of.
 
hiho :)
thanks guys for all the info provided here, it helped me already for the art assets :)

still i cannot get the textkeys displayed correctly for my "Swabian empire" ^^

- the Civ is selectable, playable (i can start a game and build a city, haven`t tested further)
- the unique unit that is available at the start is there
- but every text is "TXT_KEY_CIV_[insert according definition] and not the string provided through the "gameText.xml"
aside from the city names. They are displayed correctly (at least the first one)
i tried to copy some of the not displayed strings to the top of the GameText.xml, to get around <row>-tag errors, but had no luck :/

here are some of the xml-files, i would apprechiate it if someone could look at it and tell me if theres something obvious i missed.
Import into VFS is false for all xml-files and true for the art-files.


Civ_Suebians.xml
Spoiler :
<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_SUEBIAN</Type>
<Description>TXT_KEY_CIV_SUEBIAN_DESC</Description>
<ShortDescription>TXT_KEY_CIV_SUEBIAN_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_SUEBIAN_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_SUEBIAN_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_SUEBIAN</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_DARK_LEMON</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_GERMANY</ArtDefineTag>
<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
<ArtStyleSuffix>_EURO</ArtStyleSuffix>
<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
<PortraitIndex>1</PortraitIndex>
<IconAtlas>CIV_COLOR_ATLAS_LEGENDS</IconAtlas>
<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>MapGermany512.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_SUEBIAN_TEXT_1</DawnOfManQuote>
<DawnOfManImage>DOM_Bizmark.dds</DawnOfManImage>
<DawnOfManAudio/>
</Row>
</Civilizations>
<Civilization_CityNames>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_STUTTGART</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_VAIHINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ULM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_NEUULM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_MANNHEIM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_KARLSRUHE</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_FREIBURG</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_HEIDELBERG</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_HEILBRONN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_PFORZHEIM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_NAGOLD</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_REUTLINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_CALW</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_BRUCHSAL</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_EBERBACH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_EHINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_DITZINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_FELLBACH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_FILDERSTADT</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_GAGGENAU</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_LEIMEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_LOERRACH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_PFULLINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_RASTATT</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_TETTNANG</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_WAIBLINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_WEINHEIM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_WEINSTADT</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_TUEBINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_MOSBACH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_WALDKIRCH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_STOCKACH</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_STUTENSEE</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_RAVENSBURG</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_RENNINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_OFFENBURG</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_METZINGEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_AALEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_ALBSTADT</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_WERTHEIM</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_WINNENDEN</CityName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<CityName>TXT_KEY_CITY_NAME_TUTTLINGEN</CityName>
</Row>
</Civilization_CityNames>
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<LeaderheadType>LEADER_WILHELM</LeaderheadType>
</Row>
</Civilization_Leaders>
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_WORKER</UnitClassType>
<UnitType>UNIT_SUEBIAN_WORKER</UnitType>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_SCOUT</UnitClassType>
<UnitType>SHREWD_SWABIAN</UnitType>
</Row>
<!--
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_WARRIOR</UnitClassType>
<UnitType>UNIT_STUBBORN_SWABIAN</UnitType>
</Row>
-->
<!--
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_SWORDSMAN</UnitClassType>
<UnitType>UNIT_SONS_OF_MORRIGAN</UnitType>
</Row>
-->
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_PIKEMAN</UnitClassType>
<UnitType>UNIT_GERMAN_LANDSKNECHT</UnitType>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_TANK</UnitClassType>
<UnitType>UNIT_GERMAN_PANZER</UnitType>
</Row>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<UnitClassType>UNITCLASS_MODERN_ARMOR</UnitClassType>
<UnitType>UNIT_Leoii</UnitType>
</Row>

</Civilization_UnitClassOverrides>
<Civilization_Start_Region_Priority>
<Row>
<CivilizationType>CIVILIZATION_SUEBIAN</CivilizationType>
<RegionType>REGION_FOREST</RegionType>
</Row>
</Civilization_Start_Region_Priority>
</GameData>


Leader_Wilhelm.xml
Spoiler :
<GameData>
<Leaders>
<Row>
<Type>LEADER_WILHELM</Type>
<Description>TXT_KEY_LEADER_WILHELM</Description>
<Civilopedia>TXT_KEY_LEADER_WILHELM_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIVILOPEDIA_LEADERS_WILHELM</CivilopediaTag>
<ArtDefineTag>Bismark_Scene.xml</ArtDefineTag>
<VictoryCompetitiveness>8</VictoryCompetitiveness>
<WonderCompetitiveness>7</WonderCompetitiveness>
<MinorCivCompetitiveness>3</MinorCivCompetitiveness>
<Boldness>8</Boldness>
<DiploBalance>3</DiploBalance>
<WarmongerHate>2</WarmongerHate>
<WorkAgainstWillingness>7</WorkAgainstWillingness>
<WorkWithWillingness>4</WorkWithWillingness>
<!-- <PortraitIndex>0</PortraitIndex>
<IconAtlas>LEADER_ATLAS_LEGENDS</IconAtlas>
-->
<PortraitIndex>8</PortraitIndex>
<IconAtlas>LEADER_ATLAS</IconAtlas>
</Row>
</Leaders>
<Leader_MajorCivApproachBiases>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_WAR</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_HOSTILE</MajorCivApproachType>
<Bias>7</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_DECEPTIVE</MajorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_GUARDED</MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_AFRAID</MajorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_FRIENDLY</MajorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MajorCivApproachType>MAJOR_CIV_APPROACH_NEUTRAL</MajorCivApproachType>
<Bias>4</Bias>
</Row>
</Leader_MajorCivApproachBiases>
<Leader_MinorCivApproachBiases>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_IGNORE</MinorCivApproachType>
<Bias>4</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_FRIENDLY</MinorCivApproachType>
<Bias>5</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_PROTECTIVE</MinorCivApproachType>
<Bias>3</Bias>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<MinorCivApproachType>MINOR_CIV_APPROACH_CONQUEST</MinorCivApproachType>
<Bias>8</Bias>
</Row>
</Leader_MinorCivApproachBiases>
<Leader_Flavors>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_RANGED</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_MOBILE</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_NAVAL_RECON</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_NAVAL_GROWTH</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_NAVAL_TILE_IMPROVEMENT</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_AIR</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_EXPANSION</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_TILE_IMPROVEMENT</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_INFRASTRUCTURE</FlavorType>
<Flavor>4</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_PRODUCTION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_GOLD</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_SCIENCE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_HAPPINESS</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_WONDER</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_RELIGION</FlavorType>
<Flavor>5</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_DIPLOMACY</FlavorType>
<Flavor>7</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_SPACESHIP</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<FlavorType>FLAVOR_WATER_CONNECTION</FlavorType>
<Flavor>6</Flavor>
</Row>
</Leader_Flavors>
<Leader_Traits>
<Row>
<LeaderType>LEADER_WILHELM</LeaderType>
<TraitType>TRAIT_BATTLE_FURY</TraitType>
</Row>
</Leader_Traits>
</GameData>


GameText.xml
Spoiler :
<GameData>
<Language_en_US>
<Row Tag="TXT_KEY_LEADER_WILHELM">
<Text>Wilhelm</Text>
</Row>
<Row Tag="TXT_KEY_CIV_SUEBIAN_DESC">
<Text>Swabian Empire</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_BATTLE_FURY">
<Text>Melee, Mounted and Gun units can make 2 attacks per round.</Text>
</Row>

<Row Tag="TXT_KEY_CITY_NAME_STUTTGART">
<Text>Stuttgart</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_VAIHINGEN">
<Text>Vaihingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_ULM">
<Text>Ulm</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_NEUULM">
<Text>Neu-Ulm</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_MANNHEIM">
<Text>Mannheim</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_KARLSRUHE">
<Text>Karlsruhe</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_FREIBURG">
<Text>Freiburg</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_HEIDELBERG">
<Text>Heidelberg</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_HEILBRONN">
<Text>Heilbronn</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_PFORZHEIM">
<Text>Pforzheim</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_NAGOLD">
<Text>Nagold</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_REUTLINGEN">
<Text>Reutlingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_CALW">
<Text>Calw</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BRUCHSAL">
<Text>Bruchsal</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_EBERBACH">
<Text>Eberbach</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_EHINGEN">
<Text>Ehingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_DITZINGEN">
<Text>Ditzingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_FELLBACH">
<Text>Fellbach</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_FILDERSTADT">
<Text>Filderstadt</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_GAGGENAU">
<Text>Gaggenau</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_LEIMEN">
<Text>Leimen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_SANDHAUSEN">
<Text>Sandhausen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_LOERRACH">
<Text>Loerrach</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_PFULLINGEN">
<Text>Pfullingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_RASTATT">
<Text>Rastatt</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TETTNANG">
<Text>Tettnang</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_WAIBLINGEN">
<Text>Waiblingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_WEINHEIM">
<Text>Weinheim</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_WEINSTADT">
<Text>Weinstadt</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TUEBINGEN">
<Text>Tuebingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_MOSBACH">
<Text>Mosbach</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_WALDKIRCH">
<Text>Tiernes</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_STOCKACH">
<Text>Stockach</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_STUTENSEE">
<Text>Morisunum</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_RAVENSBURG">
<Text>Ravensburg</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_RENNINGEN">
<Text>Renningen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_OFFENBURG">
<Text>Offenburg</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_METZINGEN">
<Text>Metzingen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_AALEN">
<Text>Aalen</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BACKNANG">
<Text>Backnang</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_BRETTEN">
<Text>Bretten</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_ALBSTADT">
<Text>Albstadt</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_WERTHEIM">
<Text>Wertheim</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_WINNENDEN">
<Text>Winnenden</Text>
</Row>
<Row Tag="TXT_KEY_CITY_NAME_TUTTLINGEN">
<Text>Tuttlingen</Text>
</Row>
<Row Tag="TXT_KEY_CIV_SUEBIAN_ADJECTIVE">
<Text>Swabian</Text>
</Row>

<Row Tag="TXT_KEY_CIV_SUEBIAN_SHORT_DESC">
<Text>Swabia</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_SUEBIAN_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_SUEBIAN_TEXT_1">
<Text>Rubbish Text, [newline]needs to be replaced</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_WILHELM_HEADING_1">
<Text>History</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_WILHELM_TEXT_1">
<Text>Rubbish Text, needs to be replaced</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_WILHELM_LIVED">
<Text>25 - 62 AD</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_WILHELM_NAME">
<Text>Wilhelm</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_LEADERS_WILHELM_SUBTITLE">
<Text>Leader of the Swabians</Text>
</Row>

<Row Tag="TXT_KEY_MAP_OPTIONS_HIDE_UNIT_ICON">
<Text>Hide Unit Icons</Text>
</Row>
<Row Tag="TXT_KEY_MOD_LIST">
<Text>Mod List</Text>
</Row>
<Row Tag="TXT_KEY_POP_MOD_LIST">
<Text>List of Installed Mods</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_BATTLE_FURY">
<Text>Melee, Mounted and Gun units can make 2 attacks per round.</Text>
</Row>
<Row Tag="TXT_KEY_TRAIT_BATTLE_FURY_SHORT">
<Text>Battle Fury</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_STUBBORN_SWABIAN">
<Text>Stubborn Swabian</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_STUBBORN_SWABIAN">
<Text>Veerry stubborn. gets huge Bonusses if fortifying.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_SONS_OF_MORRIGAN">
<Text>Morrigan is the goddess of prophecy, war and death on the battlefield. Swordsman devoted to her service sacrifice their defeated enemies to her and are energized (healed) by the ritual.</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_SONS_OF_MORRIGAN">
<Text>Sons of Morrigan</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_SUEBIAN_WORKER">
<Text>Ein fleissiger Schwabe lässt sich durch nichts beirren ...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_SUEBIAN_WORKER">
<Text>Diligent Swabian</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_SHREWD_SWABIAN">
<Text>Shrewd Swabian</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_SHREWD_SWABIAN">
<Text>Ein gewitzter Schwabe flitzt umher ...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_PLAENKLER">
<Text>Plänkler</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_PLAENKLER">
<Text>Late medieval scout. Ideal unit for quick hit-and-run tactics...</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_Leoii">
<Text>Leopard 2A5</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_Leoii">
<Text>Replaces the modern armor, one tile faster</Text>
</Row>
</Language_en_US>
</GameData>


if desired i`ll be happy to attach/upload the whole mod if someone is willing to help me fix it :)
 
- but every text is "TXT_KEY_CIV_[insert according definition] and not the string provided through the "gameText.xml"

What this means is that one of your text keys is a duplicate of one already in the game. If one of your cities appears correct, then that's probably the duplicate (since it's taking the value from the core game or some other mod, instead of from your text file.) The most common offenders for this issue are city names, since you might be adding some city that's ten or twelve spots down the line for one of the included civs.

Of course, you could have found this yourself simply by opening the Database.log file, where it'll say "TXT_KEY_whatever is already defined" in nice, big letters. Seriously, that's what the log files are FOR, so try using those first; it'll help you get your mods done much, much faster if you don't have to wait a day or two to get an answer to every little conflict.

Also, for future reference, when you want to ask questions, do NOT stick it in a reference thread like this. Create a new question thread in the main C&C forum instead.
 
Hi everyone,

Does anyone know how to create a land unit which can only fire on naval unit,i.e the coast-line missile defense system.
 
Just what I was looking for.A beginners modder guide that allows you to make mods without having to go through any trouble at all.Thanks
 
Ok, I'm at a loss here... I tried to search for the proper traits in the xml's, but didn't find what I was looking for.

I wanted to create the trait "Reconquista" for my portuguese mod, having a 25% fighting bonus in your own territory and a 75% bonus for reconquering your captured cities.

Anyone care to help me out, please?
 
Anyone care to help me out, please?

Here's the basic rule for XML functionality: if it's not in the file already, you can't do it. If the Traits file doesn't have tables or stubs that do what you want, then you can't do what you want. Change your design to something that IS available in the table, give up on it, or learn how to program in Lua. A lot of things can be done through Lua, but not all, not easily, and not in a way the AI can understand, so it's generally a last resort.
 
That said I think you could do most of that via the use of a promotion, and grant the promotion for free. City bonus would have to be generic though, not just for retaking your lost cities.

Right. It wouldn't be hard to create a custom promotion that does some things, like the bonus within your own territory, because that ability is already in the Promotions table. But nothing in the XML specifies any distinction between attacking an enemy city he founded and attacking an enemy city that was once yours. There ARE functions in the Lua that allow you to distinguish the two, but there are many, many logistical issues with trying to give a temporary bonus in that situation.

And anyway, if you have questions like this that have nothing to do with the Modder's Guide, you should go create a post in the C&C forum, and not here. You'll generally get better answers that way.
 
Well, that was enlightening. :) I'll have to work my way around it... I already guessed the part about things not existing in the XML but I wasn't sure if I overlooked something, since I'm obviously still new at this. I didn't create a particular mod thread yet since I'm so early in the production but it's probably wise to open one, yes.

That being said, thanks for your replies!
 
well i decided to sit down and make a mod for civ V but i seem to be missing a few key things to do that. for one i can not find modbuddy anywhere, also there are no xml files for civ V on my system. all i have is the civ 5 folder under my games in the document folder. there is also nothing i can find on the disk for modbuddy or xml files. now i think i could use one of the mods ive downloaded as starting point if i can find modbuddy. so where can i download that at?
 
for one i can not find modbuddy anywhere

From here:
  • To install, simply navigate to the "Tools" section of your Steam game library and find "Sid Meier's Civilization V SDK" in the list.
  • Install that.
  • Create stuff.
  • Profit*.
...

*Profit not guaranteed or likely.

Also note (see here):
You need to have installed Visual Studio 2010 Isolated shell program to run Mod Buddy. You can download it from microsoft, Microsoft Visual Studio 2010 Shell (Isolated) Redistributable Package.

...

also there are no xml files for civ V on my system.

Use the Nexus tool (also installed with the SDK) to unpack them. See here:
In the top menu select Nexus > Script Browser > Extract PAK Files. This will unpack all the assets to the directories ...sid meier's civilization v\resource. There are 3 directories Common, DX9 and dx9_low. The 3d art for units, leaders, terrain and buildings is all in together with no subdivision so you'll have to hunt through to find what you are interested in.
 
sorry been looking for a while and cant find what it mentions hear at all
"Firaxis has helped us out by providing icon templates in the <SDK install directory>\Art\ directory as .psd files. There are seven templates files, one for 32x32 icons, one for 45x45, 64x64, 80x80, 128x128, 214x214 and 256x256."
Am I missing some big point about SDK?
 
Back
Top Bottom