Open Vectorial1024 opened 5 years ago
Confirmed and fixed the defensive battle thought bug.
EDIT: The fix will be in the upcoming v1.5.1.
As a matter of documentation, here is an example log of the translation error:
Exception in DrawThoughtGroup for MyGrandparentWasKidnapped on M-Vert: System.FormatException: Input string was not in a correct format.
at System.String.ParseFormatSpecifier (System.String str, System.Int32& ptr, System.Int32& n, System.Int32& width, System.Boolean& left_align, System.String& format) [0x00000] in <filename unknown>:0
at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in <filename unknown>:0
at System.String.Format (System.String format, System.Object arg0) [0x00000] in <filename unknown>:0
at RimWorld.Thought_Memory.get_LabelCap () [0x00000] in <filename unknown>:0
at RimWorld.NeedsCardUtility.DrawThoughtGroup (Rect rect, RimWorld.Thought group, Verse.Pawn pawn) [0x00000] in <filename unknown>:0
Verse.Log:Error(String, Boolean)
Verse.Log:ErrorOnce(String, Int32, Boolean)
RimWorld.NeedsCardUtility:DrawThoughtGroup(Rect, Thought, Pawn)
RimWorld.NeedsCardUtility:DrawThoughtListing(Rect, Pawn, Vector2&)
RimWorld.NeedsCardUtility:DoMoodAndThoughts(Rect, Pawn, Vector2&)
RimWorld.NeedsCardUtility:DoNeedsMoodAndThoughts(Rect, Pawn, Vector2&)
RimWorld.ITab_Pawn_Needs:FillTab_Patch2(Object)
Verse.<DoTabGUI>c__AnonStorey0:<>m__0()
Verse.ImmediateWindow:DoWindowContents(Rect)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
This log was first posted here from the Pull Requests, as the bug was uncovered while attempting translation to French. Many thanks to Mihokyo for providing this log.
It would seem like this bug originates from RimWorld. A bug report should be submitted to Ludeon to have this fixed out of the way, since I have no control over it.
There are multiple suspected issues: