Getting back to retexturing... already hitting problems

Started by jabbamonkey, December 14, 2018, 07:28:46 PM

Previous topic - Next topic

jabbamonkey

Also tried to read-up on xpathing, and tried the following...

      <li Class="patchOperationReplace">
<xpath>*/ThingDef[defName = "EyePatch"]/graphicData/texturePath</xpath>
<value>
<texturePath>Things/Item/BodyPart/EyePatch</texturePath>
</value>
</li>


Still not working...  got the smallest error message from that though...
Quote
[Jabbamonkey's Graphic Overhaul] Patch operation Verse.PatchOperationSequence(count=19, lastFailedOperation=Verse.PatchOperationReplace(*/ThingDef[defName = "EyePatch"]/graphicData/texturePath)) failed
file: C:\PATHTOGAME\steam\steamapps\common\RimWorld\Mods\JabbamonkeysGraphics\Patches\MedPatches.xml

jabbamonkey

I GOT IT!

I've been using other people's code as an example. I was using <texturepath> ... but noticed that my working code was using <texpath> ... and that switch made it work!

<li Class="patchOperationReplace">
<xpath>*/ThingDef[defName = "EyePatch"]/graphicData/texPath</xpath>
<value>
<texPath>Things/Item/BodyPart/EyePatch</texPath>
</value>
</li>