Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
System.ArgumentException: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'System.Comparison`1[System.ValueTuple`2[XenotypeSpawnControl.ModifiableXenotype,XenotypeSpawnControl.XenotypeChance]]'.
[Ref ECB9556D]
at System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer (System.Object comparer) [0x0000b] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x0000c] in <51fded79cd284d4d911c5949aff4cb21>:0
at System.Collections.Generic.List`1[T].Sort (System.Comparison`1[T] comparison) [0x00013] in <51fded79cd284d4d911c5949aff4cb21>:0
at XenotypeSpawnControl.ModSettingsWindow+Tab`1[T].ListXenotypes (UnityEngine.Rect outRect) [0x000da] in G:\Program Files (x86)\SteamLibrary\steamapps\common\RimWorld\Mods\Xenotype Spawn Control\Source\ModSettingsWindow.cs:192
at XenotypeSpawnControl.ModSettingsWindow+Tab`1[T].DoWindowContents (UnityEngine.Rect inRect) [0x00028] in G:\Program Files (x86)\SteamLibrary\steamapps\common\RimWorld\Mods\Xenotype Spawn Control\Source\ModSettingsWindow.cs:123
at XenotypeSpawnControl.ModSettingsWindow.DoWindowContents (UnityEngine.Rect inRect) [0x0010e] in G:\Program Files (x86)\SteamLibrary\steamapps\common\RimWorld\Mods\Xenotype Spawn Control\Source\ModSettingsWindow.cs:74
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
XenotypeSpawnControl.ModSettingsWindow:DoWindowContents (UnityEngine.Rect) (at G:/Program Files (x86)/SteamLibrary/steamapps/common/RimWorld/Mods/Xenotype Spawn Control/Source/ModSettingsWindow.cs:78)
XenotypeSpawnControl.XenotypeDiversityMod:DoSettingsWindowContents (UnityEngine.Rect) (at G:/Program Files (x86)/SteamLibrary/steamapps/common/RimWorld/Mods/Xenotype Spawn Control/Source/XenotypeDiversityMod.cs:35)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Dialog_ModSettings.DoWindowContents_Patch1 (RimWorld.Dialog_ModSettings,UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
System.ArgumentException: Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'System.Comparison`1[System.ValueTuple`2[XenotypeSpawnControl.ModifiableXenotype,XenotypeSpawnControl.XenotypeChance]]'.
[Ref ECB9556D] Duplicate stacktrace, see ref for original
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
XenotypeSpawnControl.ModSettingsWindow:DoWindowContents (UnityEngine.Rect) (at G:/Program Files (x86)/SteamLibrary/steamapps/common/RimWorld/Mods/Xenotype Spawn Control/Source/ModSettingsWindow.cs:78)
XenotypeSpawnControl.XenotypeDiversityMod:DoSettingsWindowContents (UnityEngine.Rect) (at G:/Program Files (x86)/SteamLibrary/steamapps/common/RimWorld/Mods/Xenotype Spawn Control/Source/XenotypeDiversityMod.cs:35)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Dialog_ModSettings.DoWindowContents_Patch1 (RimWorld.Dialog_ModSettings,UnityEngine.Rect)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)
The error in the logs is the same as posted above.
To cause the error, create a few custom xenotypes and save them so that they now show up in the list under the mod options for Xenotype Spawn Control. Then restart your game. After restart, go into Xenotype Spawn Control and go to the custom xenotypes tab. Delete a custom xenotype by clicking on the X next to it within Xenotype Spawn Control. Now go to the factions tab. Repeat this process until the factions tab breaks and no longer shows percentages or bars.
Note: This only happens if you delete the xenotype from Xenotype Spawn Control using the X within the mod options. If you delete the custom xenotype from the "Load Custom Xenotype" menu that Rimworld provides, everything seems to still work fine.
To fix the mod after you have broken it, add back the Custom Xenotype you've deleted.
I'm getting some weirdness in 1.6 adjusting faction xenotype percentages. In my Odyssey playthrough that's been running for almost 5 in game years now, I set the Yttakin faction to be 90% Yttakin, 10% a custom xenotype of mine that uses entirely vanilla genes. I noticed overtime when raids came that I was probably getting about 90% Yttakin, but instead of 10% of my custom xeno, I was getting mostly baseliners, I saw only a couple of my custom xeno those entire 4 years.
So this morning turned off all my mods except this one and Harmony and did some testing using dev mode to force raids. Got the same results, getting baseliners when I have it set to 0% baseliner. I then tried using the default Pirate gang faction set to 90% Yttakin 10% custom, still got baseliners. Changed the values from Absolute to Weighted, still got baseliners. Tried setting the Neanderthal faction to 90% Neanderthal, 10% my custom xenotype, still got baseliners.
I double checked the memes and pawn type tabs to make sure all that stuff was set to 100% baseliner so that it should default to what I have set on the faction tab. When I took the Pirate and Fierce tribe factions and made them 100% my custom xenotype, that worked as intended. It's only when there's a mix that the game throws baseliners more often than my custom xenotype. If I set values to be 50% Yttakin 50% my custom xenotype, I get more of my custom xeno, but still get more baseliners than my custom xeno.
When I used this mod in 1.5, I think I always had my custom xenos set to appear alongside baseliners or be 100% of a faction, so this issue may have existed in that version and I just never noticed.
Not sure if it's fixable or not, and having this mod as-is still way better than no mod at all, but I thought I'd share. Thanks again!