Kailric
Jack of All Trades
I read:
Code:Tag: TRAIT_FISHING in Info Class was incorrect. Current Xml file: xml\GameInfo/Civ4CivicInfos.xml
Show me your code for your new trait you added to the Civ4TraitInfos.
I read:
Code:Tag: TRAIT_FISHING in Info Class was incorrect. Current Xml file: xml\GameInfo/Civ4CivicInfos.xml
<TraitInfo>
<Type>TRAIT_FISHING</Type>
<Description>TXT_KEY_TRAIT_FISHING</Description>
<ShortDescription>TXT_KEY_TRAIT_FISHING</ShortDescription>
<iLevelExperienceModifier>0</iLevelExperienceModifier>
<iGreatGeneralRateModifier>0</iGreatGeneralRateModifier>
<iDomesticGreatGeneralRateModifier>0</iDomesticGreatGeneralRateModifier>
<iNativeAngerModifier>0</iNativeAngerModifier>
<iLearnTimeModifier>0</iLearnTimeModifier>
<iNativeCombatModifier>0</iNativeCombatModifier>
<iMissionaryModifier>0</iMissionaryModifier>
<iRebelCombatModifier>0</iRebelCombatModifier>
<iTaxRateThresholdModifier>0</iTaxRateThresholdModifier>
<iMercantileFactor>0</iMercantileFactor>
<iTreasureModifier>0</iTreasureModifier>
<iChiefGoldModifier>0</iChiefGoldModifier>
<iNativeAttitudeChange>0</iNativeAttitudeChange>
<iCityDefense>0</iCityDefense>
<iLandPriceDiscount>0</iLandPriceDiscount>
<iRecruitPriceDiscount>0</iRecruitPriceDiscount>
<iEuropeTravelTimeModifier>0</iEuropeTravelTimeModifier>
<iImmigrationThresholdModifier>0</iImmigrationThresholdModifier>
<CityExtraYields/>
<ExtraYieldThresholds/>
<ProfessionEquipmentModifiers/>
<FreePromotions/>
<FreePromotionUnitCombats/>
<YieldModifiers/>
<TaxYieldModifiers/>
<BuildingYieldChanges>
<BuildingYieldChange>
<BuildingClassType>BUILDINGCLASS_DOCK</BuildingClassType>
<BuildingYields>
<YieldChange>
<YieldType>YIELD_FOOD</YieldType>
<iYieldChange>1</iYieldChange>
</YieldChange>
</BuildingYields>
</BuildingYieldChange>
<BuildingYieldChange>
<BuildingClassType>BUILDINGCLASS_DRYDOCK</BuildingClassType>
<BuildingYields>
<YieldChange>
<YieldType>YIELD_FOOD</YieldType>
<iYieldChange>1</iYieldChange>
</YieldChange>
</BuildingYields>
</BuildingYieldChange>
<BuildingYieldChange>
<BuildingClassType>BUILDINGCLASS_SHIPYARD</BuildingClassType>
<BuildingYields>
<YieldChange>
<YieldType>YIELD_FOOD</YieldType>
<iYieldChange>1</iYieldChange>
</YieldChange>
</BuildingYields>
</BuildingYieldChange>
</BuildingYieldChanges>
<UnitMoveChanges/>
<ProfessionMoveChanges/>
<BuildingProductionModifiers/>
<BuildingRequiredYieldModifiers/>
<UnitStrengthModifiers/>
<FreeBuildingClasses/>
<GoodyFactors/>
</TraitInfo>
I was indeed playing with the wrong version....
I had no techs, in version 1.0 ! Sorry about that. I'll try with the newest version (it's 1.1d, isn't it? )
Well, I'm working with the Core 1.0... I wanted indeed to add my own techs.
I've tried again, and I haven't found any tech that allows a trait. I've searched <AllowsTrait> with Notepad++ and there are no results.
Am I missing something?
But, strangely TRAIT_JOHN_HAVARD does work...
Maybe I can send you my mod, if you want to check (or rather if you have time to check)...
Things get even stranger. I'm trying to add Portugal to the modcomp. I've already tried before. Usually it's quite simple to add a new civ (I mean if you already have the graphical files !).
But here everything works perfectly until I add a new trait for Portugal leaders...
The problem definitively comes from the TraitInfos file...
</RequiredYields>
<AllowsYields/>
<iCostToResearch>30</iCostToResearch>
<AllowsBuildingTypes/>
</RequiredYields>
<iCostToResearch>30</iCostToResearch>
<AllowsYields/>
<AllowsBuildingTypes/>
I see. Thank you.
I'll change those lines...
Are you still here?
You were right since the beginning: the game didn't load my new traits! I am quite a fool... My "trait problem" is entirely my fault.I simply put the TraitInfos.xml file in the wrong folder (GameInfo instead of Civilizations).
However, the other errors are real... Strangely, I've found some similar errors in the game itself (I mean in "vanilla" Civ IV Colonization). <CityExtraYields> (in TraitInfos.xml) will never work, whatever yield I tried. The game texts are OK though. Is this error related to the <iCenterPlotFoodBonus> in the CIV4CivicInfos.xml ? I do not know...
If so, it would be quite encouraging! One could correct both errors in the same time...