Requesting Help with an Error

Started by DarkArchivist, December 12, 2021, 03:02:31 AM

Previous topic - Next topic

DarkArchivist

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>

cory3573

That dash before the first <Defs> looks awfully suspicious. Is that in the code??

DarkArchivist

Apparently it was. I have removed it and will test if that has an effect when I have the chance.

DarkArchivist

That does seem to have fixed it. Thanks for the assist. I have no idea where that dash came from though.

Canute