[0.18.1700] Invalid def

Started by duduluu, October 24, 2017, 12:36:02 PM

Previous topic - Next topic

duduluu

File: \\RimWorld\Mods\Core\Defs\PawnKindDefs_Humanlikes\PawnKinds_Mechanoid.xml

  <PawnKindDef Name="MechanoidBase" Abstract="True">
    <bodyGraphicData>
      <shaderType>Cutout</shaderType>
    </bodyGraphicData>
    <dessicatedBodyGraphicData>
      <shaderType>Cutout</shaderType>
    </dessicatedBodyGraphicData>
  </PawnKindDef>


The two node <bodyGraphicData> and <dessicatedBodyGraphicData> have wrong location.
RimTrans translation tool for RimWorld
RimWorld-English original text for translating RimWorld
RimWorld-zh.com my translation team website

ison

It has Abstract="True" which means it can be incomplete and have null texture paths. However I'm not sure if I understood the problem correctly. Are there any more problems with this def?

duduluu

I know what does "abstract" attribute use for.
I mean that these two elements are in wrong location, so that them not matched to any fields of PawnKindDef class.
They do not cause any error, just useless elements.

Other PawnKindDef like this, bodyGraphicData and dessicatedBodyGraphicData is in lifeStage:

  <PawnKindDef Name="Muffalo" ParentName="AnimalKindBase">
    <defName>Muffalo</defName>
    <!-- ... -->
    <lifeStages>
      <li>
        <label>muffalo calf</label>
        <labelPlural>muffalo calves</labelPlural>
        <bodyGraphicData>
          <texPath>Things/Pawn/Animal/Muffalo/Muffalo</texPath>
          <drawSize>1.5</drawSize>
          <shadowData>
            <volume>(0.4, 0.3, 0.3)</volume>
            <offset>(0,0,-0.2)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Pawn/Animal/Muffalo/MuffaloDessicated</texPath>
          <drawSize>1.5</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Things/Pawn/Animal/Muffalo/Muffalo</texPath>
          <drawSize>2.25</drawSize>
          <shadowData>
            <volume>(0.6, 0.45, 0.45)</volume>
            <offset>(0,0,-0.25)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Pawn/Animal/Muffalo/MuffaloDessicated</texPath>
          <drawSize>2.25</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Things/Pawn/Animal/Muffalo/Muffalo</texPath>
          <drawSize>3</drawSize>
          <shadowData>
            <volume>(0.8, 0.6, 0.6)</volume>
            <offset>(0,0,-0.3)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Pawn/Animal/Muffalo/MuffaloDessicated</texPath>
          <drawSize>3</drawSize>
        </dessicatedBodyGraphicData>
      </li>
    </lifeStages>
  </PawnKindDef>

RimTrans translation tool for RimWorld
RimWorld-English original text for translating RimWorld
RimWorld-zh.com my translation team website

ison

#3
Ah, makes sense, thanks.

That's weird, it should at least give an error. I'll check it.

// edit: ok, it's not giving errors because it's not even used anywhere. Fixed, thanks for reporting.