边缘世界 RimWorld

边缘世界 RimWorld

Simply More Bridges
dninemfive 2019 年 8 月 23 日 下午 2:36
Fixed Patch
Hello, this is a version of TerrainDefs_Terrain_Water.xml which doesn't cause red errors on launch while still doing the patches you need.

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationRemove">
<success>Always</success>
<xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]/changeable</xpath>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]/affordances</xpath>
<match Class="PatchOperationAdd">
<xpath>Defs/TerrainDef[@Name="WaterDeepBase"]/affordances</xpath>
<value><li>BridgeableDeep</li></value>
</match>
<nomatch Class="PatchOperationAdd">
<xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]</xpath>
<value>
<affordances>
<li>BridgeableDeep</li>
</affordances>
</value>
</nomatch>
</Operation>
</Patch>
< >
正在显示第 1 - 4 条,共 4 条留言
hero9802 2019 年 9 月 15 日 上午 6:59 
Thanks for the patch!
but the context form is broken, so i'm afraid to use it naturally.
Can u make this code easy to read?
hero9802 2019 年 9 月 15 日 上午 7:28 
I edited it. The problem is that it's the first time I using xml format...
<?xml version="1.0" encoding="utf-8" ?> <Patch> <Operation Class="PatchOperationRemove"> <success>Always</success> <xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]/changeable</xpath> </Operation> <Operation Class="PatchOperationConditional"> <xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]/affordances</xpath> <match Class="PatchOperationAdd"> <xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]/affordances</xpath> <value><li>BridgeableDeep</li></value> </match> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/TerrainDef[@Name="WaterDeepBase"]</xpath> <value> <affordances> <li>BridgeableDeep</li> </affordances> </value> </nomatch> </Operation> </Patch>
最后由 hero9802 编辑于; 2019 年 9 月 15 日 上午 8:51
&(*null) 2019 年 10 月 12 日 下午 12:23 
https://github.com/Lanilor/Simple-Mods-Collection/blob/master/LICENSE

If anyone wants to maintain this, feel free!
groovybluedog 2019 年 10 月 28 日 下午 1:47 
May have been an incompatability with another mod, but as soon as I changed the file to your code and restarted, I had over 30 red errors, 20 yellow errors, and it stopped logging because there was too much there. It disabled all of my mods, completely ♥♥♥♥♥♥ the game, and the buttons turned to a different language. Advice: If you're using a lot of mods, don't try this without at least saving your mods list with a mod manager beforehand. As soon as I went back from Local copy which was edited to Steam which was not, the original error persisted but none of the worse effects of this change did. Tried it twice, same thing.
< >
正在显示第 1 - 4 条,共 4 条留言
每页显示数: 1530 50