请教大佬, MOD制作
Terrain_Water.xml 的 <TerrainDef Abstract="True" Name="WaterDeepBase" ParentName="WaterBase"> <texturePath>Terrain/Surfaces/WaterDeepRamp</texturePath> <waterDepthShader>Map/WaterDepth</waterDepthShader> <passability>Impassable</passability> <pathCost>300</pathCost> <changeable>false</changeable></TerrainDef>其中<changeable>false</changeable> 想修改为true于是写了个<Patch><Operation Class="PatchOperationReplace"><success>Always</success><xpath>Defs/TerrainDef[@Name = "WaterDeepBase"]</xpath><value><changeable>true</changeable></value></Operation></Patch>然后...红字报错XML error: Could not find parent node named "WaterDeepBase" for node "TerrainDef". 下面引用WaterDeepBase的TerrainDef全都找不到WaterDeepBase意思是WaterDeepBase没了.求大佬指教...
已解决
<xpath>Defs/TerrainDef[@Name = "WaterDeepBase"]</xpath>
改为<xpath>Defs/TerrainDef[@Name = "WaterDeepBase"]/changeable</xpath>
页:
[1]