Republic of Cuba [WIP] Help

XboxAddict77

Wonder Spammer
Joined
Mar 14, 2013
Messages
261
Hello,
I'm currently working on a mod that adds Cuba as a playable civilization, It is a WIP. There is NO file to download yet.
The leader is Fidel Castro.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UA "Patria o Muerte", that means Homeland or death.
Every city gets a free building called the Production Camp, (Name might change), it replaces the Forge so that it doesn't stack and become OP it also needs no iron resources, it gives 3 production and gives a 33% bonus to melee and gunpowder units, i'm currenly debating whether it should include siege units as well. The Cubans also have a 25% modifier on unhappiness.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UU: Black Wasp Special Force: Was a special force for Cuba at the time of Castro, they replace the Marines and are cheaper, same damage values, but get cover I and Drill I when made.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
UB: Gallows: Replaces the Courthouse. It has no gold maintenance, gives 1-2 food (haven't decided) and gives additional happiness (also haven't decided).
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I will post pictures as soon as I can, the art isn't made yet.
I will be happy to answer any questions or hear any advice you may have. I'm currently testing the mod for balancing.
I will soon post a pick for you guys.
Special Thanks to "whoward69" and "Putmalk" for helping me so far.
 
I will post any of my code if necessary
zip the entire mod (the one in the MODS sub-directory, not the ModBuddy project) and attach it to your post, as it saves us having to guess what you may or may not have done
 
Got a picture for you guys! Note: That medic promotion on the Black Wasp is not free the city just had a barracks.
 

Attachments

  • bandicam 2013-05-24 21-33-33-471.jpg
    bandicam 2013-05-24 21-33-33-471.jpg
    464.2 KB · Views: 65
You don't have VFS=true for the dds files or the leader scene file - see http://forums.civfanatics.com/showthread.php?t=487846

You also have a number of xml/database errors, so enable logging - see http://forums.civfanatics.com/showthread.php?t=487482 - and work through them

Code:
[33712.798] table Buildings has no column named PreregTech
[33712.798] In Query - insert into Buildings('Type', 'BuildingClass', 'FreeStartEra', 'Cost', 'GoldMaintenance', 'PreregTech', 'Description', 'Civilopedia', 'Strategy', 'Help', 'ArtDefineTag', 'ExtraLuxuries', 'SpecialistType', 'SpecialistCount', 'MinAreaSize', 'ConquestProb', 'Happiness', 'HurryCostModifier', 'IconAtlas', 'PortraitIndex') values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);
[33712.798] In XMLSerializer while updating table Buildings from file XML/Buildings/CIV5Buildings.xml.
[33712.798] constraint failed
[33712.798] While executing - 'insert into Language_en_US('Tag', 'Text') values (?, ?);'
[33712.798] In XMLSerializer while inserting row into table insert into Language_en_US('Tag', 'Text') with  values (TXT_KEY_CITY_NAME_HAVANA, Havana, ).
[33712.798] In XMLSerializer while updating table Language_en_US from file XML/Text/NewText.xml.
[33712.798] columns Language, Tag are not unique
[33712.798] no such table: CivilizationClassOverrides
[33712.798] In Query - insert into CivilizationClassOverrides('CivilizationType', 'UnitClassType', 'UnitType') values (?, ?, ?);
[33712.798] In XMLSerializer while updating table CivilizationClassOverrides from file XML/Units/CIV5Units.xml.
 
The logs tell you whch files have the issues (usually) and what text is causing the problems

Code:
[48203.482] In XMLSerializer while inserting row into table insert into Language_en_US('Tag', 'Text') with  values ([B][COLOR="Red"]TXT_KEY_CITY_NAME_HAVANA[/COLOR][/B], Havana, ).
[48203.482] In XMLSerializer while updating table Language_en_US from file XML/Civilizations/[B][COLOR="Magenta"]Civ_Cuba.xml[/COLOR][/B].
[48203.497] columns Language, Tag are not unique

[48203.497] In XMLSerializer while inserting row into table insert into Language_en_US('Tag', 'Text') with  values ([B][COLOR="red"]TXT_KEY_CITY_NAME_HAVANA[/COLOR][/B], Havana, ).
[48203.497] In XMLSerializer while updating table Language_en_US from file XML/Text/[B][COLOR="Magenta"]NewText.xml[/COLOR][/B].
[48203.513] columns Language, Tag are not unique

		<Row Tag="[B][COLOR="red"]TXT_KEY_CITY_NAME_HAVANA[/COLOR][/B]">
			<Text>Havana</Text>
		</Row>
...
		</Row>
		[B][COLOR="Red"]"Note:Start w/Bayamo"[/COLOR][/B]
		<Row Tag="TXT_KEY_CITY_NAME_BAYAMO">

		<Row Tag="[B][COLOR="red"]TXT_KEY_CITY_NAME_HAVANA[/COLOR][/B]">
			<Text>Havana</Text>
		</Row>
...
		</Row>
		[B][COLOR="red"]"Note:Start w/Bayamo"[/COLOR][/B]
		<Row Tag="TXT_KEY_CITY_NAME_BAYAMO">
		
[48203.513] no such table: [B][COLOR="red"]CivilizationClassOverrides[/COLOR][/B]
[48203.513] In Query - insert into CivilizationClassOverrides('CivilizationType', 'UnitClassType', 'UnitType') values (?, ?, ?);
[48203.513] In XMLSerializer while updating table CivilizationClassOverrides from file XML/Units/[COLOR="Magenta"][B]CIV5Units.xml[/B][/COLOR].
[B][COLOR="SeaGreen"]Civilization_UnitClassOverrides[/COLOR][/B]

[48208.801] Invalid Reference on PlayerColors.TextColor - "COLOR_PLAYER_[B][COLOR="Red"]WHIITE[/COLOR][/B]_TEXT" does not exist in Colors


[48208.801] Invalid Reference on Leader_Traits.TraitType - "[B][COLOR="SeaGreen"]TRAIT_PATRIA_O_MUERTE[/COLOR][/B]" does not exist in Traits
<Type>[B][COLOR="Red"]PATRIA_O_MUERTE[/COLOR][/B]</Type>
 
You can't have two tags with the same name. That's what the error is saying. The tag "TXT_KEY_CITY_NAME_HAVANA" is not unique.
 
Havana is a standard city name from DLC02 (Spain and Inca) so anyone with that DLC will still get the duplicate key error - it is strongly advised to make the format of text keys unique to the civ/mod, eg TXT_KEY_CUBA_CITY_NAME_XYZ

As is TXT_KEY_CITY_NAME_SANTIAGO

Correcting those two, I then get a duplicate for TXT_KEY_TRAIT_MATRIA_O_MUERTE, so all your database.log errors are not gone

However, even if you correct that, you will still not get the get in the game setup menu, as the trait actually refers to TXT_KEY_TRAIT_PATRIA_O_MUERTE
 
After correcting that one, you will still be left with

Code:
[3715.257] Invalid Reference on Building_ResourceQuantityRequirements.BuildingType - "BUILDING_PRODUCTION_FARM" does not exist in Buildings
[3715.273] Invalid Reference on Building_UnitCombatProductionModifiers.BuildingType - "BUILDING_PRDUCTION_CAMP" does not exist in Buildings
[3715.273] Invalid Reference on Building_UnitCombatProductionModifiers.BuildingType - "BUILDING_PRDUCTION_CAMP" does not exist in Buildings
[3715.273] Invalid Reference on Building_YieldModifiers.BuildingType - "BUILDING_PRDUCTION_CAMP" does not exist in Buildings

[3715.382] Invalid Reference on Civilization_BuildingClassOverrides.BuildingClassType - "BUILDING_GALLOWS" does not exist in BuildingClasses

[3715.429] Invalid Reference on Civilization_FreeTechs.CivilizationType - "CIVILIZATION CUBA" does not exist in Civilizations

[3715.725] Invalid Reference on PlayerColors.TextColor - "COLOR_PLAYER_WHIITE_TEXT" does not exist in Colors

[3715.725] Invalid Reference on Leader_Traits.TraitType - "TRAIT_PATRIA_O_MUERTE" does not exist in Traits

[3715.943] Invalid Reference on Units.PrereqTech - "TECH_PENICILLIN" does not exist in Technologies
[3715.943] Invalid Reference on Units.DefaultUnitAI - "UNITAI_DEFENCE" does not exist in UnitAIInfos

[3715.132] Invalid Reference on Buildings.Help - "TXT_KEY_BUILDING_GALLOWS_HELP" does not exist in Language_en_US
[3715.132] Invalid Reference on Buildings.Help - "TXT_KEY_BUILDING_PRODUCTION_CAMP_HELP" does not exist in Language_en_US
[3715.179] Invalid Reference on Buildings.Strategy - "TXT_KEY_BUILDING_GALLOWS_STRATEGY" does not exist in Language_en_US
[3715.179] Invalid Reference on Buildings.Strategy - "TXT_KEY_BUILDING_PRODUCTION_CAMP_STRATEGY" does not exist in Language_en_US
[3715.226] Invalid Reference on Buildings.Civilopedia - "TXT_KEY_GALLOWS_TEXT" does not exist in Language_en_US
[3715.226] Invalid Reference on Buildings.Civilopedia - "TXT_KEY_PRODUCTION_CAMP_TEXT" does not exist in Language_en_US
[3715.257] Invalid Reference on Buildings.Description - "TXT_KEY_BUILDING_GALLOWS" does not exist in Language_en_US
[3715.257] Invalid Reference on Buildings.Description - "TXT_KEY_BUILDING_PRODUCTION_CAMP" does not exist in Language_en_US
[3715.304] Invalid Reference on Civilizations.Adjective - "TXT_KEY_CIV_CUBA_ADJECTIVE" does not exist in Language_en_US
[3715.351] Invalid Reference on Civilizations.ShortDescription - "TXT_KEY_CIV_CUBA_SHORT_DESC" does not exist in Language_en_US
[3715.382] Invalid Reference on Civilizations.Description - "TXT_KEY_CIV_CUBA_DESC" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_SANTIAGO_DE_CUBA" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_CAMAGUEY" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_HOLGUIN" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_SANTA_CLARA" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_GUANTANAMO" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_BAYAMO" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_VICTORIA_DE_LAS_TUNAS" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_CIENFUEGOS" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_MANZANILLO" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_PINAR_DEL_RIO" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_CIEGO_DE_AVILA" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_SANCTI_SPIRITUS" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_MOA" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_COLON" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_SAGUA_LA_GRANDE" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_GUANAJAY" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_COLUMBIA" does not exist in Language_en_US
[3715.429] Invalid Reference on Civilization_CityNames.CityName - "TXT_KEY_CITY_NAME_GUISA" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_0" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_1" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_2" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_3" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_4" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_5" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_6" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_7" does not exist in Language_en_US
[3715.475] Invalid Reference on Civilization_SpyNames.SpyName - "TXT_KEY_SPY_NAME_CUBA_8" does not exist in Language_en_US
[3715.990] Invalid Reference on Units.Help - "TXT_KEY_UNIT_HELP_BLACK_WASP" does not exist in Language_en_US
[3716.021] Invalid Reference on Units.Strategy - "TXT_KEY_UNIT_BLACK_WASP_STRATEGY" does not exist in Language_en_US
[3716.068] Invalid Reference on Units.Civilopedia - "TXT_KEY_BLACK_WASP_TEXT" does not exist in Language_en_US
[3716.115] Invalid Reference on Units.Description - "TXT_KEY_UNIT_BLACK_WASP" does not exist in Language_en_US

So you either con't have logging enabled, or are looking in the wrong log files!

Some of those are typos (eg BUILDING_PRDUCTION_CAMP instead of BUILDING_PRODUCTION_CAMP, CIVILIZATION CUBA instead of CIVILIZATION_CUBA and COLOR_PLAYER_WHIITE_TEXT (which has already been pointed out to you)) while some look like rename errors (eg BUILDING_PRODUCTION_FARM instead of BUILDING_PRODUCTION_CAMP)

A lot of the text strings just do not exist, and quite a few are copy/rename errors (TXT_KEY_BUILDING_OUTPOST_HELP) when you have no Outpost building

A few are misundersandings, eg you are trying to replace the standard Gallows with a custom Courthouse - which is obviously the wrong way round!

BTW replacing the Courthouse is a really bad idea as unless you keep the following line, you won't be able to remove unhappiness from occupied cities, but adding that line means you can only build the Gallows in occupied cities!

Code:
<NoOccupiedUnhappiness>true</NoOccupiedUnhappiness>
 
Well I've learned never to code if your tired. lol thanks for the help I'll get on it!

A few are misundersandings, eg you are trying to replace the standard Gallows with a custom Courthouse - which is obviously the wrong way round!
I am? I'm just trying to replace the courthouse with the Gallows.
NEVERMIND I see what you mean yeah I guess modding is harder than I thought.
 
BTW replacing the Courthouse is a really bad idea as unless you keep the following line, you won't be able to remove unhappiness from occupied cities, but adding that line means you can only build the Gallows in occupied cities!
That is the point.
 
Thank you both Putmalk and whoward69, It now works and I'm now testing and designing the art. I'll post the art after its made and if everything goes right it'll be in steam workshop in no time.
 
TODO:
-Fix some misspellings in the text file *Almost Done*
-Give the Black wasp unit a new icon, *Done*
-Make the ICON/Leader scene ect art. *Almost Done*
-Tweak the balancing.
 
How does one put Unit icons in I coppied the code from a hereto look like this:
Code:
<Row>
		<Atlas>BLACK_WASP_FLAG</Atlas>
		<IconSize>32</IconSize>
		<Filename>Icon_Flag_BLACKWASP.DDS</Filename>
		<IconsPerRow>1</IconsPerRow>
		<IconsPerColumn>1</IconsPerColumn>	
	</Row>	
</IconTextureAtlases>
I have a picture in game of this result and the icon .dds file.(I save a copy as a .png file to post as an attachment. I have enabled VFS on it in ModBuddy too.
Edit: I think I figured it out.
2nd EDIT: It's working now.
 
Back
Top Bottom