# How to add new materials to game?

**URL:** <https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857>\
**Category:** The Toolbox\
**Created:** [October 2, 2020, 9:16am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857 "2020-10-02T09:16:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spartan\_Joesima](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/spartan_joesima/32/6468_2.png) [@Spartan\_Joesima](https://discourse.cataclysmdda.org/u/Spartan_Joesima)\
**Post date:** [October 2, 2020, 9:16am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/1 "2020-10-02T09:16:30Z")

</div>

I am trying to add a new kind of material to this game,and the new material had been added to materials.json,but when I load the game,it show the debug message that said invoild materials…  
{  
“type”: “material”,  
“ident”: “nanometer\_fabric”,  
“name”: “Nanometer Fabric”,  
“density”: 10,  
“specific\_heat\_liquid”: 0.82,  
“specific\_heat\_solid”: 0.45,  
“latent\_heat”: 273,  
“soft”: true,  
“bash\_resist”: 8,  
“cut\_resist”: 8,  
“acid\_resist”: 8,  
“fire\_resist”: 8,  
“elec\_resist”: 8,  
“chip\_resist”: 22,  
“repaired\_with”: “alloy\_sheet”,  
“salvaged\_into”: “alloy\_sheet”,  
“dmg\_adj”: [“ripped”, “torn”, “shredded”, “tattered”],  
“bash\_dmg\_verb”: “ripped”,  
“cut\_dmg\_verb”: “cut”,  
“burn\_products”: [[ “nanometer\_fabric”, 1] ],  
“burn\_data”: [{ “immune”: true }, { “immune”: true }, { “immune”: true }]  
},  
{  
“type”: “material”,  
“ident”: “nanometer\_fabric\_rigid”,  
“name”: “Rigid Nanometer Fabric”,  
“density”: 10,  
“specific\_heat\_liquid”: 0.82,  
“specific\_heat\_solid”: 0.45,  
“latent\_heat”: 273,  
“bash\_resist”: 10,  
“cut\_resist”: 10,  
“acid\_resist”: 10,  
“fire\_resist”: 10,  
“elec\_resist”: 10,  
“chip\_resist”: 25,  
“repaired\_with”: “alloy\_sheet”,  
“salvaged\_into”: “alloy\_sheet”,  
“dmg\_adj”: [“marked”, “dented”, “scarred”, “broken”],  
“bash\_dmg\_verb”: “ripped”,  
“cut\_dmg\_verb”: “cut”,  
“burn\_products”: [[ “nanometer\_fabric\_rigid”, 1] ],  
“burn\_data”: [{ “immune”: true }, { “immune”: true }, { “immune”: true }]  
}

---

<div class="post-metadata">

**Author:** ![Zhilkin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zhilkin/32/3749_2.png) [@Zhilkin](https://discourse.cataclysmdda.org/u/Zhilkin)\
**Post date:** [October 2, 2020, 9:32am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/2 "2020-10-02T09:32:03Z")

</div>

Press C on error screen to copy error text and insert it here.

---

<div class="post-metadata">

**Author:** ![Spartan\_Joesima](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/spartan_joesima/32/6468_2.png) [@Spartan\_Joesima](https://discourse.cataclysmdda.org/u/Spartan_Joesima)\
**Post date:** [October 2, 2020, 9:41am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/3 "2020-10-02T09:41:16Z")

</div>

DEBUG : invalid “repaired\_with” nanometer\_fabric for nanometer\_fabric.

FUNCTION : void material\_type::check() const  
FILE : /var/lib/jenkins/workspace/Cataclysm-Android/android/app/jni/src/material.cpp  
LINE : 127

---

<div class="post-metadata">

**Author:** ![Spartan\_Joesima](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/spartan_joesima/32/6468_2.png) [@Spartan\_Joesima](https://discourse.cataclysmdda.org/u/Spartan_Joesima)\
**Post date:** [October 2, 2020, 9:41am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/4 "2020-10-02T09:41:54Z")

</div>

By the way,I am trying to add mod to Android system

---

<div class="post-metadata">

**Author:** ![Spartan\_Joesima](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/spartan_joesima/32/6468_2.png) [@Spartan\_Joesima](https://discourse.cataclysmdda.org/u/Spartan_Joesima)\
**Post date:** [October 2, 2020, 9:44am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/5 "2020-10-02T09:44:18Z")

</div>

DEBUG : nanometer\_fabric\_rigid in inline\_recipe\_armored\_pack is not a valid item template

FUNCTION : void component::check\_consistency(const std::string &) const  
FILE : /var/lib/jenkins/workspace/Cataclysm-Android/android/app/jni/src/requirements.cpp  
LINE : 420

---

<div class="post-metadata">

**Author:** ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)\
**Post date:** [October 2, 2020, 2:24pm UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/6 "2020-10-02T14:24:15Z")

</div>

What version are you targeting? The stable 0.E or an experimental? If it’s the latter, try replacing “ident” with `"id"`.

---

<div class="post-metadata">

**Author:** ![Spartan\_Joesima](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/spartan_joesima/32/6468_2.png) [@Spartan\_Joesima](https://discourse.cataclysmdda.org/u/Spartan_Joesima)\
**Post date:** [October 3, 2020, 12:35am UTC](https://discourse.cataclysmdda.org/t/how-to-add-new-materials-to-game/24857/7 "2020-10-03T00:35:53Z")

</div>

The stable version,how to try the method that you said with replace about?
