Texture help

Started by blohod, August 05, 2017, 12:00:20 AM

Previous topic - Next topic

blohod

I don't understand <texPath>, what am I doing wrong?

Ingame error:

Resulting in:


My code (most not changed from muffalo yet, only interested in problem with finding the texture I have changed):
<ThingDef ParentName="AnimalThingBase">
    <defName>Donkey</defName>
    <label>donkey</label>
    <description>A large herding herbivore descended from buffalo and adapted for some exotic environment. Peaceful unless disturbed.</description>
    <statBases>
      <MoveSpeed>3.6</MoveSpeed>
      <ComfyTemperatureMin>-60</ComfyTemperatureMin>
      <MarketValue>500</MarketValue>
    </statBases>
    <verbs>
      <li>
        <verbClass>Verb_MeleeAttack</verbClass>
        <defaultCooldownTime>1.65</defaultCooldownTime>
        <meleeDamageBaseAmount>10</meleeDamageBaseAmount>
        <meleeDamageDef>Blunt</meleeDamageDef>
        <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
      </li>
    </verbs>
    <comps>
      <li Class="CompProperties_Milkable">
        <milkDef>Milk</milkDef>
        <milkIntervalDays>2</milkIntervalDays>
        <milkAmount>12</milkAmount>
      </li>
      <li Class="CompProperties_Shearable">
        <woolDef>WoolMuffalo</woolDef>
        <shearIntervalDays>25</shearIntervalDays>
        <woolAmount>100</woolAmount>
      </li>
    </comps>
    <race>
      <herdAnimal>true</herdAnimal>
      <body>QuadrupedAnimalWithHooves</body>
      <baseBodySize>2.1</baseBodySize>
      <baseHealthScale>1.75</baseHealthScale>
<baseHungerRate>0.85</baseHungerRate>
      <foodType>VegetarianRoughAnimal</foodType>
      <leatherColor>(152,170,174)</leatherColor>
      <leatherInsulation>1.0</leatherInsulation>
      <gestationPeriodDays>25</gestationPeriodDays>
      <wildness>0.5</wildness>
      <nuzzleMtbHours>120</nuzzleMtbHours>
<packAnimal>true</packAnimal>
      <lifeExpectancy>15</lifeExpectancy>
      <lifeStageAges>
        <li>
          <def>AnimalBaby</def>
          <minAge>0</minAge>
        </li>
        <li>
          <def>AnimalJuvenile</def>
          <minAge>0.25</minAge>
        </li>
        <li>
          <def>AnimalAdult</def>
          <minAge>0.5</minAge>
          <soundWounded>Pawn_Muffalo_Wounded</soundWounded>
          <soundDeath>Pawn_Muffalo_Death</soundDeath>
          <soundCall>Pawn_Muffalo_Call</soundCall>
          <soundAngry>Pawn_Muffalo_Angry</soundAngry>
        </li>
      </lifeStageAges>
      <soundMeleeHitPawn>Pawn_Melee_BigBash_HitPawn</soundMeleeHitPawn>
      <soundMeleeHitBuilding>Pawn_Melee_BigBash_HitBuilding</soundMeleeHitBuilding>
      <soundMeleeMiss>Pawn_Melee_BigBash_Miss</soundMeleeMiss>
    </race>
    <tradeTags>
      <li>StandardAnimal</li>
    </tradeTags>
  </ThingDef>
  <PawnKindDef Name="Donkey" ParentName="AnimalKindBase">
    <defName>Donkey</defName>
    <label>donkey</label>
    <race>Donkey</race>
    <combatPower>90</combatPower>
    <wildSpawn_spawnWild>true</wildSpawn_spawnWild>
    <wildSpawn_EcoSystemWeight>1</wildSpawn_EcoSystemWeight>
    <wildSpawn_GroupSizeRange>
      <min>3</min>
      <max>9</max>
    </wildSpawn_GroupSizeRange>
    <lifeStages>
      <li>
        <label>muffalo calf</label>
        <labelPlural>muffalo calves</labelPlural>
        <bodyGraphicData>
          <texPath>Things/Pawn/Animal/Donkey/Donkey</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/Donkey/Donkey</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/Donkey/Donkey</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>


My files are attached so you can see folder structure.

[attachment deleted by admin: too old]

jamaicancastle

I think you need _front and _back textures to go with your _side texture if you want a multi-texture to show up properly.

blohod

Quote from: jamaicancastle on August 05, 2017, 08:50:12 AM
I think you need _front and _back textures to go with your _side texture if you want a multi-texture to show up properly.
Thanks, I thought it would work and just show side with front and back as missing textures, apparently not. I put renamed muffalo front and back as placeholders and it worked, looks a bit weird when a donkey faces a different direction and turns into a muffalo though. :P