RimWorld

RimWorld

Fortifications - Medieval - Material
sharkman 10 Aug, 2021 @ 5:20pm
Research Patch fix
Instead of using only PatchOperationAdd please wrap it in PatchOperationConditional, e.g.:
in Patches\Vanilla.xml you have:
<li Class="PatchOperationAdd"> <xpath>/Defs/ResearchProjectDef[defName="Stonecutting"]</xpath> <value> <prerequisites> <li>FT_Stonecrushing</li> </prerequisites> </value> </li>
instead of that please replace it with:
<li Class="PatchOperationConditional"> <xpath>/Defs/ResearchProjectDef[defName="Stonecutting"]/prerequisites</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/ResearchProjectDef[defName="Stonecutting"]</xpath> <value> <prerequisites> <li>FT_Stonecrushing</li> </prerequisites> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/ResearchProjectDef[defName="Stonecutting"]/prerequisites</xpath> <value> <li>FT_Stonecrushing</li> </value> </match> </li>
this way it does not cause any duplicate xml tags exceptions on start.
< >
Showing 1-3 of 3 comments
Domino's employee 11 Mar, 2024 @ 12:56am 
Please make this easier to understand i am currently struggling with WHERE this mystical "patches" is, it's all random numbers for me. please give a full explanation on how to do it for stupid people like me.
sharkman 11 Mar, 2024 @ 8:25am 
That was a comment for the mod author, but if you are trying to fix it yourself:
1) Subscribe to the mod
2) Open RimPy
3) Right click on the mod
4) Select "Open Folder"
5) It will open this mod's folder (C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\2501487160 for me)
6) Navigate to Patches directory in the mod's folder (C:\Program Files (x86)\Steam\steamapps\workshop\content\294100\2501487160\Patches for me)
7) Open Vanilla.xml with your favourite text editor.
8) Replace the whole text block from my original comment with my suggested replacement.
Domino's employee 16 Mar, 2024 @ 4:07pm 
Turns out it wasnt that mod messing with my research at all, It was rimedieval, sorry for bothering you! i'm very stupid.
< >
Showing 1-3 of 3 comments
Per page: 1530 50