Ludeon Forums

RimWorld => Mods => Help => Topic started by: Choosechee on May 26, 2021, 10:55:29 PM

Title: "Unexpected document element in patch XML; got Operation, expected 'Patch'"
Post by: Choosechee on May 26, 2021, 10:55:29 PM
So, I'm trying to make a mod that removes the limit of 100% talking for all social abilities. I've written this so far:
<?xml version="1.0" encoding="utf-8" ?>

<Patch>
<Operation Class="PatchOperationRemove">
<xpath>/Defs/StatDef[defName="NegotiationAbility"]/capacityFactors/li[1]/max</xpath>
</Operation>
</Patch>

As you can see, the operation is a child of 'Patch', so I don't know why I'm getting the error in the title. Please help!
Title: Re: "Unexpected document element in patch XML; got Operation, expected 'Patch'"
Post by: Choosechee on May 27, 2021, 09:20:22 PM
Okay, here's more information; The XML is in a 'Patches' folder in the folder for my mod, like it said on the Wiki. Is the Wiki outdated?
Title: Re: "Unexpected document element in patch XML; got Operation, expected 'Patch'"
Post by: Choosechee on May 28, 2021, 01:44:05 AM
Never mind, I think I edited the wrong def. There was one on my desktop that I edited instead of the one in the mods folder.