Patch issues?

Started by valentinevierra, July 27, 2019, 10:12:37 AM

Previous topic - Next topic

valentinevierra

I'm trying to patch the Planetside Politics mod (or my version of it) to work with Rimwriter so it can use the Rimwriter writing tables and typewriter for polemics, but I just can't seem to get the bill to show up on the writing table or typewriter. Have I made some massive glaring mistake with this?
Here's the patch.
https://pastebin.com/sL8afzGs

kwangiskhan

Alright I'm not the best at patching but I think I've got it. So you use patchOperationInsert which adds stuff NEXT to the path. So the original part was:
<recipeUsers>
   <li>CraftingSpot</li>
   <li>Politics_WritingDesk</li>
</recipeUsers>
and now with Insert you've made it:
<recipeUsers>
   <li>CraftingSpot</li>
   <li>Politics_WritingDesk</li>
</recipeUsers>

<li>RimWriter_TableTypewriter</li>
<li>RimWriter_TableWriting</li>
I would try using patchOperationAdd because according to the wiki, "PatchOperationAdd adds a child node to the selected node."
Keep your path and everything just change the patchOperation (If I'm wrong pls don't hurt me)

LWM

Quote from: kwangiskhan on July 27, 2019, 11:08:03 PM
Alright I'm not the best at patching...

Oh, I don't know.  Sounds like 10 points to the person who paid attention to the operation and was able to point to a reference in the wiki 8)

Heh.  I wrote some of the wiki patch examples... and couldn't figure out what was wrong.  I think it's so fantastic that we help each other!  And I'm glad because we all make mistakes.