Says no textures found at the folder directory where I am storing the textures

Started by reapingracoon, August 13, 2021, 04:38:43 PM

Previous topic - Next topic

reapingracoon

Collection cannot init: No textures found at path Texture/Things/Item/Drug/TastyPickles
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Graphic_Collection:Init (Verse.GraphicRequest)
Verse.GraphicDatabase:GetInner<Verse.Graphic_StackCount> (Verse.GraphicRequest)
Verse.GraphicDatabase:Get (System.Type,string,UnityEngine.Shader,UnityEngine.Vector2,UnityEngine.Color,UnityEngine.Color,Verse.GraphicData,System.Collections.Generic.List`1<Verse.ShaderParameter>,string)
Verse.GraphicData:Init ()
Verse.GraphicData:get_Graphic ()
Verse.ThingDef:<PostLoad>b__304_0 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
Verse.Root:Update ()
Verse.Root_Entry:Update ()


this is the code where I say where I want to load textures from in the def:
<graphicData>
         <texPath>Texture/Things/Item/Drug/TastyPickles</texPath>
         <graphicClass>Graphic_StackCount</graphicClass>
      </graphicData>

Canute

And now the 1.000.000 rubbercoin question:
Where are the textures are located and how they are named.

Or maybe casesensitive with the path?

reapingracoon

Quote from: Canute on August 13, 2021, 05:01:33 PM
And now the 1.000.000 rubbercoin question:
Where are the textures are located and how they are named.

Or maybe casesensitive with the path?
I have correctly capitalized the path. the textures are named TastyPickles_a.png and TastyPickles_b.png like the guide I am following said to name them.

RawCode



RawCode

copy path from explorer right above or below path listed in your XML and you will notice, that they are "a bit" different.

and issue is not with capitalization.

Shinzy

the path for textures that use random/stack count need to point to a folder by the name of the texture instead of the image file with the a/b/c variants

I can recommend grabbing the vanilla texture assets from here (if you haven't already) https://ludeon.com/forums/index.php?topic=2325.0 so you can visualize the texpath with them drugs better