Two Issues with 2nd Attempt at Custom Civ

679x

Warlord
Joined
Mar 30, 2017
Messages
289
Ok, so I first tried to make a Monaco mod (which I still am having errors with) and now I'm trying to make a Samoa mod with simple abilities, but I'm getting some errors. First, in Database.log, I'm getting this error:

[1059625.196] [Gameplay] ERROR: table Colors has no column named Color
[1059625.200] [Gameplay]: In Query - insert into Colors('Type', 'Color') values (?, ?);
[1059625.200] [Gameplay]: In XMLSerializer while updating table Colors from file SamoaAbilities.xml.

Here is the code that contains all the info related to colors:
Spoiler SamoaAbilities code :

<Colors>
<Row>
<Type>COLOR_PLAYER_CW_SAMOA_PRIMARY</Type>
<Color>30,0,229,255</Color>
</Row>
<Row>
<Type>COLOR_PLAYER_CW_SAMOA_SECONDARY</Type>
<Color>0,218,229,255</Color>
</Row>
</Colors>
<PlayerColors>
<Row>
<Type>LEADER_CW_TANUMAFILI_II</Type>
<Usage>Unique</Usage>
<PrimaryColor>COLOR_PLAYER_CW_SAMOA_PRIMARY</PrimaryColor>
<SecondaryColor>COLOR_PLAYER_CW_SAMOA_SECONDARY</SecondaryColor>
<TextColor>COLOR_PLAYER_WHITE_TEXT</TextColor>
</Row>
</PlayerColors>

I copied the colour code from the Australia DLC that I have installed, but I'm getting the error mentioned above, and I don't understand what the problem is. Everything looks the same as the Australia DLC's code, just with different values.

Next, and what is probably a larger issue, is this:
[1062072.807] Status: UpdateDatabase - Loading SamoaAbilities.xml
[1062072.840] Warning: UpdateDatabase - Error Loading XML.
None of my abilities are being applied, and I suspect that this is why. But hey, what do I know?

Here is the entire code of the SamoaAbilities.xml file, which is what contains all the non-Modbuddy custom stuff like modifiers and whatnot:
Spoiler FULL SamoaAbilities code :

<?xml version="1.0" encoding="utf-8"?>
<GameData>
<Types>
<Row Type="CIVILIZATION_CW_SAMOA" Kind="KIND_CIVILIZATION"/>
<Row Type="TRAIT_CIVILIZATION_CW_SAMOA" Kind="KIND_TRAIT"/>
<Row Type="TRAIT_CIVILIZATION_IMPROVEMENT_CW_FALE" Kind="KIND_TRAIT"/>
<Row Type="TRAIT_LEADER_CW_TANUMAFILI_II" Kind="KIND_TRAIT"/>
<Row Type="MODIFIER_COASTAL_CULTURE_2" Kind="KIND_MODIFIER"/>
<Row Type="MODIFIER_SINGLE_CITY_TERRAIN_ADJACENCY" Kind="KIND_MODIFIER"/>
</Types>
<Civilizations>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" Name="LOC_CIVILIZATION_CW_SAMOA_NAME" Description="LOC_CIVILIZATION_CW_SAMOA_DESCRIPTION" Adjective="LOC_CIVILIZATION_CW_SAMOA_ADJECTIVE" StartingCivilizationLevelType="CIVILIZATION_LEVEL_FULL_CIV" RandomCityNameDepth="15" Ethnicity="ETHNICITY_ASIAN"/>
</Civilizations>
<Colors>
<Row>
<Type>COLOR_PLAYER_CW_SAMOA_PRIMARY</Type>
<Color>30,0,229,255</Color>
</Row>
<Row>
<Type>COLOR_PLAYER_CW_SAMOA_SECONDARY</Type>
<Color>0,218,229,255</Color>
</Row>
</Colors>
<PlayerColors>
<Row>
<Type>LEADER_CW_TANUMAFILI_II</Type>
<Usage>Unique</Usage>
<PrimaryColor>COLOR_PLAYER_CW_SAMOA_PRIMARY</PrimaryColor>
<SecondaryColor>COLOR_PLAYER_CW_SAMOA_SECONDARY</SecondaryColor>
<TextColor>COLOR_PLAYER_WHITE_TEXT</TextColor>
</Row>
</PlayerColors>
<DynamicModifiers>
<Row>
<ModifierType>MODIFIER_SINGLE_CITY_TERRAIN_ADJACENCY</ModifierType>
<CollectionType>COLLECTION_OWNER</CollectionType>
<EffectType>EFFECT_ADJUST_CITY_YIELD_CHANGE</EffectType>
</Row>
<Row>
<ModifierType>MODIFIER_COASTAL_CULTURE_2</ModifierType>
<CollectionType>COLLECTION_OWNER</CollectionType>
<EffectType>EFFECT_ADJUST_CITY_YIELD_CHANGE</EffectType>
</Row>
</DynamicModifiers>
<Modifiers>
<Row>
<ModifierId>MODIFIER_COASTAL_CULTURE</ModifierId>
<ModifierType>MODIFIER_COASTAL_CULTURE_2</ModifierType>
<SubjectRequirementSetId>PLOT_IS_COASTAL_LAND_REQUIREMENTS</SubjectRequirementSetId>
</Row>
<Row>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</ModifierId>
<ModifierType>MODIFIER_CITY_PLOT_YIELDS_ADJUST_PLOT_YIELD</ModifierType>
<SubjectRequirementSetId>PLOT_HAS_FISHINGBOATS_REQUIREMENTS</SubjectRequirementSetId>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>MODIFIER_COASTAL_CULTURE</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_CULTURE</Value>
</Row>
<Row>
<ModifierId>MODIFIER_COASTAL_CULTURE</ModifierId>
<Name>Amount</Name>
<Value>3</Value>
</Row>
<Row>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION</ModifierId>
<Name>ModifierId</Name>
<Value>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</Value>
</Row>
<Row>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_FOOD</Value>
</Row>
<Row>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
<Row>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</ModifierId>
<Name>YieldType</Name>
<Value>YIELD_PRODUCTION</Value>
</Row>
<Row>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</ModifierId>
<Name>Amount</Name>
<Value>1</Name>
</Row>
</ModifierArguments>
<RequirementSets>
<Row>
<RequirementSetId>PLOT_IS_COASTAL_LAND_REQUIREMENTS</RequirementSetId>
<RequirementSetType>REQUIREMENTSET_TEST_ALL</RequirementSetType>
</Row>
</RequirementSets>
<Requirements>
<Row>
<RequirementId>PLOT_IS_COASTAL_LAND</RequirementId>
<RequirementType>REQUIREMENT_PLOT_IS_COASTAL_LAND</RequirementType>
</Row>
</Requirements>
<RequirementSetRequirements>
<Row>
<RequirementSetId>PLOT_IS_COASTAL_LAND_REQUIREMENTS</RequirementSetId>
<RequirementId>PLOT_IS_COASTAL_LAND</RequirementId>
</RequirementSetRequirements>
<Traits>
<Row TraitType="TRAIT_CIVILIZATION_CW_SAMOA" Name="LOC_TRAIT_CIVILIZATION_CW_SAMOA_NAME" Description="LOC_TRAIT_CIVILIZATION_CW_SAMOA_DESCRIPTION"/>
<Row TraitType="TRAIT_LEADER_CW_TANUMAFILI_II" Name="LOC_TRAIT_LEADER_CW_TANUMAFILI_II_NAME" Description="LOC_TRAIT_LEADER_CW_TANUMAFILI_II_DESCRIPTION"/>
<Row TraitType="TRAIT_CIVILIZATION_IMPROVEMENT_CW_FALE" Name="LOC_CIVILIZATION_IMPROVEMENT_CW_FALE_NAME" Description="LOC_CIVILIZATION_IMPROVEMENT_CW_FALE_DESCRIPTION"/>
</Traits>
<TraitModifiers>
<Row>
<TraitType>TRAIT_CIVILIZATION_CW_SAMOA"</TraitType>
<ModifierId>MODIFIER_SINGLE_CITY_TERRAIN_ADJACENCY</ModifierId>
</Row>
<Row>
<TraitType>TRAIT_CIVILIZATION_CW_SAMOA</TraitType>
<ModifierId>MODIFIER_COASTAL_CULTURE</ModifierId>
</Row>
<Row>
<TraitType>TRAIT_LEADER_CW_TANUMAFILI_II</TraitType>
<ModifierId>GOD_OF_THE_SEA_FISHINGBOATS_PRODUCTION_MODIFIER</ModifierId>
</Row>
</TraitModifiers>
<CivilizationTraits>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" TraitType="TRAIT_CIVILIZATION_CW_SAMOA"/>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" TraitType="TRAIT_LEADER_CW_TANUMAFILI_II"/>
</CivilizationTraits>
<StartBiasResources>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" ResourceType="RESOURCE_FISH" Tier="3"/>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" ResourceType="RESOURCE_CRABS" Tier="3"/>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" ResourceType="RESOURCE_PEARLS" Tier="1"/>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" ResourceType="RESOURCE_WHALES" Tier="1"/>
</StartBiasResources>
<StartBiasTerrains>
<Row CivilizationType="CIVILIZATION_CW_SAMOA" TerrainType="TERRAIN_COAST" Tier="3"/>
</StartBiasTerrains>
</GameData>

In addition, I have attached the entire mod files zipped to this thread so that other files can be analyzed too, because maybe they are causing problems. The file is named "CW's Tanumafili II of Samoa.zip"

To recap: colours are giving me an error in Database.log, and the entire SamoaAbilities file, which contains a bunch of code that isn't in the Modbuddy files, like unique abilities, is giving an error in Modding.log. None of my abilities work, and they're all coded in SamoaAbilities.xml which is giving an error and I don't know why.

If anyone can help me solve these issues, it'd be greatly appreciated.
Thanks in advance.

~~~~~~~~EDIT/UPDATE: I now think that the Colors part did not work because I was using post-Spring Patch coding, and then testing it on my Mac which is PRE-Spring Patch. A user said on a different thread that it seemed to have changed with the Spring Patch, which would've caused my problem.

I removed the mod file from this thread because after removing the colors code, I ended up with a whole bunch of other errors in my Database.log and I'm working on fixing the errors one at a time. So essentially this thread is now useless.
 
Last edited:
Top Bottom