DiscipleOfBryan
New member
UPDATE:
This issue appears to be caused by a bug.
__________________________________
I'm having an issue with localization...
I've (via modlet) added a new food item and added entries for its name and description in Localization.txt, even gave the item a specific "DescriptionKey" property, but neither the item's name nor description show up as expected.
Modlet/Config/Localization.txt:
Modlet/Config/items.xml:
Is there something I'm missing here? Assume no typos in the redacted parts, if any are present I'll be fixing them, just wondering about syntax/logic errors.
This issue appears to be caused by a bug.
__________________________________
I'm having an issue with localization...
I've (via modlet) added a new food item and added entries for its name and description in Localization.txt, even gave the item a specific "DescriptionKey" property, but neither the item's name nor description show up as expected.
Modlet/Config/Localization.txt:
Code:
Key,Source,Context,Changes,English,French,German,Klingon,Spanish,Polish
{REDACTED itemName},items,Food,New,"{REDACTED Item Display Name}",,,,,
{REDACTED itemNameDesc},items,Food,New,"{REDACTED Item Description}",,,,,
Code:
<configs>
<append xpath="/items">
<item name="{REDACTED itemName}">
<property name="Tags" value="food"/>
<property name="HoldType" value="31"/>
<property name="DisplayType" value="food"/>
<property name="Meshfile" value="#Other/Items?Misc/parcelPrefab.prefab"/>
<property name="DropMeshfile" value="#Other/Items?Misc/sack_droppedPrefab.prefab"/>
<property name="Material" value="Mplants"/>
<property name="Stacknumber" value="10"/>
<property name="EconomicValue" value="70"/>
<property name="EconomicBundleSize" value="5"/>
<property name="CraftingIngredientTime" value="10"/>
<property name="UnlockedBy" value="perkMasterChef"/>
<property class="Action0">
<property name="Class" value="Eat"/>
<property name="Delay" value="1.0"/>
<property name="Use_time" value="..."/>
<property name="Sound_start" value="player_eating"/>
</property>
<property name="Group" value="Food/Cooking,CFFood/Cooking"/>
<property name="CustomIcon" value="{REDACTED itemNameIcon}"/>
<property name="DescriptionKey" value="{REDACTED itemNameDesc}"/>
<effect_group tiered="false">
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$foodAmountAdd" operation="add" value="70"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="$waterAmountAdd" operation="add" value="15"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar="foodHealthAmount" operation="add" value="20"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffProcessConsumables"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar=".DiseaseRoll" operation="set" value="2"/><display_value name="dFoodPoisoningRisk" value=".02"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="ModifyCVar" cvar=".DiseaseRoll" operation="add" value="@$MetabolismResist"/>
<triggered_effect trigger="onSelfPrimaryActionEnd" action="AddBuff" buff="buffIllFoodPoisoning01">
<requirement name="RandomRoll" seed_type="Random" min_max="1,100" operation="LTE" value="@.DiseaseRoll"/>
</triggered_effect>
</effect_group>
</item>
</append>
</configs>
Last edited by a moderator: