Failed to load textures

Started by Scythes, June 23, 2019, 12:30:30 PM

Previous topic - Next topic

Scythes

This particular file won't load textures but the other will, and I can't spot the difference or conclude why it won't load
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

  <ThingDef ParentName="AnimalThingBase">
    <defName>Bomu</defName>
    <label>bomu</label>
    <description>Domesticated and advanced with engineering from the ex-nayah people,
      the Bomu is an explosive farmanimal for the ex-nayah people,
      it lays eggs and is milkable for chemfuel.
      On top of that it has 2 claws on the front, added by the ex-nayah people to defend itself from the local wildlife when it was first domesticated.</description>
    <statBases>
      <MoveSpeed>6.1</MoveSpeed>
      <MarketValue>475</MarketValue>
      <LeatherAmount>0</LeatherAmount>
      <ComfyTemperatureMin>-10</ComfyTemperatureMin>
    </statBases>
    <tools>
      <li>
        <label>hoof</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>5</power>
        <cooldownTime>4.5</cooldownTime>
        <linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
      </li>
      <li>
        <label>hoof</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>3</power>
        <cooldownTime>2</cooldownTime>
        <linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
      </li>
      <li>
        <label>head</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>5</power>
        <cooldownTime>5</cooldownTime>
        <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
        <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
        <chanceFactor>0.5</chanceFactor>
      </li>
    </tools>
    <comps>
      <li Class="CompProperties_EggLayer">
        <eggFertilizedDef>BomuEggFertilized</eggFertilizedDef>
        <eggFertilizationCountMax>1</eggFertilizationCountMax>
        <eggLayIntervalDays>5</eggLayIntervalDays>
        <eggCountRange>1</eggCountRange>
      </li>
      <li Class="CompProperties_Milkable">
          <milkDef>Chemfuel</milkDef>
          <milkIntervalDays>2</milkIntervalDays>
          <milkAmount>12</milkAmount>
          <milkFemaleOnly>false</milkFemaleOnly>
      </li>
    </comps>
    <race>
      <body>QuadrupedAnimalWithHooves</body>
      <baseHungerRate>0.35</baseHungerRate>
      <baseBodySize>0.35</baseBodySize>
      <baseHealthScale>0.7</baseHealthScale>
      <foodType>VegetarianRoughAnimal</foodType>
      <trainability>None</trainability>
      <wildness>0</wildness>
      <manhunterOnTameFailChance>0</manhunterOnTameFailChance>
      <manhunterOnDamageChance>0</manhunterOnDamageChance>
      <mateMtbHours>8</mateMtbHours>
      <lifeExpectancy>30</lifeExpectancy>
      <lifeStageAges>
        <li>
          <def>AnimalBabyTiny</def>
          <minAge>0</minAge>
          <soundWounded>Pawn_Megascarab_Wounded</soundWounded>
          <soundDeath>Pawn_Megascarab_Death</soundDeath>
          <soundCall>Pawn_Megascarab_Call</soundCall>
          <soundAngry>Pawn_Megascarab_Angry</soundAngry>
        </li>
        <li>
          <def>AnimalJuvenile</def>
          <minAge>0.12</minAge>
        </li>
        <li>
          <def>AnimalAdult</def>
          <minAge>0.3</minAge>
          <soundWounded>Pawn_Megascarab_Wounded</soundWounded>
          <soundDeath>Pawn_Megascarab_Death</soundDeath>
          <soundCall>Pawn_Megascarab_Call</soundCall>
          <soundAngry>Pawn_Megascarab_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>AnimalCommon</li>
      <li>AnimalFarm</li>
    </tradeTags>
  </ThingDef>

  <PawnKindDef ParentName="AnimalKindBase">
    <defName>Bomu</defName>
    <label>bomu</label>
    <race>Bomu</race>
    <combatPower>60</combatPower>
    <ecoSystemWeight>0.30</ecoSystemWeight>
    <lifeStages>
      <li>
        <label>baby</label>
        <bodyGraphicData>
          <texPath>Things/Animal/Panyan_Dogo/Panyandogo_east</texPath>
          <drawSize>1</drawSize>
          <shadowData>
            <volume>(0.475, 0.2, 0.3)</volume>
            <offset>(0,0,-0.2)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Animal/Panyan_Dogo/Dessicated_Panyandogo_east</texPath>
          <drawSize>1</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <label>juvenile</label>
        <bodyGraphicData>
          <texPath>Things/Animal/Panyan_Dogo/Panyandogo_east</texPath>
          <drawSize>1.75</drawSize>
          <shadowData>
            <volume>(0.72, 0.3, 0.45)</volume>
            <offset>(0,0,-0.25)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Animal/Panyan_Dogo/Dessicated_Panyandogo_east</texPath>
          <drawSize>1.75</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Things/Animal/Panyan_Dogo/Panyandogo_east</texPath>
          <drawSize>3.75</drawSize>
          <shadowData>
            <volume>(1, 1.1, 1)</volume>
            <offset>(0,0,-0.05)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Animal/Panyan_Dogo/Dessicated_Panyandogo_east</texPath>
          <drawSize>3.75</drawSize>
        </dessicatedBodyGraphicData>
      </li>
    </lifeStages>
  </PawnKindDef>
</Defs>


That was the file with the error (I loaded the same texture as the other file to test if it had anything to do with the filepath (which it didnt))

<?xml version="1.0" encoding="utf-8" ?>
<Defs>

  <ThingDef ParentName="AnimalThingBase">
    <defName>PanyanDogo</defName>
    <label>panyandogo</label>
    <description>A huge herbivore sauropod-like creature part of the naya family</description>
    <statBases>
      <MoveSpeed>5.0</MoveSpeed>
      <MarketValue>1200</MarketValue>
      <ComfyTemperatureMin>5</ComfyTemperatureMin>
      <ComfyTemperatureMax>42.5</ComfyTemperatureMax>
    </statBases>
    <tools>
      <li>
        <label>hoof</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>10</power>
        <cooldownTime>4.5</cooldownTime>
        <linkedBodyPartsGroup>FrontLeftLeg</linkedBodyPartsGroup>
      </li>
      <li>
        <label>hoof</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>5</power>
        <cooldownTime>2</cooldownTime>
        <linkedBodyPartsGroup>FrontRightLeg</linkedBodyPartsGroup>
      </li>
      <li>
        <label>mouth</label>
        <capacities>
          <li>Bite</li>
        </capacities>
        <power>25</power>
        <cooldownTime>2.6</cooldownTime>
        <linkedBodyPartsGroup>Teeth</linkedBodyPartsGroup>
      </li>
      <li>
        <label>head</label>
        <capacities>
          <li>Blunt</li>
        </capacities>
        <power>20</power>
        <cooldownTime>5</cooldownTime>
        <linkedBodyPartsGroup>HeadAttackTool</linkedBodyPartsGroup>
        <ensureLinkedBodyPartsGroupAlwaysUsable>true</ensureLinkedBodyPartsGroupAlwaysUsable>
        <chanceFactor>0.5</chanceFactor>
      </li>
    </tools>
    <race>
      <body>QuadrupedAnimalWithHooves</body>
      <baseHungerRate>2.5</baseHungerRate>
      <baseBodySize>9.0</baseBodySize>
      <baseHealthScale>12.5</baseHealthScale>
      <foodType>VegetarianRoughAnimal</foodType>
      <leatherDef>Leather_PanyanDogo</leatherDef>
      <wildness>0.90</wildness>
      <manhunterOnTameFailChance>0.02</manhunterOnTameFailChance>
      <manhunterOnDamageChance>0.05</manhunterOnDamageChance>
      <gestationPeriodDays>40</gestationPeriodDays>
      <nameOnTameChance>1</nameOnTameChance>
      <lifeExpectancy>135</lifeExpectancy>
      <herdAnimal>true</herdAnimal>
      <lifeStageAges>
        <li>
          <def>AnimalBaby</def>
          <minAge>0</minAge>
        </li>
        <li>
          <def>AnimalJuvenile</def>
          <minAge>0.3</minAge>
        </li>
        <li>
          <def>AnimalAdult</def>
          <minAge>1.0</minAge>
          <soundWounded>Pawn_Rhinoceros_Wounded</soundWounded>
          <soundDeath>Pawn_Rhinoceros_Death</soundDeath>
          <soundCall>Pawn_Rhinoceros_Call</soundCall>
          <soundAngry>Pawn_Rhinoceros_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>AnimalUncommon</li>
      <li>AnimalFighter</li>
    </tradeTags>
  </ThingDef>
  <PawnKindDef ParentName="AnimalKindBase">
    <defName>PanyanDogo</defName>
    <label>panyandogo</label>
    <labelPlural>panyandogos</labelPlural>
    <race>PanyanDogo</race>
    <combatPower>420</combatPower>
    <ecoSystemWeight>1.5</ecoSystemWeight>
    <wildGroupSize>
      <min>1</min>
      <max>11</max>
    </wildGroupSize>
    <lifeStages>
      <li>
        <bodyGraphicData>
          <texPath>Things/Animal/Panyan_dogo/Panyandogo_east</texPath>
          <drawSize>3.25</drawSize>
          <shadowData>
            <volume>(0.475, 0.2, 0.3)</volume>
            <offset>(0,0,-0.2)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Animal/Panyan_dogo/Dessicated_Panyandogo_east</texPath>
          <drawSize>1.25</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Things/Animal/Panyan_dogo/Panyandogo_east</texPath>
          <drawSize>5.25</drawSize>
          <shadowData>
            <volume>(0.72, 0.3, 0.45)</volume>
            <offset>(0,0,-0.25)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Animal/Panyan_dogo/Dessicated_Panyandogo_east</texPath>
          <drawSize>5.25</drawSize>
        </dessicatedBodyGraphicData>
      </li>
      <li>
        <bodyGraphicData>
          <texPath>Things/Animal/Panyan_dogo/Panyandogo</texPath>
          <drawSize>6</drawSize>
          <shadowData>
            <volume>(0.95, 0.4, 0.6)</volume>
            <offset>(0,0,-0.3)</offset>
          </shadowData>
        </bodyGraphicData>
        <dessicatedBodyGraphicData>
          <texPath>Things/Animal/Panyan_dogo/Dessicated_Panyandogo_east</texPath>
          <drawSize>3</drawSize>
        </dessicatedBodyGraphicData>
      </li>
    </lifeStages>
  </PawnKindDef>










</Defs>

That's the one that does work

QuoteFailed to find any texture while constructing Multi(initPath=Things/Animal/Panyan_Dogo/Panyandogo_east, color=RGBA(1.000, 1.000, 1.000, 1.000), colorTwo=RGBA(1.000, 1.000, 1.000, 1.000)). Filenames have changed; if you are converting an old mod, recommend renaming textures from *_back to *_north, *_side to *_east, and *_front to *_south.
Verse.Log:Error(String, Boolean)
Verse.Graphic_Multi:Init(GraphicRequest)
Verse.GraphicDatabase:GetInner(GraphicRequest)

And that's the error


hauvega

Panyan_dogo and Panyan_Dogo  are 2 different folders.  What is the exact name of the folder?

Work on mod
Break mod
Fix Mod
Break mod again

Scythes

it's Panyan_dogo , so I fixed the capital letter mistake and it still gives me the error.

So I conclude that the code for some reason can't find the file location of the textures

here's my file structure of the full mod currently btw:
Mods > Ex-nayah > About > About.xml > Preview.jpg
Mods > Ex-nayah > Defs > ThingDefs > Item_Resource_AnimalProduct.xml, Item_Resource_Stuff_Leather.xml, Races_bomu.xml, Races_naya.xml
Mods > Ex-nayah > Textures > Things > Animal > Bomu > Bomu_east.png, Bomu_north.png, Bomu_south.png, Dessicated_Bomu_east.png
Mods > Ex-nayah > Textures > Things > Animal > Panyan_dogo > Dessicated_Panyandogo_east.png, Panyandogo_east.png, Panyandogo_north.png, Panyandogo_south.png

hauvega

Do you have mod so I can take a look at it?

Work on mod
Break mod
Fix Mod
Break mod again

Canute

Ok i am not a real modder just hacking into the XML abit,
but why
Quote<texPath>Things/Animal/Panyan_dogo/Panyandogo_east</texPath>
does "_east" is inside the path ?
_east and the other are just the endings for the files.
And isn't your path for the textures
"Things/Animal/Panyan_dogo"
or do you got a folder named "Dessicated_Panyandogo_east.png"
then the path are
"Things/Animal/Panyan_dogo/Dessicated_Panyandogo_east.png"
depend on your posting before.


Scythes

I followed your advice, It worked, I removed the _east prefix and it worked! thanks guys