RimWorld

RimWorld

Simply More Bridges
dninemfive 23 Aug, 2019 @ 2:36pm
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>
< >
Showing 1-4 of 4 comments
hero9802 15 Sep, 2019 @ 6:59am 
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 15 Sep, 2019 @ 7:28am 
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>
Last edited by hero9802; 15 Sep, 2019 @ 8:51am
&(*null) 12 Oct, 2019 @ 12:23pm 
https://github.com/Lanilor/Simple-Mods-Collection/blob/master/LICENSE

If anyone wants to maintain this, feel free!
groovybluedog 28 Oct, 2019 @ 1:47pm 
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.
< >
Showing 1-4 of 4 comments
Per page: 1530 50