RimWorld

RimWorld

Tech Raiding [1.0]
Compability with High Tech Laboratory Facility mod
Hi so I use this with High Tech Laboratory Facility mod and they don't work together. I take a look into your code and find that in the patch operation, you use xpath with hard-coded value in it:
*/ThingDef[defName = "HiTechResearchBench"]/comps/li[3]/linkableFacilities
Doing it this way can easily breaks your mod since other mod may modify the xml, just like High Tech Laboratory Facility mod does, and hard-coded value will no longer work.
My fix is that instead of using current xpath, you can have your xpath like this:
*/ThingDef[defName = "HiTechResearchBench"]//linkableFacilities
This xpath means that it will target every linkableFacilities tags under ThingDef (every descendants, not limited to direct children). So that you eliminate the usage of hard-coded value like li[3] and make the code more flexible.
Last edited by Montoya Por Favor!!; 23 Oct, 2018 @ 11:54pm
< >
Showing 1-2 of 2 comments
Skoots  [developer] 26 Dec, 2018 @ 4:26pm 
I am in the process of writing an update for this mod, however after a computer crash I have lost a lot of sources so I may have to make a new post to get the mod update on the workshop.

Would you mind if I used this in the update for the mod? I will be sure to give you a special thanks for such a handy fix!
Last edited by Skoots; 26 Dec, 2018 @ 4:26pm
sure go for it. Glad I could help :)
< >
Showing 1-2 of 2 comments
Per page: 1530 50