Trying to make a patch for the first time

Started by Sp0nge, July 06, 2017, 12:27:13 PM

Previous topic - Next topic

Sp0nge

No need to be sorry, that did transfer the values I was trying to transfer! However, I really dont understand the difference. When googling this all examples I found showed the @name usage, but is this due to me using <Operation Class="PatchOperationSequence"> and that I have allready directed it towards where it should be working?

kaptain_kavern

*/ThingDef[@Name="ACPAngoraRabbit"]

Is searching for <ThingDef Name="ACPAngoraRabbit">

Sp0nge

ThingDef[defName="ACPAngoraRabbit"

And voila! Works like intended. For some reason I didnt think that I was setting xpath to search for the wrong def, it was so obv. that I totally didnt see it.