Issues with Custom Civ Mod

Ricarius

Chieftain
Joined
Sep 16, 2015
Messages
20
Location
Orlando, FL
Before I state my problem, I'd like to make it clear that I have had prior experience with modding in Civ V, specifically when it comes to adding in custom civilizations, and I have created a few other successful mods of this type which function flawlessly in-game.

I found a mod on Steam that I really like, but the problem is that it is outdated and obsolete, and the author is not doing any further work to maintain it. Here is a link to the mod: http://steamcommunity.com/sharedfiles/filedetails/?id=117943741

I decided to take the primary mod components and import them into a new solution in ModBuddy, so I could manually update and revise it for personal use, as well as clean up anything that isn't supposed to be there.

I have cross-checked the mod components with other (functioning) mods that I have made, and I see no immediate discrepancies besides what can't be immediately tended to. For those discrepancies that did need attention, I have attempted to work around them (among them being that each icon has its own separate .dds file, instead of all the icons being part of a single .dds file for each size) to the best of my abilities.

After doing the usual things that a rookie might miss (VFS to true for most files, plugging in OnModActivation -> UpdateDatabase actions, building the solution before each test), I see that the mod is listed in the Modlist for Civ V. I have tried opening it alongside other mods as well as by itself, but either way, when I go to set up a new game, the civilization in the mod itself does not show up when I try to select it from the drop-down menu.

Naturally, I went back to check for typos, and found very few. After correcting the ones I found, no change. I also looked in the database.log and xml.log files for clues, nothing seemed to be out of the ordinary. After checking and re-checking for any problems, I remain baffled as to why this particular mod will not function while my other modded civilizations (some of them also ripped from obsolete Steam mods and updated for personal use) function perfectly. My biggest theory is that it has something to do with the .dds files in this mod and how they've been organized, but I'm not entirely sure on that.

I have uploaded a .zip file containing the main components of the mod, perhaps someone here might be able to find something I've missed?

Thanks in advance for the assistance.
 

Attachments

  • Alternia (Non-functioning mod).zip
    9 MB · Views: 53
  1. See whoward69's what ModBuddy setting for what file types tutorial because you have multiple incorrect settings within modbuddy for your xml files. None of the incorrect settings for xml will make the mod not function, but they are still unnecessary.
  2. See #4 here: Common Novice-Modder Mistakes -- "INCORRECTLY USING COLUMN NAMES"
    Code:
    	<Civilization_FreeBuildingClasses>
    		<Row>
    			<CivilizationType>CIVILIZATION_ALTERNIA</CivilizationType>
    			<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
    			[COLOR="Red"]<BuildingCLassType>BUILDINGCLASS_BARRACKS</BuildingCLassType>[/COLOR]
    		</Row>
    	</Civilization_FreeBuildingClasses>
    This error in your code is causing the game to discard the entire xml file where it occurs. Since this is the file that defines your civilization, your civilization fails.
  3. Also, related to the previous, this is how you correctly give a barracks in all cities, so you do not even need the barracks statement in the previous item:
    Code:
    	<Traits>
    		<Row>
    			<Type>TRAIT_WILL_OF_THE_BARONESS</Type>
    			<Description>TXT_KEY_TRAIT_WILL_OF_THE_BARONESS</Description>
    			<ShortDescription>TXT_KEY_TRAIT_WILL_OF_THE_BARONESS_SHORT</ShortDescription>
    			<FreeBuilding>BUILDING_BARRACKS</FreeBuilding>
    		</Row>
    	</Traits>
    Your code within table <Traits> is fine the way you have it.
  4. This is a problem both in the definition of your civilization and within the Civilizations_Alternia.xml file because the game already has an "Atlas" defined as CIV_ALPHA_ATLAS:
    Spoiler IconTextureAtlases :
    Code:
    		<Row>
    			<Atlas>CIV_ALPHA_ATLAS</Atlas>
    			<IconSize>64</IconSize>
    			<Filename>CivSymbolWhite64_DLC_04.dds</Filename>
    			<IconsPerRow>2</IconsPerRow>
    			<IconsPerColumn>2</IconsPerColumn>
    		</Row>
    		<Row>
    			<Atlas>CIV_ALPHA_ATLAS</Atlas>
    			<IconSize>48</IconSize>
    			<Filename>CivSymbolWhite48_DLC_04.dds</Filename>
    			<IconsPerRow>2</IconsPerRow>
    			<IconsPerColumn>2</IconsPerColumn>
    		</Row>
    		<Row>
    			<Atlas>CIV_ALPHA_ATLAS</Atlas>
    			<IconSize>32</IconSize>
    			<Filename>CivSymbolWhite32_DLC_04.dds</Filename>
    			<IconsPerRow>2</IconsPerRow>
    			<IconsPerColumn>2</IconsPerColumn>
    		</Row>
    		<Row>
    			<Atlas>CIV_ALPHA_ATLAS</Atlas>
    			<IconSize>24</IconSize>
    			<Filename>CivSymbolWhite24_DLC_04.dds</Filename>
    			<IconsPerRow>2</IconsPerRow>
    			<IconsPerColumn>2</IconsPerColumn>
    		</Row>
    		<Row>
    			<Atlas>CIV_ALPHA_ATLAS</Atlas>
    			<IconSize>16</IconSize>
    			<Filename>CivSymbolWhite16_DLC_04.dds</Filename>
    			<IconsPerRow>2</IconsPerRow>
    			<IconsPerColumn>2</IconsPerColumn>
    		</Row>
    Spoiler In Your Civ :
    Code:
    	<Civilizations>
    		<Row>
    			<Type>CIVILIZATION_ALTERNIA</Type>
    			<Description>TXT_KEY_ALTERNIA_DESC</Description>
    			<ShortDescription>TXT_KEY_ALTERNIA_SHORT_DESC</ShortDescription>
    			<Adjective>TXT_KEY_ALTERNIA_ADJECTIVE</Adjective>
    			<Civilopedia>TXT_KEY_ALTERNIA_PEDIA</Civilopedia>
    			<CivilopediaTag>TXT_KEY_CIVILOPEDIA_ALTERNIA</CivilopediaTag>
    			<DefaultPlayerColor>PLAYERCOLOR_ALTERNIA</DefaultPlayerColor>
    			<ArtDefineTag>ART_DEF_CIVILIZATION_ALTERNIA</ArtDefineTag>
    			<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
    			<ArtStyleSuffix>_EURO</ArtStyleSuffix>
    			<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
    			<PortraitIndex>0</PortraitIndex>
    			<IconAtlas>CIV_COLOR_ATLAS_CONDESCE</IconAtlas>
    			<AlphaIconAtlas>[color="red"]CIV_ALPHA_ATLAS[/color]</AlphaIconAtlas>
    			<MapImage>MapAlternia.dds</MapImage>
    			<DawnOfManQuote>TXT_KEY_DAWN_OF_MAN_ALTERNIA_TEXT</DawnOfManQuote>
    			<DawnOfManImage>condesce_dom.dds</DawnOfManImage>
    			<DawnOfManAudio></DawnOfManAudio>
    			<SoundtrackTag>Rome</SoundtrackTag>
    		</Row>
    	</Civilizations>
    Here is the definition of the Firaxis-Supplied Civilization America:
    Spoiler Firaxis Code :
    Code:
    	<Civilizations>
    		<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>[color="red"]CIV_ALPHA_ATLAS[/color]</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>
    The game simply will not accept repeats of information it already has.
  5. Mis-Match of Leader Designation:
    Code:
    	<Civilization_Leaders>
    		<Row>
    			<CivilizationType>CIVILIZATION_ALTERNIA</CivilizationType>
    			<LeaderheadType>LEADER_ALTERNIA_CONDESCE</LeaderheadType>
    		</Row>
    	</Civilization_Leaders>
    Code:
    	<Leaders>
    		<Row>
    			<Type>ALTERNIA_CONDESCE</Type>
    Change all your references to match to "LEADER_ALTERNIA_CONDESCE", especially as within your file DiploResponses_Condesce.xml you have everywhere used
    Code:
    <LeaderType>LEADER_ALTERNIA_CONDESCE</LeaderType>
  6. If it were me I would also change all TXT_KEY_SOMETHING to conform to the pattern of "TXT_KEY_LEADER_SOMEBODY_SOMETHING", and similar for the civilzation TXT_KEYS
  7. Not saying you don't have other mistakes, but those were the ones I saw
 
Well, I had a feeling it would be something idiotic that was right under my nose. I guess I was too busy looking at the IconTextureAtlases that I neglected the other parts. It's working now, so I can finally start getting to work with more proper revisions. Thanks a lot for the help.
 
Top Bottom