Modders Guide to Civilization V

Since you are using Washington as your leader, it will show up as a second Washington, so just glancing could fool you. You might be better creating a new leader too, but using everything stock aside from the name.

I don't really see much in your file, at least nothing that stands out, but there are other areas that could be causing the issue. In mod buddy with the update commands, how you are loading the mod, are you activating it in game, etc. Lots of places that could cause that outside of the files.

hmm... I checked the civ list very thoroughly in the startup screen and advanced start up screen expecting to see "Washington - CyVyr". Is it not possible to have a leader show up twice? I figured if I change the leader name then I would have to deal with the xml for a new leader which is what I eventually planned on doing but I was trying to minimize the points of failure for now since I'm new to this.

I have the two xml files set to updatedatabase onmodactivated. I double checked the file pathways. I built the mod. It shows up in the game and I check the green circle to activate it.

I did not reload any systems (landmark, unit, strategic view) in the mod info tab, since I haven't edited any of those things yet.

I can't think of anything else.

I'm trying to simply add a civ without description error, and go from there. I'm new to code, and copying the examples was a good way to learn! I'll try to see what I can find..

Thanks for letting me know.

Good luck. If you figure it out, maybe you can show me because it is just not working for me at this point.
 
Right, I think I see what's going on there first part looks a bit new/garbled.

Does that work?

Ta

Did a month ago. Can't say I've tried it lately, but I can't think of any reason it wouldn't. It's just two lists. The first list gives the key names, the second list gives the values, ie: first-list: 1k, 2k, 3k, ..., second-list: 1v, 2v, 3v, ....

I have a couple key-value pairs commented out, but that doesn't hurt anything.
 
That's direct SQL is it?
 
Yep. Loaded from the action tab in modbuddy, same as XML files. There are dynamic database commands available in Lua as well if you prefer that approach. Just do a quick forums search.
 
Ta.....!
 
I don't really see much in your file, at least nothing that stands out, but there are other areas that could be causing the issue. In mod buddy with the update commands, how you are loading the mod, are you activating it in game, etc. Lots of places that could cause that outside of the files.

I finally found it. One missing "i" in the file path for the civilizations.xml file. I had checked it multiple times and still missed it. Thanks for the help.
 
Can't get that to work either.

New project > drop that into an sql file, link to that in the 'actions' tab and then build....

yeah?
 
No matter what I do, I can't get changes to show up in my mod. Lots of others have had this problem due to various issues, but I can't figure out what I'm doing wrong. My XML, in this case, might simply not actually do what I think it does, but before I move on and create stuff, I want to make sure I can get it to show up in the game.

All I want to do is delete all the Civs and add America and Arabia back in. It doesn't have to be a playably functional thing, I just want visible changes to come up so I know I'm referring to things correctly. If my XML doesn't work, feel free to give me a piece of XML that I can use that'll have an immediate effect so I can check if things are routed correctly (it can rename a Civ or whatever, as long as I can see it).

Here's what my actions tab looks like: http://img844.imageshack.us/img844/303/imageph.png


Here's my sole XML file:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 1/11/2011 10:56:00 PM -->
<GameData>
	<Civilizations>
		
		<Delete />
		
	<Row>
		<ID>0</ID>
		<Type>CIVILIZATION_AMERICA</Type>
		<Description>TXT_KEY_CIV_AMERICA_DESC</Description>
		<ShortDescription>TXT_KEY_CIV_AMERICA_SHORT_DESC</ShortDescription>
		<Adjective>TXT_KEY_CIV_AMERICA_ADJECTIVE</Adjective>
		<CivilopediaTag>TXT_KEY_CIV5_UNITEDSTATES</CivilopediaTag>
		<DefaultPlayerColor>PLAYERCOLOR_AMERICA</DefaultPlayerColor>
		<ArtDefineTag>ART_DEF_CIVILIZATION_AMERICA</ArtDefineTag>
		<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
		<PortraitIndex>0</PortraitIndex>
		<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>
		<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
		<MapImage>MapAmerica512.dds</MapImage>
		<ArtStyleSuffix>_EURO</ArtStyleSuffix>
		<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
		<DawnOfManQuote>TXT_KEY_CIV5_DAWN_UNITEDSTATES_TEXT</DawnOfManQuote>
		<DawnOfManImage>DOM_Washington.dds</DawnOfManImage>
		<DawnOfManAudio>AS2D_DOM_SPEECH_UNITED_STATES</DawnOfManAudio>
	</Row>
	</Civilizations>
	
	<Civilization_CityNames>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_WASHINGTON</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_NEW_YORK</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_BOSTON</CityName>
		</Row>
	</Civilization_CityNames>
	
	<Civilization_FreeBuildingClasses>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
		</Row>
	</Civilization_FreeBuildingClasses>
	
	<Civilization_FreeTechs>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<TechType>TECH_AGRICULTURE</TechType>
		</Row>
	</Civilization_FreeTechs>
	
	<Civilization_FreeUnits>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
			<Count>1</Count>
			<UnitAIType>UNITAI_SETTLE</UnitAIType>
		</Row>
	</Civilization_FreeUnits>
	
	<Civilization_Leaders>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<LeaderheadType>LEADER_WASHINGTON</LeaderheadType>
		</Row>
	</Civilization_Leaders>

	<Civilization_UnitClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<UnitClassType>UNITCLASS_BOMBER</UnitClassType>
			<UnitType>UNIT_AMERICAN_B17</UnitType>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<UnitClassType>UNITCLASS_MUSKETMAN</UnitClassType>
			<UnitType>UNIT_AMERICAN_MINUTEMAN</UnitType>
		</Row>
	</Civilization_UnitClassOverrides>

	<Civilization_Start_Along_River>
		<Row>
			<CivilizationType>CIVILIZATION_AMERICA</CivilizationType>
			<StartAlongRiver>true</StartAlongRiver>
		</Row>
	</Civilization_Start_Along_River>

	
	<Row>
		<Type>CIVILIZATION_ARABIA</Type>
		<Description>TXT_KEY_CIV_ARABIA_DESC</Description>
		<ShortDescription>TXT_KEY_CIV_ARABIA_SHORT_DESC</ShortDescription>
		<Adjective>TXT_KEY_CIV_ARABIA_ADJECTIVE</Adjective>
		<CivilopediaTag>TXT_KEY_CIV5_ARABIA</CivilopediaTag>
		<DefaultPlayerColor>PLAYERCOLOR_ARABIA</DefaultPlayerColor>
		<ArtDefineTag>ART_DEF_CIVILIZATION_ARABIA</ArtDefineTag>
		<ArtStyleType>ARTSTYLE_MIDDLE_EAST</ArtStyleType>
		<ArtStyleSuffix>_AFRI</ArtStyleSuffix>
		<ArtStylePrefix>AFRICAN </ArtStylePrefix>
		<PortraitIndex>1</PortraitIndex>
		<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>
		<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
		<MapImage>MapAbbasid512.dds</MapImage>
		<DawnOfManQuote>TXT_KEY_CIV5_DAWN_ARABIA_TEXT</DawnOfManQuote>
		<DawnOfManImage>DOM_AlRashid.dds</DawnOfManImage>
		<DawnOfManAudio>AS2D_DOM_SPEECH_ARABIA</DawnOfManAudio>
	</Row>

	<Civilization_BuildingClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_MARKET</BuildingClassType>
			<BuildingType>BUILDING_BAZAAR</BuildingType>
		</Row>
	</Civilization_BuildingClassOverrides>

	<Civilization_CityNames>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_MECCA</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_MEDINA</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_DAMASCUS</CityName>
		</Row>
	</Civilization_CityNames>

	<Civilization_FreeBuildingClasses>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
		</Row>
	</Civilization_FreeBuildingClasses>

	<Civilization_FreeTechs>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<TechType>TECH_AGRICULTURE</TechType>
		</Row>
	</Civilization_FreeTechs>

	<Civilization_FreeUnits>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
			<Count>1</Count>
			<UnitAIType>UNITAI_SETTLE</UnitAIType>
		</Row>
	</Civilization_FreeUnits>

	<Civilization_Leaders>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<LeaderheadType>LEADER_HARUN_AL_RASHID</LeaderheadType>
		</Row>
	</Civilization_Leaders>

	<Civilization_UnitClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<UnitClassType>UNITCLASS_KNIGHT</UnitClassType>
			<UnitType>UNIT_ARABIAN_CAMELARCHER</UnitType>
		</Row>
	</Civilization_UnitClassOverrides>

	<Civilization_Start_Region_Priority>
		<Row>
			<CivilizationType>CIVILIZATION_ARABIA</CivilizationType>
			<RegionType>REGION_DESERT</RegionType>
		</Row>
	</Civilization_Start_Region_Priority>
	
</GameData>

The mod shows up in the browser and when I click on it to activate it and go to set-up game, it pauses for a bit as if it's making changes, but nothing changes. All the civs are selectable and Arabia and America are both there exactly once.

Does anyone know what I'm doing wrong? I know this isn't the place for questions, but I've double checked to make sure I'm not making mistakes other people had and I haven't come across a solution yet.
 
Lately people have been having an issue that is fixed by setting VSF to true in the file properties in ModBuddy.
 
Lately people have been having an issue that is fixed by setting VSF to true in the file properties in ModBuddy.

I think that was a problem I was having and after I fixed that I fixed other little errors and I got a change to appear. Thank you very much!
 
I loved the mods for Civ4, so thought I'd teach myself a few things on Civ5, but I can't get a single thing to work. I can install others' mods fine, but I can't even get a building to appear. I even resorted to adding Kael's palisade from the tutorial, followed it to the letter, and it just doesn't work.

The mod's there in the mod list, and activated, but isn't in the game itself. What do I have to do to make it work? I've been through every page in this thread, and can't work it out...

Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<Mod id="8d673aca-19e3-4c3f-9ba5-e42d47f6eeed" version="1">
<Properties>
<Name>Palisade</Name>
<Stability>Alpha</Stability>
<Teaser>Adds the pallisade to the game - from Kael's modding guide.</Teaser>
<Description>Adds the pallisade to the game - from Kael's modding guide.</Description>
<Authors>Kael</Authors>
<HideSetupGame>0</HideSetupGame>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadStrategicViewSystem>0</ReloadStrategicViewSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="CE0D006BC50BEB1355740B63B6B2FA3C" import="0">XML/CIV5Buildings.xml</File>
<File md5="3BE6E4160F038CF17A33977AF7E704E1" import="0">XML/CIV5BuildingClasses.xml</File>
<File md5="339155F90EB4669212F52F7E92D3FD1E" import="0">XML/Civ5GameText.xml</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>CIV5BuildingClasses.xml</UpdateDatabase>
<UpdateDatabase>CIV5Buildings.xml</UpdateDatabase>
<UpdateDatabase>Civ5GameText.xml</UpdateDatabase>
</OnModActivated>
</Actions>
</Mod>
 
I loved the mods for Civ4, so thought I'd teach myself a few things on Civ5, but I can't get a single thing to work. I can install others' mods fine, but I can't even get a building to appear. I even resorted to adding Kael's palisade from the tutorial, followed it to the letter, and it just doesn't work.

The mod's there in the mod list, and activated, but isn't in the game itself. What do I have to do to make it work? I've been through every page in this thread, and can't work it out...

Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<Mod id="8d673aca-19e3-4c3f-9ba5-e42d47f6eeed" version="1">
<Properties>
<Name>Palisade</Name>
<Stability>Alpha</Stability>
<Teaser>Adds the pallisade to the game - from Kael's modding guide.</Teaser>
<Description>Adds the pallisade to the game - from Kael's modding guide.</Description>
<Authors>Kael</Authors>
<HideSetupGame>0</HideSetupGame>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadStrategicViewSystem>0</ReloadStrategicViewSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="CE0D006BC50BEB1355740B63B6B2FA3C" import="0">XML/CIV5Buildings.xml</File>
<File md5="3BE6E4160F038CF17A33977AF7E704E1" import="0">XML/CIV5BuildingClasses.xml</File>
<File md5="339155F90EB4669212F52F7E92D3FD1E" import="0">XML/Civ5GameText.xml</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>CIV5BuildingClasses.xml</UpdateDatabase>
<UpdateDatabase>CIV5Buildings.xml</UpdateDatabase>
<UpdateDatabase>Civ5GameText.xml</UpdateDatabase>
</OnModActivated>
</Actions>
</Mod>

Kael's guide is now out of date. With most files (just do it for all to be safe) you need to set "Import into VFS" to true. You find this option in the bottom right panel of modbuddy (the properties window) when you select the file in the list.
 
One wishes ModBuddy would set VFS true for all files by default. The developers approach to the modding community reminds me of my former computer science college program. It's a filtering process, weeding out the uncommitted.

Just one more thing to trip up newbies for no real reason. :P
 
Back
Top Bottom