Modders Guide to Civilization V

If someone else know how to solve this problem, please answer me, becouse I'd like to finish it as soon as possible. Thanks everyone
 
The error message talks about an invalid space in a name. So if you have something named e.g. "UNIT WHATEVER" try changing it to "UNIT_WHATEVER". Other than that you'd probably have to upload the actual XML files for someone here to be able to provide useful assistance.
 
If someone offers to help me finishing my brazilian civ, i'd share the credit with him. If someone show interest please reply this message. I would like to form a team if possible
 
You know, I guess my problem is in the mod building, becouse when I try to create the mod info file, it says tha there is something wrong.Can someone help me here?
 
Error 1 The "GenerateModInfo" task failed unexpectedly.
System.Xml.XmlException: The ' ' character, hexadecimal value 0x20, cannot be included in a name.
at System.Xml.XmlDocument.CheckName(String name)
at System.Xml.XmlElement..ctor(XmlName name, Boolean empty, XmlDocument doc)
at System.Xml.XmlDocument.CreateElement(String prefix, String localName, String namespaceURI)
at System.Xml.XmlDocument.CreateElement(String name)
at Firaxis.ModBuddy.Civ5ModBuildTasks.GenerateModInfo.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) C:\Program Files (x86)\MSBuild\Firaxis\ModBuddy\Civ5Mod.targets 78 10 Brazil
 
Can you explain what is wrong, becouse I don't know. If you want, I can send you the XML and Art files plus the project so you can take a look at it. I think the problem is at the generate build part.
thanks anyway
 
Oh, man, can't fix it and I don't know why! I never thought it would be easier to create the mod then fix it name! Please help me!
 
I'm having issues modifying icons where the game doesn't recognize the .DDS file I've created and instead fluctuates between Washington (value 0) and Songhai's leader (value 20). It's very odd.

I've been using photoshop's nvidia dds plugin to do my work, setting it to DXT1 1bit alpha with no mip mapping. Is there anything small that I could be overlooking?
 
I don't know, I've changed the name so many times, why don't you take a look? I would help me a lot
 
Okay Andrebr I have it. In the Mod Actions, on the line for Brazil.xml there is a space after the "UpdateDatabase" entry. Remove that space, save the project, and you should be able to build it. (see image below)

n2my3p.jpg


For anyone that gets this error in the future, the easiest thing to do to track it down is to look at the .civ5proj file in a text editor. This is how I found the problem for Andrebr because I saw the following:
Code:
      <Action>
        <Set>OnModActivated</Set>
        <Type>UpdateDatabase </Type>
        <FileName>XML/Civilizations/Brazil.xml</FileName>
      </Action>
 
Hmm, the switch to .dds 5 didn't solve the issue.

This is my code, using Kael's guide code as base:
Spoiler :

Code:
(CIV5IconTextureAtlases.xml)
<GameData>
	<IconTextureAtlases>
		<Row>
			<Atlas>NEW_CIV_COLOR_ATLAS</Atlas>
			<IconSize>256</IconSize>
			<Filename>CivSymbolsColorLegends256.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>NEW_CIV_COLOR_ATLAS</Atlas>
			<IconSize>128</IconSize>
			<Filename>CivSymbolsColorLegends128.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>NEW_CIV_COLOR_ATLAS</Atlas>
			<IconSize>80</IconSize>
			<Filename>CivSymbolsColorLegends80.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>NEW_CIV_COLOR_ATLAS</Atlas>
			<IconSize>64</IconSize>
			<Filename>CivSymbolsColorLegends64.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>NEW_CIV_COLOR_ATLAS</Atlas>
			<IconSize>45</IconSize>
			<Filename>CivSymbolsColorLegends45.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
		<Row>
			<Atlas>NEW_CIV_COLOR_ATLAS</Atlas>
			<IconSize>32</IconSize>
			<Filename>CivSymbolsColorLegends32.dds</Filename>
			<IconsPerRow>8</IconsPerRow>
			<IconsPerColumn>8</IconsPerColumn>
		</Row>
	</IconTextureAtlases>
</GameData>

(Civ_Celt.xml)
<GameData>
	<Civilizations>
		<Row>
			<Type>CIVILIZATION_CELT</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>NEW_CIV_COLOR_ATLAS</IconAtlas>
			<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
			<MapImage>MapEngland512.dds</MapImage>
			<DawnOfManQuote>TXT_KEY_CIV5_CELT_TEXT_1</DawnOfManQuote>
			<DawnOfManImage>DOM_Elizabeth.dds</DawnOfManImage>
		</Row>
	</Civilizations>
	<Civilization_CityNames>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_BIBRACTE</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_VIENNE</CityName>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<CityName>TXT_KEY_CITY_NAME_TOLOSA</CityName>
		</Row>
	</Civilization_CityNames>
	<Civilization_FreeBuildingClasses>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
		</Row>
	</Civilization_FreeBuildingClasses>
	<Civilization_FreeTechs>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<TechType>TECH_AGRICULTURE</TechType>
		</Row>
	</Civilization_FreeTechs>
	<Civilization_FreeUnits>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
			<Count>1</Count>
			<UnitAIType>UNITAI_SETTLE</UnitAIType>
		</Row>
	</Civilization_FreeUnits>
	<Civilization_Leaders>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<LeaderheadType>LEADER_BOUDICA</LeaderheadType>
		</Row>
	</Civilization_Leaders>
	<Civilization_Start_Region_Priority>
		<Row>
			<CivilizationType>CIVILIZATION_CELT</CivilizationType>
			<RegionType>REGION_FOREST</RegionType>
		</Row>

	</Civilization_Start_Region_Priority>
</GameData>


Like before, the celt civilization has the American icon in the pre-game civilization selection, has the Songhai icon while it's locked in, and then reverts back to the American icon within the game.

The Actions component is up-to-date, and all of the file structure checks out. Assuming DDS5 is kosher, that should be fine as well. I'm quite disgusted with firaxis' choice in moving to an IDE. I had no problems setting up my own directories and interdependencies in CIV4, but now this tool that's supposed to make things easier is instead making them thousands of times harder? :(

EDIT: issue solved, don't worry about it.
 
Back
Top Bottom