Failed to find any textures

Started by Aevire, October 22, 2020, 11:49:48 AM

Previous topic - Next topic

Aevire

Hi,
I'm working on a simple mod which adds some more animals to the game. At this moment I can't fix issue with missing textures, as debug log says:



Could someone help me make this little part of mod work?

My XML Code:
<?xml version="1.0" encoding="UTF-8"?>

<Defs>
<!-- ======================================Koala Bear================================================== -->
<ThingDef ParentName="AnimalThingBase">
<defName>WA_KoalaBear</defName>
<label>koala</label>
<description>Koalas typically inhabit open eucalypt woodlands, and the leaves of these trees make up most of their diet.
\nBecause this eucalypt diet has limited nutritional and caloric content, koalas are largely sedentary and sleep up to 20 hours a day.
\nThey are asocial animals, and bonding exists only between mothers and dependent offspring.</description>
<statBases>
<MoveSpeed>2.1</MoveSpeed>
<MarketValue>175</MarketValue>
<ComfyTemperatureMin>-4</ComfyTemperatureMin>
<ComfyTemperatureMax>60</ComfyTemperatureMax>
</statBases>
<uiIconScale>1.2</uiIconScale>
<tools>
<li>
<label>left claw</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>2</power>
<cooldownTime>5</cooldownTime>
<linkedBodyPartsGroup>FrontLeftPaw</linkedBodyPartsGroup>
</li>
<li>
<label>right claw</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>2</power>
<cooldownTime>5</cooldownTime>
<linkedBodyPartsGroup>FrontRightPaw</linkedBodyPartsGroup>
</li>
<li>
<capacities>
<li>Bite</li>
</capacities>
<power>3</power>
<cooldownTime>5</cooldownTime>
<linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
<chanceFactor>0.3</chanceFactor>
</li>
<li>
<label>head</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>3</power>
<cooldownTime>5</cooldownTime>
<linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
<ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
<chanceFactor>0.1</chanceFactor>
</li>
</tools>
<race>
<body>QuadrupedAnimalWithPaws</body>
<baseBodySize>0.45</baseBodySize>
<baseHealthScale>0.6</baseHealthScale>
<baseHungerRate>0.05</baseHungerRate>
<foodType>VegetarianRoughAnimal</foodType>
<leatherDef>Leather_Light</leatherDef>
<wildness>0.90</wildness>
<mateMtbHours>12</mateMtbHours>
<gestationPeriodDays>7</gestationPeriodDays>
<litterSizeCurve>
<points>
<li>(0.5, 0)</li>
<li>(1, 1)</li>
<li>(2, 1)</li>
<li>(2.5, 0)</li>
</points>
</litterSizeCurve>
<lifeExpectancy>15</lifeExpectancy>
<lifeStageAges>
<li>
<def>AnimalBaby</def>
<minAge>0</minAge>
</li>
<li>
<def>AnimalJuvenile</def>
<minAge>0.20</minAge>
</li>
<li>
<def>AnimalAdult</def>
<minAge>0.6</minAge>
<soundWounded>Pawn_Rodent_Wounded</soundWounded>
<soundDeath>Pawn_Rodent_Death</soundDeath>
<soundCall>Pawn_Rodent_Call</soundCall>
<soundAngry>Pawn_Rodent_Angry</soundAngry>
</li>
</lifeStageAges>
<soundMeleeHitPawn>Pawn_Melee_SmallScratch_HitPawn</soundMeleeHitPawn>
<soundMeleeHitBuilding>Pawn_Melee_SmallScratch_HitBuilding</soundMeleeHitBuilding>
<soundMeleeMiss>Pawn_Melee_SmallScratch_Miss</soundMeleeMiss>
</race>
<tradeTags>
<li>AnimalUncommon</li>
</tradeTags>
</ThingDef>

<PawnKindDef ParentName="AnimalKindBase">
<defName>WA_KoalaBear</defName>
<label>koala</label>
<race>WA_KoalaBear</race>
<combatPower>20</combatPower>
<ecoSystemWeight>0.20</ecoSystemWeight>
<wildGroupSize>1~1</wildGroupSize>
<lifeStages>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
<color>(110,05,82)</color>
<drawSize>1.2</drawSize>
<shadowData>
<volume>(0.25, 0.25, 0.25)</volume>
<offset>(0, 0, -0.08)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Dessicated_Koala</texPath>
<drawSize>1.2</drawSize>
</dessicatedBodyGraphicData>
</li>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
<color>(178,170,158)</color>
<drawSize>1.4</drawSize>
<shadowData>
<volume>(0.3, 0.3, 0.3)</volume>
<offset>(0, 0, -0.08)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Dessicated_Koala</texPath>
<drawSize>1.4</drawSize>
</dessicatedBodyGraphicData>
</li>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
<color>(178,170,158)</color>
<drawSize>1.6</drawSize>
<shadowData>
<volume>(0.35, 0.4, 0.3)</volume>
<offset>(0, 0, -0.08)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Dessicated_Koala</texPath>
<drawSize>1.6</drawSize>
</dessicatedBodyGraphicData>
</li>
</lifeStages>
</PawnKindDef>

<!-- ========================================End=================================================== -->

</Defs>


And file directory:


Canute

I am not a modder.
But does you need to have 2 koala ?
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
Don't take Rimworld the 2. koala from the label ?
I would try that out.

Aevire

<PawnKindDef ParentName="AnimalKindBase">
<defName>WA_KoalaBear</defName>
<label>koala</label>
<race>WA_KoalaBear</race>
<combatPower>20</combatPower>
<ecoSystemWeight>0.20</ecoSystemWeight>
<wildGroupSize>1~1</wildGroupSize>
<lifeStages>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
<color>(110,05,82)</color>
<drawSize>1.2</drawSize>
<shadowData>
<volume>(0.25, 0.25, 0.25)</volume>
<offset>(0, 0, -0.08)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Dessicated_Koala</texPath>
<drawSize>1.2</drawSize>
</dessicatedBodyGraphicData>
</li>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
<color>(178,170,158)</color>
<drawSize>1.4</drawSize>
<shadowData>
<volume>(0.3, 0.3, 0.3)</volume>
<offset>(0, 0, -0.08)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Dessicated_Koala</texPath>
<drawSize>1.4</drawSize>
</dessicatedBodyGraphicData>
</li>
<li>
<bodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Koala</texPath>
<color>(178,170,158)</color>
<drawSize>1.6</drawSize>
<shadowData>
<volume>(0.35, 0.4, 0.3)</volume>
<offset>(0, 0, -0.08)</offset>
</shadowData>
</bodyGraphicData>
<dessicatedBodyGraphicData>
<texPath>Things/Pawn/Animal/Koala/Dessicated_Koala</texPath>
<drawSize>1.6</drawSize>
</dessicatedBodyGraphicData>
</li>
</lifeStages>
</PawnKindDef>


Before asking for some help on this forum, I have already made some research on google. I already have the thing You said implemented in my <PawnKindDef>.

I have also tried:
- changing file directory;
- changing texture names to Koala_front, Koala_back etc.;
- changing size of textures to 64 x 64 px;

Images are saved in .png format and size 256 x 256 px.

I guess there is some easy solution to this problem but I can't seem to find it.

Canute

I jsut did a look at an animal xml
<texPath>Animals/Guardian</texPath>
Filestructure
\modname\Textures\Animals

Looks like Rimworld looks at the a Textures folder, which you are missing.

Aevire


LWM

If you have Koala_etc in YourModName/Textures/Animals/Koala/ then the texpath would be Animals/Koala/Koala


Aevire

Works like a charm - Problem Solved.

Thank you all for your time and help! :)


Onatah

I just wanted to pop in and say thanks for this thread and the replies.  I was having this exact issue with an abandoned mod that I wanted to get updated, and I had a heck of a time figuring out how to fix this, though my case was specifically about the sprite for a dessicated body.