Jump to content

Help requested - description name not showing for perk modlet


00Prescott

Recommended Posts

Hello, 

 

Everything is working properly, however, the description names aren't showing.  Can someone help me correct this?  Thank you.

<configs>
	<setattribute name="max_level" xpath="/progression/perks/perk[@name='perkLivingOffTheLand']">5</setattribute>
	<set xpath="/progression/perks/perk[@name='perkLivingOffTheLand']/effect_group">
		<passive_effect name="CraftingTier" operation="base_set" level="0,5" value="0,5" tags="perkLivingOffTheLandCrafting"/><!-- fake crafting perk that is used to scale resources -->
		<passive_effect name="HarvestCount" operation="perc_add" level="1,2,3,4,5" value="1,1,2,3,4" tags="cropHarvest,wildCropsHarvest"/>
		<passive_effect name="RecipeTagUnlocked" operation="base_set" level="1,5" value="1" tags="plantedAloe1,plantedChrysanthemum1,plantedGoldenrod1,plantedYucca1"/>
		<passive_effect name="RecipeTagUnlocked" operation="base_set" level="2,5" value="1" tags="plantedBlueberry1,plantedCoffee1,plantedCorn1,plantedCotton1,plantedMushroom1,plantedPotato1,plantedHop1,plantedPumpkin1,plantedGraceCorn1"/>

		<effect_description level="1" desc_key="Gardner" long_desc_key="Harvest 2 items from wild or planted crops. Craft seeds for flowers and decorative plants like goldenrod, chrysanthemum, aloe, and yucca.\nFarm plots cost 30% less to craft."/>
		<effect_description level="2" desc_key="Grower" long_desc_key="You can craft seeds for berries and vegetables.\nFarm plots cost 50% less to craft."/>
		<effect_description level="3" desc_key="Farmer" long_desc_key="Harvest 3 items from wild or planted crops."/>
		<effect_description level="4" desc_key="Agruculturist" long_desc_key="Harvest 4 items from wild or planted crops.\nFarm plots cost 70% less to craft."/>
		<effect_description level="5" desc_key="Horticulturist" long_desc_key="Harvest 5 items from wild or planted crops.\nFarm plots cost 85% less to craft."/>
	</set>
</configs>

 

LivingOffTheLand.JPG

Link to comment
Share on other sites

I did originally try it without success, so I attempted another one.  It's possible I'm doing it wrong.  I have a file called Localization.txt in the same folder with the following (just a quick CnP for testing):

perkLivingOffTheLandRank1Desc,progression,perk For,,,Gardener,,Gärtner,Jardinero,Jardinier,Giardiniere,??,???,Ogrodnik,Jardineiro,????????,Bostanci,??,??,Jardinero
perkLivingOffTheLandRank2Desc,progression,perk For,,,Grower,,Landwirt,Granjero,Fermier,Contadino,??,??,Rolnik,Fazendeiro,??????,Çiftçi,??,??,Granjero
perkLivingOffTheLandRank3Desc,progression,perk For,,,Farmer,,Agronom,Granjero industrial,Fermier industriel,Contadino industriale,????,?? ??,Farmer przemyslowy,Fazendeiro Industrial,???????????? ??????,Endüstriyel Çiftçi,??????,????,Granjero industrial
perkLivingOffTheLandRank4Desc,progression,perk For,,,Agriculturist,,Agronom,Granjero industrial,Fermier industriel,Contadino industriale,????,?? ??,Farmer przemyslowy,Fazendeiro Industrial,???????????? ??????,Endüstriyel Çiftçi,??????,????,Granjero industrial
perkLivingOffTheLandRank5Desc,progression,perk For,,,Horticulturist,,Agronom,Granjero industrial,Fermier industriel,Contadino industriale,????,?? ??,Farmer przemyslowy,Fazendeiro Industrial,???????????? ??????,Endüstriyel Çiftçi,??????,????,Granjero industrial

It did nothing.

 

Is this a known issue when editing existing perks?  Am I building the modlet the wrong way? 

Link to comment
Share on other sites

I fixed it up like so:

Localization.txt

Key,File,Type,UsedInMainMenu,NoTranslate,english
perkLivingOffTheLandRank1Desc,progression,perk,,,Gardener
perkLivingOffTheLandRank2Desc,progression,perk,,,Grower
perkLivingOffTheLandRank3Desc,progression,perk,,,Farmer
perkLivingOffTheLandRank4Desc,progression,perk,,,Agriculturist
perkLivingOffTheLandRank5Desc,progression,perk,,,Horticulturist

progression.xml


		<effect_description level="1" desc_key="perkLivingOffTheLandRank1Desc" long_desc_key="Harvest 2 items from wild or planted crops. Craft seeds for flowers and decorative plants like goldenrod, chrysanthemum, aloe, and yucca.\nFarm plots cost 30% less to craft."/>
		<effect_description level="2" desc_key="perkLivingOffTheLandRank2Desc" long_desc_key="You can craft seeds for berries and vegetables.\nFarm plots cost 50% less to craft."/>
		<effect_description level="3" desc_key="perkLivingOffTheLandRank3Desc" long_desc_key="Harvest 3 items from wild or planted crops."/>
		<effect_description level="4" desc_key="perkLivingOffTheLandRank4Desc" long_desc_key="Harvest 4 items from wild or planted crops.\nFarm plots cost 70% less to craft."/>
		<effect_description level="5" desc_key="perkLivingOffTheLandRank5Desc" long_desc_key="Harvest 5 items from wild or planted crops.\nFarm plots cost 85% less to craft."/>

I can't thank you enough.

Link to comment
Share on other sites

 

If you don't want to use the localization file, you could use  desc_base  instead of  desc_key

 

For instance:

		<effect_description level="1" desc_base="Gardner" long_desc_key="Harvest 2 items from wild or planted crops. Craft seeds for flowers and decorative plants like goldenrod, chrysanthemum, aloe, and yucca.\nFarm plots cost 30% less to craft."/>
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...