[Solved]Huge pink block in place of created animal sprites?

Started by RonaldTheBum, April 11, 2017, 05:42:06 AM

Previous topic - Next topic

RonaldTheBum

So I've been playing around with rimworld modding and have been working on putting a personal animal mod together, low quality stuff. However no matter what i do or change, the animal's sprite just ends up being a huge pink block wandering around instead of what i drew. I'm at a loss as how to solve this, i couldnt find any texture tutorials that could answer this. help plz
<PawnKindDef ParentName="AnimalKindBase">
    <defName>BodyEater</defName>
    <label>bodyeater</label>
    <race>BodyEater</race>
    <combatPower>165</combatPower>
    <wildSpawn_spawnWild>true</wildSpawn_spawnWild>
    <wildSpawn_EcoSystemWeight>1</wildSpawn_EcoSystemWeight>
    <wildSpawn_GroupSizeRange>
      <min>1</min>
      <max>3</max>
    </wildSpawn_GroupSizeRange>
    <lifeStages>
      <li>
        <label>Body Eater maggot</label>
        <labelPlural>Body Eater maggots</labelPlural>
        <bodyGraphicData>
          <texPath>Thing/Pawn/Animal/BodyEater/BodyEater</texPath>
          <drawSize>1.5</drawSize>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Thing/Pawn/Animal/BodyEater/BodyEater</texPath>
          <drawSize>1.5</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Thing/Pawn/Animal/BodyEater/BodyEater</texPath>
          <drawSize>2.25</drawSize>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Thing/Pawn/Animal/BodyEater/BodyEater</texPath>
          <drawSize>2.25</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Thing/Pawn/Animal/BodyEater/BodyEater</texPath>
          <drawSize>3</drawSize>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Thing/Pawn/Animal/BodyEater/BodyEater</texPath>
          <drawSize>3</drawSize>
        </dessicatedBodyGraphicData>
      </li>
    </lifeStages>
  </PawnKindDef>
</Defs>

Shinzy

I can't see anything wrong in there but then I'm half blind


First of all! make sure you have dev mode enabled, there could easily be some errors in your log you missed cause they didn't pop up

then make sure the file path and the .png files are exactly the same as in your xml. With capital letters and everything, it's very sensitive about that

also have you got the AnimalKindBase def with your mod aswell, it could have some important bits and bobs you're missing

and finally always reload the game after enabling a mod, sometimes the graphics won't load properly

RonaldTheBum

I had to go through and meticulously check my spelling and consistency. It turns out that i had capitalized in one spot and not in another as well as wrote thing in one place and things in another. Thanks a bunch for your help! it works now!   ;D

Shinzy

Quote from: RonaldTheBum on April 11, 2017, 02:57:50 PM
I had to go through and meticulously check my spelling and consistency. It turns out that i had capitalized in one spot and not in another as well as wrote thing in one place and things in another. Thanks a bunch for your help! it works now!   ;D

Okay! glad to know ;D