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

[HELP] Creating a new MATERIAL

HerrKingsley

New member
So Im Changing the purpose of magazines a bit.

And I wanted to make them scrapable into a new material "attributeNotes"

I made a new material based on Mpaper in materal.xml

Code:
<material id="MresourceAttributeNotePerception">
           <property name="damage_category" value="cloth"/>
           <property name="surface_category" value="cloth"/>
           <property name="forge_category" value="paper"/>
           <property name="Hardness" type="float" value="1"/>
           <property name="stepsound" value="wood"/>
           <property name="stability_glue" value="20"/>
           <property name="Mass" type="int" value="5"/>
           <property name="MaxDamage" value="1"/>
           <property name="Experience" value="1"/>
</material>
And I did an new Item in items.xml Also based on resourcePaper

Code:
       <item name="resourceAttributeNotePerception"> <!-- scrap material -->
           <property name="HoldType" value="45"/>
           <property name="Meshfile" value="Items/Misc/sackPrefab"/>
           <property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
           <property name="CustomIcon" value="resourcePaper"/> 
           <property name="CustomIconTint" value="#85C1E9"/>
           <property name="Material" value="MresourceAttributeNotePerception"/>
           <property name="Stacknumber" value="250"/> <!-- STK resource -->
           <property name="FuelValue" value="1"/>
           <property name="Weight" value="1"/>
           <property name="EconomicValue" value="20"/>
           <property name="EconomicBundleSize" value="1"/>
           <property name="Group" value="Resources"/>
       </item>
And connected it to a Perk Magazine

Code:
       <item name="resourceAttributeNotePerception"> <!-- scrap material -->
           <property name="HoldType" value="45"/>
           <property name="Meshfile" value="Items/Misc/sackPrefab"/>
           <property name="DropMeshfile" value="Items/Misc/sack_droppedPrefab"/>
           <property name="CustomIcon" value="resourcePaper"/> 
           <property name="CustomIconTint" value="#85C1E9"/>
           <property name="Material" value="MresourceAttributeNotePerception"/>
           <property name="Stacknumber" value="250"/> <!-- STK resource -->
           <property name="FuelValue" value="1"/>
           <property name="Weight" value="1"/>
           <property name="EconomicValue" value="20"/>
           <property name="EconomicBundleSize" value="1"/>
           <property name="Group" value="Resources"/>
       </item>
But the magazine still scraps in to regular paper!!!

What am I doing wrong?

 
Pretty sure the forge category is what determines what is gotten when an item is scrapped. You still have it as paper in your new material.

 
Yeah I tried to change that to:

MresourceAttributeNotePerception

But then the scrap option was removed.

Also there is no Item/Id called just "paper" in Material or Items

 
Yeah I tried to change that to:MresourceAttributeNotePerception

But then the scrap option was removed.

Also there is no Item/Id called just "paper" in Material or Items
Define scrap materials in recipes.xml under "scrap materials"

 
Thank you it worked.

I just changed

Code:
<property name="forge_category" value="paper"/>
to

Code:
<property name="forge_category" value="resourceAttributeNotePerception"/>
And it works like a charm. Full RGN skill tree :D

 
Back
Top