Alright, the premise is that I'm trying to replace the default chain mail armor - the reason for that is that...
with [STRUCTURAL_ELASTICITY_CHAIN_X], any edged damage is blunted out, up to extreme force, except if a superior material is used. With extreme force I mean crossbows set at 1000x what they are in vanilla. And even in vanilla, they punch right through plate as if it was butter. I've recently reported it as a bug and hopefully it will be addressed, but until then, I want a workaround.
So I've removed structural elasticity and [METAL] tag so they won't make it out of the ordinary metal materials, but only with special materials like INORGANIC:METAL_CHAIN with impact yield values such that blunt damage will pretty much ignore it the way it does in vanilla. I also removed [ITEM_WEAPONS] etc. from such materials.
[ITEM_ARMOR:ITEM_ARMOR_MAIL_SHIRT]
[NAME:mail shirt:mail shirts]
[ARMORLEVEL:2]
[UBSTEP:1]
[LBSTEP:1]
[LAYER:ARMOR]
[COVERAGE:100]
[LAYER_SIZE:10]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:6]
METAL
STRUCTURAL_ELASTICITY_CHAIN_ALL elasticity is broken
[INORGANIC:IRON_CHAIN]
[USE_MATERIAL_TEMPLATE:METAL_TEMPLATE]
[STATE_NAME_ADJ:ALL_SOLID:iron chain]
[STATE_NAME_ADJ:LIQUID:molten iron]
[STATE_NAME_ADJ:GAS:boiling iron]
[DISPLAY_COLOR:0:7:1]
[BUILD_COLOR:0:7:1]
[MATERIAL_VALUE:10]
[SPEC_HEAT:450]
[MELTING_POINT:12768]
[BOILING_POINT:15150]
[ITEMS_ARMOR]
[ITEMS_HARD]
[ITEMS_METAL]
[ITEMS_BARRED]
[ITEMS_SCALED]
[SOLID_DENSITY:7850]
[LIQUID_DENSITY:6980]
[MOLAR_MASS:55845]
[IMPACT_YIELD:20000] modded
[IMPACT_FRACTURE:20000] modded
[IMPACT_STRAIN_AT_YIELD:49999] modded
[COMPRESSIVE_YIELD:542500]
[COMPRESSIVE_FRACTURE:1085000]
[COMPRESSIVE_STRAIN_AT_YIELD:319] bulk modulus 170 GPa
[TENSILE_YIELD:155000]
[TENSILE_FRACTURE:310000]
[TENSILE_STRAIN_AT_YIELD:73] young's modulus 211 GPa
[TORSION_YIELD:155000]
[TORSION_FRACTURE:310000]
[TORSION_STRAIN_AT_YIELD:189]
[SHEAR_YIELD:155000]
[SHEAR_FRACTURE:310000]
[SHEAR_STRAIN_AT_YIELD:189] shear modulus 82 GPa
[BENDING_YIELD:155000]
[BENDING_FRACTURE:310000]
[BENDING_STRAIN_AT_YIELD:73]
[MAX_EDGE:10000]
[STATE_COLOR:ALL_SOLID:GRAY]
I've added this line to metal materials:
[MATERIAL_REACTION_PRODUCT:CHAIN_MAT:INORGANIC:IRON_CHAIN]
(added this to iron)
Then I've created a reaction to create armor from a ordinary metal bar.
[REACTION:MAKE_CHAIN_SHIRT]
[NAME:make a chain mail shirt]
[BUILDING:SMELTER:CUSTOM_SHIFT_B]
[REAGENT:A:5:BAR:NONE:NONE:NONE]
[HAS_MATERIAL_REACTION_PRODUCT:CHAIN_MAT]
[PRODUCT:100:1:ARMOR:ITEM_ARMOR_MAIL_SHIRT:GET_MATERIAL_FROM_REAGENT:A:CHAIN_MAT]
[SKILL:FORGE_ARMOR]
And added it to the human civ. I've also forced them to use mail shirts and not breastplates or leather.
[ENTITY:PLAINS]
[INDIV_CONTROLLABLE]
[CREATURE:HUMAN]
[TRANSLATION:HUMAN]
[DIGGER:ITEM_WEAPON_PICK]
[WEAPON:ITEM_WEAPON_WHIP]
[WEAPON:ITEM_WEAPON_AXE_BATTLE]
[WEAPON:ITEM_WEAPON_HAMMER_WAR]
[WEAPON:ITEM_WEAPON_SWORD_SHORT]
[WEAPON:ITEM_WEAPON_SPEAR]
[WEAPON:ITEM_WEAPON_MACE]
[WEAPON:ITEM_WEAPON_CROSSBOW]
[AMMO:ITEM_AMMO_BOLTS]
[WEAPON:ITEM_WEAPON_BOW]
[AMMO:ITEM_AMMO_ARROWS]
[WEAPON:ITEM_WEAPON_PIKE]
[WEAPON:ITEM_WEAPON_HALBERD]
[WEAPON:ITEM_WEAPON_SWORD_2H]
[WEAPON:ITEM_WEAPON_SWORD_LONG]
[WEAPON:ITEM_WEAPON_MAUL]
[WEAPON:ITEM_WEAPON_AXE_GREAT]
[WEAPON:ITEM_WEAPON_FLAIL]
[WEAPON:ITEM_WEAPON_MORNINGSTAR]
[WEAPON:ITEM_WEAPON_SCIMITAR]
[WEAPON:ITEM_WEAPON_AXE_TRAINING]
[WEAPON:ITEM_WEAPON_SWORD_SHORT_TRAINING]
[WEAPON:ITEM_WEAPON_SPEAR_TRAINING]
ARMOR:ITEM_ARMOR_BREASTPLATE:COMMON
[ARMOR:ITEM_ARMOR_MAIL_SHIRT:FORCED]
ARMOR:ITEM_ARMOR_LEATHER:COMMON
[ARMOR:ITEM_ARMOR_COAT:COMMON]
[ARMOR:ITEM_ARMOR_SHIRT:COMMON]
[ARMOR:ITEM_ARMOR_CLOAK:COMMON]
[ARMOR:ITEM_ARMOR_TUNIC:COMMON]
[ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
[ARMOR:ITEM_ARMOR_CAPE:COMMON]
[ARMOR:ITEM_ARMOR_VEST:COMMON]
[ARMOR:ITEM_ARMOR_DRESS:COMMON]
[ARMOR:ITEM_ARMOR_ROBE:COMMON]
[HELM:ITEM_HELM_HELM:COMMON]
[HELM:ITEM_HELM_CAP:COMMON]
[HELM:ITEM_HELM_HOOD:COMMON]
[HELM:ITEM_HELM_TURBAN:UNCOMMON]
[HELM:ITEM_HELM_MASK:RARE]
[HELM:ITEM_HELM_VEIL_HEAD:UNCOMMON]
[HELM:ITEM_HELM_VEIL_FACE:RARE]
[HELM:ITEM_HELM_SCARF_HEAD:UNCOMMON]
[GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
[GLOVES:ITEM_GLOVES_GLOVES:COMMON]
[GLOVES:ITEM_GLOVES_MITTENS:COMMON]
[SHOES:ITEM_SHOES_SHOES:COMMON]
[SHOES:ITEM_SHOES_BOOTS:COMMON]
[SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
[SHOES:ITEM_SHOES_SANDAL:COMMON]
[SHOES:ITEM_SHOES_CHAUSSE:UNCOMMON]
[SHOES:ITEM_SHOES_SOCKS:COMMON]
[PANTS:ITEM_PANTS_PANTS:COMMON]
[PANTS:ITEM_PANTS_GREAVES:COMMON]
[PANTS:ITEM_PANTS_LEGGINGS:COMMON]
[PANTS:ITEM_PANTS_LOINCLOTH:COMMON]
[PANTS:ITEM_PANTS_THONG:UNCOMMON]
[PANTS:ITEM_PANTS_SKIRT:COMMON]
[PANTS:ITEM_PANTS_SKIRT_SHORT:COMMON]
[PANTS:ITEM_PANTS_SKIRT_LONG:COMMON]
[PANTS:ITEM_PANTS_BRAIES:UNCOMMON]
[SHIELD:ITEM_SHIELD_SHIELD]
[SHIELD:ITEM_SHIELD_BUCKLER]
[SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA]
[TRAPCOMP:ITEM_TRAPCOMP_GIANTAXEBLADE]
[TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW]
[TRAPCOMP:ITEM_TRAPCOMP_SPIKEDBALL]
[TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC]
[TRAPCOMP:ITEM_TRAPCOMP_MENACINGSPIKE]
[TOY:ITEM_TOY_PUZZLEBOX]
[TOY:ITEM_TOY_BOAT]
[TOY:ITEM_TOY_HAMMER]
[TOY:ITEM_TOY_AXE]
[INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
[INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
[INSTRUMENT:ITEM_INSTRUMENT_HARP]
[INSTRUMENT:ITEM_INSTRUMENT_DRUM]
[INSTRUMENT:ITEM_INSTRUMENT_PICCOLO]
[TOOL:ITEM_TOOL_CAULDRON]
[TOOL:ITEM_TOOL_LADLE]
[TOOL:ITEM_TOOL_BOWL]
[TOOL:ITEM_TOOL_MORTAR]
[TOOL:ITEM_TOOL_PESTLE]
[TOOL:ITEM_TOOL_KNIFE_CARVING]
[TOOL:ITEM_TOOL_KNIFE_BONING]
[TOOL:ITEM_TOOL_KNIFE_SLICING]
[TOOL:ITEM_TOOL_KNIFE_MEAT_CLEAVER]
[TOOL:ITEM_TOOL_FORK_CARVING]
[TOOL:ITEM_TOOL_NEST_BOX]
[TOOL:ITEM_TOOL_JUG]
[TOOL:ITEM_TOOL_LARGE_POT]
[TOOL:ITEM_TOOL_HIVE]
[TOOL:ITEM_TOOL_POUCH]
[TOOL:ITEM_TOOL_WHEELBARROW]
[CLOTHING]
[CURRENCY:COPPER:1]
[CURRENCY:SILVER:5]
[CURRENCY:GOLD:15]
[SELECT_SYMBOL:WAR:NAME_WAR]
[SUBSELECT_SYMBOL:WAR:VIOLENT]
[SELECT_SYMBOL:BATTLE:NAME_BATTLE]
[SUBSELECT_SYMBOL:BATTLE:VIOLENT]
[SELECT_SYMBOL:SIEGE:NAME_SIEGE]
[SUBSELECT_SYMBOL:SIEGE:VIOLENT]
[SELECT_SYMBOL:ROAD:NAME_ROAD]
[SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]
[SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]
[SELECT_SYMBOL:WALL:NAME_WALL]
[CULL_SYMBOL:ALL:SUBORDINATE]
[CULL_SYMBOL:ALL:EVIL]
[CULL_SYMBOL:ALL:NEGATIVE]
[CULL_SYMBOL:ALL:UGLY]
[CULL_SYMBOL:ALL:NEGATOR]
[SELECT_SYMBOL:CIV:NAME_ENTITY_KINGDOM]
[SELECT_SYMBOL:SITE:NAME_ENTITY_TOWN_FOUNDER]
[RIVER_PRODUCTS]
[OCEAN_PRODUCTS]
[METAL_PREF]
[GEM_PREF]
[STONE_PREF]
[OUTDOOR_WOOD]
[OUTDOOR_FARMING]
[USE_ANIMAL_PRODUCTS]
[COMMON_DOMESTIC_PACK]
[COMMON_DOMESTIC_PULL]
[COMMON_DOMESTIC_MOUNT]
[COMMON_DOMESTIC_PET]
[USE_MISC_PROCESSED_WOOD_PRODUCTS]
[EQUIPMENT_IMPROVEMENTS]
[SPHERE_ALIGNMENT:WAR:512]
[ART_FACET_MODIFIER:FANCIFUL:640]
[ART_FACET_MODIFIER:OWN_RACE:512]
[ADVENTURE_TIER:1]
[FRIENDLY_COLOR:7:0:1]
[UNDEAD_CANDIDATE]
[DEFAULT_SITE_TYPE:CITY]
[LIKES_SITE:CITY]
[TOLERATES_SITE:CITY]
[TOLERATES_SITE:TREE_CITY]
[TOLERATES_SITE:CAVE_DETAILED]
[START_BIOME:ANY_GRASSLAND]
[START_BIOME:ANY_SAVANNA]
[START_BIOME:ANY_SHRUBLAND]
[BIOME_SUPPORT:ANY_WETLAND:1]
[BIOME_SUPPORT:ANY_DESERT:1]
[BIOME_SUPPORT:ANY_FOREST:2]
[BIOME_SUPPORT:ANY_OCEAN:12]
[BIOME_SUPPORT:ANY_LAKE:3]
[BIOME_SUPPORT:ANY_GRASSLAND:3]
[BIOME_SUPPORT:ANY_SAVANNA:2]
[BIOME_SUPPORT:ANY_SHRUBLAND:2]
[BIOME_SUPPORT:ANY_RIVER:4]
[MERCHANT_NOBILITY]
[DIPLOMAT_BODYGUARDS]
[MERCHANT_BODYGUARDS]
[PROGRESS_TRIGGER_TRADE:1]
[PROGRESS_TRIGGER_POP_SIEGE:3]
[PROGRESS_TRIGGER_PROD_SIEGE:0]
[PROGRESS_TRIGGER_TRADE_SIEGE:0]
[ACTIVE_SEASON:SUMMER]
[SIEGER]
[MAX_STARTING_CIV_NUMBER:100]
[MAX_POP_NUMBER:10000]
[MAX_SITE_POP_NUMBER:120]
[RELIGION:PANTHEON]
[WANDERER]
[BEAST_HUNTER]
[SCOUT]
[PERMITTED_JOB:MINER]
[PERMITTED_JOB:CARPENTER]
[PERMITTED_JOB:BOWYER]
[PERMITTED_JOB:WOODCUTTER]
[PERMITTED_JOB:ENGRAVER]
[PERMITTED_JOB:MASON]
[PERMITTED_JOB:ANIMAL_CARETAKER]
[PERMITTED_JOB:ANIMAL_TRAINER]
[PERMITTED_JOB:HUNTER]
[PERMITTED_JOB:TRAPPER]
[PERMITTED_JOB:ANIMAL_DISSECTOR]
[PERMITTED_JOB:FURNACE_OPERATOR]
[PERMITTED_JOB:WEAPONSMITH]
[PERMITTED_JOB:ARMORER]
[PERMITTED_JOB:BLACKSMITH]
[PERMITTED_JOB:METALCRAFTER]
[PERMITTED_JOB:GEM_CUTTER]
[PERMITTED_JOB:GEM_SETTER]
[PERMITTED_JOB:WOODCRAFTER]
[PERMITTED_JOB:STONECRAFTER]
[PERMITTED_JOB:LEATHERWORKER]
[PERMITTED_JOB:BONE_CARVER]
[PERMITTED_JOB:WEAVER]
[PERMITTED_JOB:CLOTHIER]
[PERMITTED_JOB:GLASSMAKER]
[PERMITTED_JOB:FISHERMAN]
[PERMITTED_JOB:FISH_DISSECTOR]
[PERMITTED_JOB:FISH_CLEANER]
[PERMITTED_JOB:CHEESE_MAKER]
[PERMITTED_JOB:MILKER]
[PERMITTED_JOB:SHEARER]
[PERMITTED_JOB:SPINNER]
[PERMITTED_JOB:COOK]
[PERMITTED_JOB:THRESHER]
[PERMITTED_JOB:MILLER]
[PERMITTED_JOB:BUTCHER]
[PERMITTED_JOB:TANNER]
[PERMITTED_JOB:DYER]
[PERMITTED_JOB:PLANTER]
[PERMITTED_JOB:HERBALIST]
[PERMITTED_JOB:BREWER]
[PERMITTED_JOB:SOAP_MAKER]
[PERMITTED_JOB:POTASH_MAKER]
[PERMITTED_JOB:LYE_MAKER]
[PERMITTED_JOB:WOOD_BURNER]
[PERMITTED_JOB:MECHANIC]
[PERMITTED_JOB:SIEGE_ENGINEER]
[PERMITTED_JOB:SIEGE_OPERATOR]
[PERMITTED_JOB:PUMP_OPERATOR]
[PERMITTED_JOB:CLERK]
[PERMITTED_JOB:ADMINISTRATOR]
[PERMITTED_JOB:TRADER]
[PERMITTED_JOB:ARCHITECT]
[PERMITTED_JOB:DIAGNOSER]
[PERMITTED_JOB:BONE_SETTER]
[PERMITTED_JOB:SUTURER]
[PERMITTED_JOB:SURGEON]
[PERMITTED_JOB:GLAZER]
[PERMITTED_JOB:POTTER]
[PERMITTED_JOB:PRESSER]
[PERMITTED_JOB:BEEKEEPER]
[PERMITTED_JOB:WAX_WORKER]
[PERMITTED_BUILDING:SOAP_MAKER]
[PERMITTED_BUILDING:SCREW_PRESS]
[PERMITTED_REACTION:TAN_A_HIDE]
[PERMITTED_REACTION:RENDER_FAT]
[PERMITTED_REACTION:MAKE_SOAP_FROM_TALLOW]
[PERMITTED_REACTION:MAKE_SOAP_FROM_OIL]
[PERMITTED_REACTION:MILL_SEEDS_NUTS_TO_PASTE]
[PERMITTED_REACTION:MAKE_CLAY_JUG]
[PERMITTED_REACTION:MAKE_CLAY_BRICKS]
[PERMITTED_REACTION:MAKE_CLAY_STATUE]
[PERMITTED_REACTION:MAKE_LARGE_CLAY_POT]
[PERMITTED_REACTION:MAKE_CLAY_CRAFTS]
[PERMITTED_REACTION:GLAZE_JUG]
[PERMITTED_REACTION:GLAZE_STATUE]
[PERMITTED_REACTION:GLAZE_LARGE_POT]
[PERMITTED_REACTION:GLAZE_CRAFT]
[PERMITTED_REACTION:PRESS_OIL]
[PERMITTED_REACTION:MAKE_CLAY_HIVE]
[PERMITTED_REACTION:PRESS_HONEYCOMB]
[PERMITTED_REACTION:MAKE_WAX_CRAFTS]
[PERMITTED_REACTION:MAKE_MEAD]
[PERMITTED_REACTION:BRASS_MAKING]
[PERMITTED_REACTION:BRASS_MAKING2]
[PERMITTED_REACTION:BRONZE_MAKING]
[PERMITTED_REACTION:BRONZE_MAKING2]
[PERMITTED_REACTION:ELECTRUM_MAKING]
[PERMITTED_REACTION:ELECTRUM_MAKING2]
[PERMITTED_REACTION:BILLON_MAKING]
[PERMITTED_REACTION:BILLON_MAKING2]
[PERMITTED_REACTION:PEWTER_FINE_MAKING]
[PERMITTED_REACTION:PEWTER_FINE_MAKING2]
[PERMITTED_REACTION:PEWTER_TRIFLE_MAKING]
[PERMITTED_REACTION:PEWTER_TRIFLE_MAKING2]
[PERMITTED_REACTION:PEWTER_LAY_MAKING]
[PERMITTED_REACTION:BLACK_BRONZE_MAKING]
[PERMITTED_REACTION:STERLING_SILVER_MAKING]
[PERMITTED_REACTION:ROSE_GOLD_MAKING]
[PERMITTED_REACTION:MAKE_CHAIN_SHIRT] new
[WORLD_CONSTRUCTION:WALL]
[WORLD_CONSTRUCTION:BRIDGE]
[WORLD_CONSTRUCTION:ROAD]
[ETHIC:KILL_ENTITY_MEMBER:JUSTIFIED_IF_GOOD_REASON]
[ETHIC:KILL_NEUTRAL:JUSTIFIED_IF_NO_REPERCUSSIONS]
[ETHIC:KILL_ENEMY:ACCEPTABLE]
[ETHIC:KILL_ANIMAL:ACCEPTABLE]
[ETHIC:KILL_PLANT:ACCEPTABLE]
[ETHIC:TORTURE_AS_EXAMPLE:ACCEPTABLE]
[ETHIC:TORTURE_FOR_INFORMATION:ACCEPTABLE]
[ETHIC:TORTURE_FOR_FUN:APPALLING]
[ETHIC:TORTURE_ANIMALS:SHUN]
[ETHIC:TREASON:PUNISH_CAPITAL]
[ETHIC:OATH_BREAKING:PUNISH_CAPITAL]
[ETHIC:LYING:PERSONAL_MATTER]
[ETHIC:VANDALISM:PUNISH_SERIOUS]
[ETHIC:TRESPASSING:PUNISH_SERIOUS]
[ETHIC:THEFT:PUNISH_SERIOUS]
[ETHIC:ASSAULT:PUNISH_SERIOUS]
[ETHIC:SLAVERY:ACCEPTABLE]
[ETHIC:EAT_SAPIENT_OTHER:UNTHINKABLE]
[ETHIC:EAT_SAPIENT_KILL:UNTHINKABLE]
[ETHIC:MAKE_TROPHY_SAME_RACE:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_SAPIENT:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
[WILL_ACCEPT_TRIBUTE]
[VARIABLE_POSITIONS:ALL]
[BUILDS_OUTDOOR_FORTIFICATIONS]
[BUILDS_OUTDOOR_TOMBS]
[BANDITRY:10]
[STONE_SHAPE:OVAL_CABOCHON]
[STONE_SHAPE:ROUND_CABOCHON]
[STONE_SHAPE:CUSHION_CABOCHON]
[STONE_SHAPE:RECTANGULAR_CABOCHON]
[GEM_SHAPE:OVAL_CABOCHON]
[GEM_SHAPE:ROUND_CABOCHON]
[GEM_SHAPE:CUSHION_CABOCHON]
[GEM_SHAPE:RECTANGULAR_CABOCHON]
[GEM_SHAPE:POINT_CUT_GEM]
[GEM_SHAPE:TABLE_CUT_GEM]
[GEM_SHAPE:SINGLE_CUT_GEM]
[GEM_SHAPE:ROSE_CUT_GEM]
[GEM_SHAPE:BRIOLETTE_CUT_GEM]
The result is that soldiers go around with «rope reed fiber mail shirts».
The errorlog doesn't say anything about it. Only one duplicate creature that I forgot to fix.
Do randomly generated armors not support custom reactions or did I mess up?
PS: to be clearer, the goal is for the equipment to appear in adventure mode. Shops, dungeons, bandits, guards... I haven't tried in fort mode, but similar things worked and they should work now. If they don't, it's ok. If they do, even better.