Collection could not Init. No Textures Found At Path...(Texture Path Bug)

Started by InterstellarOrbit, June 10, 2017, 09:25:00 PM

Previous topic - Next topic

InterstellarOrbit

Hello,
     I am working on a Mod which involves trees. However, The game cannot seem to find the file path. This is eerily similar to this post; https://ludeon.com/forums/index.php?topic=31919.0 But it seems to have been unanswered. I also have a Error saying that "Config error in RedTree: RedTree has null thingClass." Where can I define it? I have attached the Output log and a Screenshot of the debug log(Please dismiss the error with the Leafless Texture path). Here are the XML files:
(Tree)
Quote<?xml version="1.0" encoding="utf-8" ?>
<Defs>
   <ThingDef ParentName="WT_PlantBase">
      <defName>RedTree</defName>
      <label>Scolding Tree</label>
      <description>From the Tribes of the South, this tree holds a magical characteristic to it that it sears the skin when held.</description>
      <graphicData>
        <texPath>Things/Tree/RedTree</texPath>
        <graphicClass>Graphic_Single</graphicClass>
        <shadowData>
         <volume>(0.15, 0.3, 0.1)</volume>
        </shadowData>
      </graphicData>
      <statBases>
        <Beauty>6</Beauty>
      </statBases>
      <ingestible>
        <nutrition>0.25</nutrition>
      </ingestible><plant>
        <leaflessGraphicPath>Things/Plants/TreeOak_Leafless</leaflessGraphicPath>
        <growDays>25</growDays>
        <harvestedThingDef>RedWood</harvestedThingDef>
        <harvestWork>1250</harvestWork>
        <harvestYield>50</harvestYield>
      <wildBiomes>
         <TemperateForest>0.025</TemperateForest>
         <AridShrubland>0.05</AridShrubland>
         <Desert>0.08</Desert>
         <ExtremeDesert>0.177777777</ExtremeDesert>
      </wildBiomes>
         <sowResearchPrerequisites>
            <li>MultiAnalyzer</li>
         </sowResearchPrerequisites>
      </plant>
   </ThingDef>
</Defs>

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

   <ThingDef ParentName="WT_ResourseBase">
      <defName>RedWood</defName>
      <label>scolding wood</label>
      <description>From the Tribes of the South, this tree holds a magical characteristic to it that it sears the skin when held.</description>
      <graphicData>
        <texPath>Textures/Item/RedWood</texPath>
        <graphicClass>Graphic_StackCount</graphicClass>
      </graphicData>
      <equippedAngleOffset>-20</equippedAngleOffset>
      <soundInteract>Wood_Drop</soundInteract>
      <soundDrop>Wood_Drop</soundDrop>
      <statBases>
        <MarketValue>2.0</MarketValue>
        <MaxHitPoints>250</MaxHitPoints>
        <Mass>0.5</Mass>
        <Flammability>1.0</Flammability>
        <DeteriorationRate>1</DeteriorationRate>
        <MeleeWeapon_DamageAmount>10</MeleeWeapon_DamageAmount>
        <MeleeWeapon_Cooldown>1.5</MeleeWeapon_Cooldown>
        <SharpDamageMultiplier>0.3</SharpDamageMultiplier>
        <BluntDamageMultiplier>0.7</BluntDamageMultiplier>
      </statBases>
      <stuffProps>
        <stuffAdjective>wooden</stuffAdjective>
        <categories>
         <li>Woody</li>
        </categories>
        <commonality>0.1</commonality>
        <color>(204,0,0)</color>
        <constructEffect>ConstructWood</constructEffect>
        <appearance>Planks</appearance>
        <soundImpactStuff>BulletImpactWood</soundImpactStuff>
        <soundMeleeHitSharp>MeleeHit_Wood</soundMeleeHitSharp>
        <soundMeleeHitBlunt>MeleeHit_Wood</soundMeleeHitBlunt>
         <statFactors>
         <MaxHitPoints>0.75</MaxHitPoints>
         <Beauty>4</Beauty>
         <Flammability>0.75</Flammability>
         <WorkToMake>3</WorkToMake>
               <WorkToBuild>3</WorkToBuild>
         <DoorOpenSpeed>1.5</DoorOpenSpeed>
         <MeleeWeapon_Cooldown>1.0</MeleeWeapon_Cooldown>
        </statFactors>
      </stuffProps>
      <isBodyPartOrImplant>true</isBodyPartOrImplant>
      <thingCategories>
        <li>ResourcesRaw</li>
      </thingCategories>
      <techHediffsTags>
        <li>Poor</li>
      </techHediffsTags>
      <verbs>
        <li>
         <verbClass>Verb_MeleeAttack</verbClass>
         <hasStandardCommand>true</hasStandardCommand>
         <meleeDamageDef>Blunt</meleeDamageDef>
        </li>
      </verbs>
   </ThingDef>
</Defs>

Thank you for your help in advance.

[attachment deleted by admin due to age]

Shinzy

thingClass you should be able to find from the vanilla plantBase
    <thingClass>Plant</thingClass>


and this path
        <texPath>Textures/Item/RedWood</texPath>
shouldn't have the "Textures" bit in it at all


As for the RedTree, I can only assume there's a typo or something on the .png file or the file path
check all the folders and the texture for capital letters and everything (it is very sensitive about those)

InterstellarOrbit

Quote from: Shinzy on June 10, 2017, 11:29:31 PM
thingClass you should be able to find from the vanilla plantBase
    <thingClass>Plant</thingClass>


and this path
        <texPath>Textures/Item/RedWood</texPath>
shouldn't have the "Textures" bit in it at all


As for the RedTree, I can only assume there's a typo or something on the .png file or the file path
check all the folders and the texture for capital letters and everything (it is very sensitive about those)

Thank you for your reply.
It Seems that has fixed that issue, but now I am presented with another.
I still receive "Could not load UnityEngine.Texture2D At...."
I fixed the Defs, and the File path is correct. Could it be because of the Images being PNG's?

Shinzy

Quote from: InterstellarOrbit on June 11, 2017, 01:27:23 AM
Quote from: Shinzy on June 10, 2017, 11:29:31 PM
thingClass you should be able to find from the vanilla plantBase
    <thingClass>Plant</thingClass>


and this path
        <texPath>Textures/Item/RedWood</texPath>
shouldn't have the "Textures" bit in it at all


As for the RedTree, I can only assume there's a typo or something on the .png file or the file path
check all the folders and the texture for capital letters and everything (it is very sensitive about those)

Thank you for your reply.
It Seems that has fixed that issue, but now I am presented with another.
I still receive "Could not load UnityEngine.Texture2D At...."
I fixed the Defs, and the File path is correct. Could it be because of the Images being PNG's?

Png is a good format to use!
I really can't halp any further without seeing the error log (It can be found in the datafolder where your rimworld is instaled)

InterstellarOrbit

Quote from: Shinzy on June 11, 2017, 08:23:54 AM
Quote from: InterstellarOrbit on June 11, 2017, 01:27:23 AM
Quote from: Shinzy on June 10, 2017, 11:29:31 PM
thingClass you should be able to find from the vanilla plantBase
    <thingClass>Plant</thingClass>


and this path
        <texPath>Textures/Item/RedWood</texPath>
shouldn't have the "Textures" bit in it at all


As for the RedTree, I can only assume there's a typo or something on the .png file or the file path
check all the folders and the texture for capital letters and everything (it is very sensitive about those)

Thank you for your reply.
It Seems that has fixed that issue, but now I am presented with another.
I still receive "Could not load UnityEngine.Texture2D At...."
I fixed the Defs, and the File path is correct. Could it be because of the Images being PNG's?

Png is a good format to use!
I really can't halp any further without seeing the error log (It can be found in the datafolder where your rimworld is instaled)
Ah, Alright. I assume it's the output log, as I could not find any other logs. I have attached it.

[attachment deleted by admin due to age]

Shinzy

I'm guessing it just won't load the texture cause of the null thing class error. sometimes textures won't be loaded if there's other errors I've noticed

try to fix the thingclass and maybe even get rid of that tree leafless error message aswell :p

InterstellarOrbit

Quote from: Shinzy on June 11, 2017, 05:36:44 PM
I'm guessing it just won't load the texture cause of the null thing class error. sometimes textures won't be loaded if there's other errors I've noticed

try to fix the thingclass and maybe even get rid of that tree leafless error message aswell :p

I'm stumped.
After doing what you have suggested, it now gives me false Errors with textures involving(Possibly all) core Art Textures, even though I have never defined anything of them in my Defs. I will attach a copy of all my Defs in my mod, as well as the output log...Sorry for the inconvenience  :(

[attachment deleted by admin due to age]

Shinzy

for some reason it cannot find the parent for the Redwood item, I'm not entirely sure why

InterstellarOrbit

Quote from: Shinzy on June 11, 2017, 08:30:40 PM
for some reason it cannot find the parent for the Redwood item, I'm not entirely sure why

I may just rewrite all the defs, just to make sure. Thank you for your help.

Shinzy

check every line against vanilla equivalent of each def, you may spot the error that way! it could be just something really dumb that I couldn't see!

svend

I was having a similar problem and was racking my brains to work out what was going on. In the end I realised that my mod (I started with someone else's mod) has a "Textures" folder inside the 1.x version folders (currently there's just 1.3), so it wasn't looking in the "Textures" folder in the mod root folder.

I thought I'd just post this here if anyone else finds this thread when searching for the error and might have made the same mistake as me :)