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 } ]
}
Press C on error screen to copy error text and insert it here.
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
By the way,I am trying to add mod to Android system
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
What version are you targeting? The stable 0.E or an experimental? If it’s the latter, try replacing “ident” with "id".
The stable version,how to try the method that you said with replace about?