• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Custom Item Description

Telazorn

New member
Hello i am looking for any one you has found out a way to place your own item Descriptions. seeing that the Key Text sheet dose not push from a server to client. i tried editing this line.

Code:
<property name="DescriptionKey" value="YOURTEXTHERE"/>
But plain text will not work just dose not display so i tried.

Code:
<property name="Description" value="YOURTEXTHERE"/>
This dose not work either.

If anyone has worked this out hit me up please and thank you

 
here is an example of an item ive made

look at the very bottom

<item id="1502" name="koolAid"><!--DEV-->

<property name="IsDeveloper" value="true"/>

<property name="CustomIcon" value="bottledWater"/>

<property name="CustomIconTint" value="F9D054"/>

<property name="Meshfile" value="Items/Food/bottled_waterPrefab"/>

<property name="Material" value="glass"/>

<property name="HoldType" value="3"/>

<property name="Stacknumber" value="10"/>

<property name="Weight" value="10"/>

<property name="EconomicValue" value="30"/>

<property name="CraftingIngredientTime" value="15"/>

<property class="Action1">

<property name="Class" value="Eat"/>

<property name="Delay" value="1"/>

<property name="Use_time" value="..."/>

<property name="Gain_health" value="0"/>

<property name="Gain_stamina" value="0"/>

<property name="Gain_food" value="100"/>

<property name="Gain_water" value="100"/>

<property name="Sound_start" value="UseActions/player_drinking"/>

<property name="Create_item" value="emptyJar"/>

</property>

<property name="Group" value="Food/Cooking"/>

<property name="DescriptionKey" value="koolAidDesc"/> <--koolAidDesc is what you need or whatever your item is with 'Desc' added

</item>

then in the localization file

koolAid,items,Food,,(DEV) Kool Aid,,,, <-- item label

koolAidDesc,items,Food,,Kool Aid... the super juice of liquid meal replacements.\nRestores 100% Food & Water,,,, <-- description that you will see

hope this helps ...BTW try not to use commas in your description as the localizition file uses those as placemark/seperators for the different keys and it will mess up the final results that you see on screen and if you need a new line use (( \n )) like I have above

I know , I know... you's be laughin' at my KoolAid but hey. I grew up drinkin' the stuff and needed a refreshing 'pick me up' for those long builds in creative :)

 
Last edited by a moderator:
thank for the help but is there a way to add a description with out pointing to the localization file for some reason the localization file is not pushing from my dedi server to my PC running the client.

 
localization is one of the files that does not push-to-server

you group/players will have to download and "install" it manually

sorry that been a 'feature' all along a stupid feature but its what we gotta deal with

 
I just wanted to bump this thread to see if anybody knows if any new developments have occurred with A17 on this issue. With xpath modding it is impossible to touch text files like Localization.txt.

 
You have to set the item “name” as the display value.

Add this to your item to get the name to show up.

<property name="DisplayInfo" value="Name" />

- - - Updated - - -

You can have spaces in the item name, it’s not an issue.

 
Thank you for your reply - either I'm not following you (likely) or this still does not work. Here is an example straight from items.xml:

Code:
<item name="resourceRawDiamond">
<property name="Extends" value="resourceSilverNugget"/>
<property name="EconomicValue" value="1500"/>
<property name="CraftingIngredientTime" value="60"/>
<property name="DescriptionKey" value="rareOresGroupDesc"/>
</item>
When you have that item in your inventory and you "look" at it, you get the description "When mining you will occasionally find rare metals or minerals. Surely they are worth something to someone." from Localization.txt.

Now for example if I want to create an item like that but with a new description, how can I do that without modifying localization.txt? This doesn't work:

Code:
<append xpath="/items">
<item name="resourceRawDiamond2">
<property name="Extends" value="resourceSilverNugget"/>
<property name="EconomicValue" value="1500"/>
<property name="CraftingIngredientTime" value="60"/>
<property name="DescriptionKey" value="diamonds are  a girls best friend"/>
</item>
</append>
Nor does this:

Code:
<item name="resourceRawDiamond2">
<property name="Extends" value="resourceSilverNugget"/>
<property name="EconomicValue" value="1500"/>
<property name="CraftingIngredientTime" value="60"/>
<property name="Description" value="shiny and tastes like rocks"/>
</item>
Or anything else I have tried (propery name="desc", property name="name", etc.). In all cases I get a blank description on the inventory ui.

 
Back
Top