RimWorld

RimWorld

Simply More Bridges
dninemfive 23. aug. 2019 kl. 14: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>
< >
Viser 1-4 af 4 kommentarer
hero9802 15. sep. 2019 kl. 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 15. sep. 2019 kl. 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>
Sidst redigeret af hero9802; 15. sep. 2019 kl. 8:51
&(*null) 12. okt. 2019 kl. 12:23 
https://github.com/Lanilor/Simple-Mods-Collection/blob/master/LICENSE

If anyone wants to maintain this, feel free!
groovybluedog 28. okt. 2019 kl. 13: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.
< >
Viser 1-4 af 4 kommentarer
Per side: 1530 50