HELP i get 2 errors on the mod im making

Started by PanConHuevo, August 13, 2021, 07:41:31 PM

Previous topic - Next topic

PanConHuevo

1st error

Could not load UnityEngine.Texture2D at Things\Item\Equipment\WeaponThrowable\HolyGrenadeBelt in any active mod or in base resources.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.ContentFinder`1<UnityEngine.Texture2D>:Get (string,bool)
Verse.Graphic_Single:Init (Verse.GraphicRequest)
Verse.GraphicDatabase:GetInner<Verse.Graphic_Single> (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__298_0 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()

2nd error

Could not execute post-long-event action. Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.GlobalTextureAtlasManager.TryInsertStatic (Verse.TextureAtlasGroup group, UnityEngine.Texture2D texture, UnityEngine.Texture2D mask) [0x00000] in <e6d267da40db4a01beb1ee5d02f19dd5>:0
  at Verse.Graphic_Single.TryInsertIntoAtlas (Verse.TextureAtlasGroup groupKey) [0x00036] in <e6d267da40db4a01beb1ee5d02f19dd5>:0
  at Verse.Graphic_RandomRotated.TryInsertIntoAtlas (Verse.TextureAtlasGroup group) [0x00000] in <e6d267da40db4a01beb1ee5d02f19dd5>:0
  at Verse.ThingDef.<PostLoad>b__298_0 () [0x00043] in <e6d267da40db4a01beb1ee5d02f19dd5>:0
  at Verse.LongEventHandler.ExecuteToExecuteWhenFinished () [0x0007c] in <e6d267da40db4a01beb1ee5d02f19dd5>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()

RawCode

what part of
QuoteCould not load Texture
you can't understand and what exactly issue is?

since you not provided any files or textures, i will roll "wild guess wheel" and suggest to save your texture in format, that unity can use, no .psd and other files generated by photoshop are not supported by unity (directly).