OS: Windows 10, 22H2
Game Version: U52-623711-V
Mod version: WGSM 3.0.3.141
Saw this as a comment in the workshop, tested it out and wouldn't you know, crashed for me too. My initial assumption that someone using a comment section for bug reporting wouldn't post an issue sadly also seems correct, so here we are.
This is specifically for using [X] to close the trait selector, using confirm does not crash the game.
To replicate:
Create new game, does not matter if survival/no sweat or standard/the lab
At Choose a destination, open WGSM: Traits Selector
Close Traits Selector by clicking [X]
Attempt to open Traits Selector again
ArgumentException: An item with the same key has already been added. Key: ProcGen.WorldTrait
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Ony.OxygenNotIncluded.WGSM.WorldVisual.<Setup>b__26_0 (UnityEngine.GameObject b) (at <581a9879139a4b8dadbad187de1223d9>:0)
Ony.UnityUI.UI+<>c__DisplayClass9_0.<AddIconButton>b__0 () (at <581a9879139a4b8dadbad187de1223d9>:0)
KButton.SignalClick (KKeyCode btn) (at <0a61a0e7beaf44b6b425814476821935>:0)
KButton.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at <0a61a0e7beaf44b6b425814476821935>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at <e9635660f69b4d9d84c085aeda3be353>:0)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at <e9635660f69b4d9d84c085aeda3be353>:0)
UnityEngine.EventSystems.EventSystem:Update()
Build: U52-623711-V
OS: Windows 10, 22H2 Game Version: U52-623711-V Mod version: WGSM 3.0.3.141
Saw this as a comment in the workshop, tested it out and wouldn't you know, crashed for me too. My initial assumption that someone using a comment section for bug reporting wouldn't post an issue sadly also seems correct, so here we are. This is specifically for using [X] to close the trait selector, using confirm does not crash the game.
To replicate: