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>
That dash before the first <Defs> looks awfully suspicious. Is that in the code??
Apparently it was. I have removed it and will test if that has an effect when I have the chance.
That does seem to have fixed it. Thanks for the assist. I have no idea where that dash came from though.
Check the last posting from
https://ludeon.com/forums/index.php?topic=55867.0
and maybe try a syntax checker.