Ludeon Forums

RimWorld => Mods => Help => Topic started by: DarkArchivist on December 12, 2021, 03:02:31 AM

Title: Requesting Help with an Error
Post by: DarkArchivist on December 12, 2021, 03:02:31 AM
I Recently made a small mod consisting of a single trait and a patch for related thought defs.  Rimworld is giving me an "unknown parse error" pointing at the TraitDef file. I have been unable to figure out why or how to fix it. Here is the file.

<?xml version="1.0" encoding="UTF-8"?>

-<Defs>
  <TraitDef>
    <defName>SemiNudist</defName>
    <commonality>0.7</commonality>
    <degreeDatas>
      <li>
        <label>semi nudist</label>
        <description>{PAWN_nameDef} doesn't care about clothes. {PAWN_pronoun} is equally comfortable without clothes as they are with them.</description>
      </li>
    </degreeDatas>
  </TraitDef>
</Defs>
Title: Re: Requesting Help with an Error
Post by: cory3573 on December 12, 2021, 10:52:58 AM
That dash before the first <Defs> looks awfully suspicious. Is that in the code??
Title: Re: Requesting Help with an Error
Post by: DarkArchivist on December 12, 2021, 02:06:48 PM
Apparently it was. I have removed it and will test if that has an effect when I have the chance.
Title: Re: Requesting Help with an Error
Post by: DarkArchivist on December 12, 2021, 02:34:03 PM
That does seem to have fixed it. Thanks for the assist. I have no idea where that dash came from though.
Title: Re: Requesting Help with an Error
Post by: Canute on December 12, 2021, 02:57:48 PM
Check the last posting from
https://ludeon.com/forums/index.php?topic=55867.0
and maybe try a syntax checker.