安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题








Copied from your comment:
"decided to work with defname instead. still errors. I don't understand what's going on.
this is what it should be right?
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationSequence">
<!-- <success>Always</success> -->
<operations>
<!-- Remove Plasteel Component and Add Metallic to PioneerArmor -->
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]</xpath>
<value>
<stuffCategories />
</value>
</li>"
Without seeing the rest of your code, I'm not sure what's wrong. That line should add a stuffCategories field to your armor code block, but from there you'd need to specify at least one stuffCategory in it. In this case metallic. So the following lines would read:
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[ defName = "Apparel_PioneerArmor"]/stuffCategories</xpath>
<value>
<li>Metallic</li>
</value>
</li>
<!-- Remove Plasteel Component and Add Metallic to PioneerArmor -->
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]</xpath>
<value>
<stuffCategories />
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/stuffCategories</xpath>
<value>
<li>Metallic</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]</xpath>
<value>
<costStuffCount />
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/costStuffCount</xpath>
<value>
40
</value>
</li>
<li Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/costList/Plasteel</xpath>
</li>
<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/statBases/ArmorRating_Sharp</xpath>
<value>
<StuffEffectMultiplierArmor>1</StuffEffectMultiplierArmor>
</value>
</li>
<li Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/statBases/ArmorRating_Blunt</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/statBases/ArmorRating_Heat</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName = "Apparel_PioneerArmor"]/statBases/MarketValue</xpath>
</li>
<thingDef ParentName="RSApparelMakeableBase">
<defName>Apparel_PioneerArmor</defName>
<label>pioneer armor</label>
<description>An armor designed primarily for combat engineer, Greydale "Laconian" pioneer armor has integrated tool set. It's a pretty good gear for builds something while gunfight.</description>
<techLevel>Spacer</techLevel>
<graphicData> <texPath>Things/Apparel/Laconian</texPath>
<graphicClass>Graphic_Single</graphicClass> </graphicData>
<thingCategories>
<li>Apparel</li>
</thingCategories>
<recipeMaker>
<unfinishedThingDef>UnfinishedTechArmor</unfinishedThingDef>
<researchPrerequisite>ReconArmor</researchPrerequisite>
<recipeUsers>
<li>GDTable</li>
</recipeUsers>
<skillRequirements>
<Crafting>8</Crafting>
</skillRequirements>
</recipeMaker>
<costList>
<Steel>120</Steel>
<ComponentIndustrial>12</ComponentIndustrial>
<Plasteel>40</Plasteel>
</costList>
<statBases>
<Mass>13.8</Mass>
<WorkToMake>55000</WorkToMake>
<MaxHitPoints>350</MaxHitPoints>
<ArmorRating_Blunt>0.40</ArmorRating_Blunt>
<ArmorRating_Sharp>0.97</ArmorRating_Sharp>
<ArmorRating_Heat>0.47</ArmorRating_Heat>
<Insulation_Cold>30</Insulation_Cold>
<Insulation_Heat>10</Insulation_Heat>
<EquipDelay>10</EquipDelay>
</statBases>
<equippedStatOffsets>
<ConstructionSpeed>0.2</ConstructionSpeed>
<SmoothingSpeed>0.3</SmoothingSpeed>
<MiningSpeed>0.3</MiningSpeed>
<MoveSpeed>-0.2</MoveSpeed>
</equippedStatOffsets>
<generateCommonality>0.1</generateCommonality>
<apparel>
<bodyPartGroups>
<li>Neck</li>
<li>Torso</li>
<li>Shoulders</li>
<li>Arms</li>
<li>Legs</li>
</bodyPartGroups>
<wornGraphicPath>Things/Apparel/Laconian</wornGraphicPath>
<layers>
<li>Middle</li>
<li>Shell</li>
</layers>
<tags>
<li>SpacerMilitary</li>
<li>RoyalCombatGear</li>
</tags>
<defaultOutfitTags>
<li>Soldier</li>
</defaultOutfitTags>
<useDeflectMetalEffect>true</useDeflectMetalEffect>
</apparel>
</thingDef>