RimWorld

RimWorld

Moody
Doug 29 Apr, 2024 @ 6:43pm
Psychite or go-juice dependency hediff causing silent error
Silent warnings or errors are triggered that don't appear in the log but DO contribute to the message limit counter. The dependency hediff says its from Biotech, not a mod. However, it should be noted that yes I do have quite a few mods installed.


Full stack trace:
Reached max messages limit. Stopping logging to avoid spam. UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Warning_Patch0 (string) Verse.Log:Notify_MessageReceivedThreadedInternal (string,string,UnityEngine.LogType) UnityEngine.Application:CallLogCallback (string,string,UnityEngine.LogType,bool) UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[]) UnityEngine.Logger:Log (UnityEngine.LogType,object) UnityEngine.Debug:LogWarning (object) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool,single,UnityEngine.Color,UnityEngine.Color,UnityEngine.Color,UnityEngine.Color,UnityEngine.Vector4,UnityEngine.Vector4,bool) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool,single,UnityEngine.Color,UnityEngine.Vector4,UnityEngine.Vector4,bool) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool,single,UnityEngine.Color,UnityEngine.Vector4,UnityEngine.Vector4) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool,single,UnityEngine.Color,UnityEngine.Vector4,single) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool,single,UnityEngine.Color,single,single) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool,single) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode,bool) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture,UnityEngine.ScaleMode) UnityEngine.GUI:DrawTexture (UnityEngine.Rect,UnityEngine.Texture) Moody.PawnAlerts.Alert:DrawTexture (UnityEngine.Rect) Moody.PawnAlerts.Alert:DrawInternal (UnityEngine.Rect) Moody.PawnAlerts.Alert:Draw (UnityEngine.Rect) Moody.Table.Columns.HealthSummaryColumn:CellRenderer (UnityEngine.Rect,Verse.Pawn) Moody.Table.Cell`1<Verse.Pawn>:Draw (UnityEngine.Rect,Moody.Table.Row) Moody.Table.Table:DrawCell (Moody.Table.Cell,UnityEngine.Rect,Moody.Table.Row) Moody.Table.Table:DrawRow (Moody.Table.Row,UnityEngine.Rect) Moody.Table.Table:Draw (UnityEngine.Rect) Moody.Views.SummaryView:Draw (UnityEngine.Rect) Moody.Views.MoodyView:DrawDashboard (UnityEngine.Rect) Moody.MoodyWindow:DoWindowContents (UnityEngine.Rect) Moody.MoodyWindow/<>c__DisplayClass73_0:<WindowOnGuiBase>b__0 (int) UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
< >
Showing 1-4 of 4 comments
Doug 29 Apr, 2024 @ 6:44pm 
And yes, both dependencies appear to be from the pawns' genes.
Giant Space Hamster  [developer] 29 Apr, 2024 @ 7:25pm 
I have not been able to reproduce this so it may be a mod incompatibility, or it may be an edge case we haven't identified all the factors for yet. I just uploaded a new version with a quick change but I'm not sure if it will fix the issue.

Is this impacting gameplay or Moody's display at all? Or just log spam? Uploading a copy of a save game that can reproduce the issue would help.
Doug 29 Apr, 2024 @ 10:38pm 
Your update worked. Funny thing, I originally posted on the comments section saying that the fix is probably to add " && this.TextureAndColor.Value.Texture != null" but I deleted it because I wasn't sure. Sure enough it seems like it fixed the problem.

However, your added warning for a missing texture for hediff state icon is *not* being triggered. So thats bizarre. But anyways, your fix works and helps a lot, thanks.
Giant Space Hamster  [developer] 30 Apr, 2024 @ 3:18am 
Glad it worked
< >
Showing 1-4 of 4 comments
Per page: 1530 50