fluffy-mods / ModManager

managing mods should be easy
Other
87 stars 32 forks source link

Texture2D error on mod load #40

Closed KongMD-Steam closed 5 years ago

KongMD-Steam commented 5 years ago

After loading the game with this mod enabled (latest version), the error below triggers in the debug log. I suspect it was caused by a change to this file in a recent commit: https://github.com/FluffierThanThou/ModManager/blob/c962a9bafbf1e5f1f4a3dac8ed0075cee488ac00/Source/ModManager/Utilities/Resources.cs

RimWorld 1.0.2231 rev1144
Verse.Log:Message(String, Boolean)
RimWorld.VersionControl:LogVersionNumber()
Verse.Root:CheckGlobalInit()
Verse.Root:Start()
Verse.Root_Entry:Start()

Could not load UnityEngine.Texture2D at UI/Icons/palette in any active mod or in base resources.
Verse.Log:Error(String, Boolean)
Verse.ContentFinder`1:Get(String, Boolean)
ModManager.Resources:.cctor()
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(IntPtr)
System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor(RuntimeTypeHandle)
Verse.StaticConstructorOnStartupUtility:CallAll()
Verse.PlayDataLoader:<DoPlayLoad>m__2()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent()
Verse.LongEventHandler:LongEventsUpdate(Boolean&)
Verse.Root:Update()
Verse.Root_Entry:Update()
FluffierThanThou commented 5 years ago

Thanks, the texture had the wrong case on my system, but apparently not in the steam distributed version. I've reverted the case, and made sure both 'palette' and 'Palette' are now accepted.