Tempus / Disciple-Monster-Train

Disciple-centric faction for Monster Train
2 stars 1 forks source link

OnSpawnChange bug - urgent #224

Closed Tempus closed 3 years ago

Tempus commented 3 years ago

2020-10-26T03:11:04 69 VERBOSE [Gameplay] Game state has changed. Recalculating combat results for battle previews. 2020-10-26T03:11:04 69 ERROR [Engine] NullReferenceException: Object reference not set to an instance of an object RoomState+<>c.b__131_0 (CharacterState a, CharacterState b) (at <3667516eca04491190309312066e5d05>:0) System.Collections.Generic.ArraySortHelper1[T].InsertionSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison1[T] comparer) (at <4756199cf52a4f14b33cdcc5659f782e>:0) System.Collections.Generic.ArraySortHelper1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison1[T] comparer) (at <4756199cf52a4f14b33cdcc5659f782e>:0) System.Collections.Generic.ArraySortHelper1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison1[T] comparer) (at <4756199cf52a4f14b33cdcc5659f782e>:0) System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison1[T] comparer) (at <4756199cf52a4f14b33cdcc5659f782e>:0) Rethrow as InvalidOperationException: Failed to compare two elements in the array. System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison1[T] comparer) (at <4756199cf52a4f14b33cdcc5659f782e>:0) System.Collections.Generic.List1[T].Sort (System.Comparison1[T] comparison) (at <4756199cf52a4f14b33cdcc5659f782e>:0) RoomState.AddCharactersToList (System.Collections.Generic.List1[T] outCharacters, Team+Type onTeam, System.Boolean allowDead) (at <3667516eca04491190309312066e5d05>:0) MonsterManager.AddCharactersInTowerToList (System.Collections.Generic.List1[T] outCharacters) (at <3667516eca04491190309312066e5d05>:0) DiscipleClan.Triggers.OnSpawnChangeTriggerPatch.Postfix (RoomManager instance, CharacterState characterState, SpawnPoint prevPoint, SpawnPoint newPoint) (at <0dd702d5c2244b9a827fa7de108074a2>:0) RoomManager.OnSpawnPointChanged (CharacterState characterState, SpawnPoint prevPoint, SpawnPoint newPoint) (at <3667516eca04491190309312066e5d05>:0) MonsterManager.OnSpawnPointChanged (CharacterState characterState, SpawnPoint prevPoint, SpawnPoint newPoint) (at <3667516eca04491190309312066e5d05>:0) CharacterState.SetSpawnPoint (SpawnPoint setSpawnPoint, System.Boolean animate, System.Boolean setPosition, System.Action onCharacterReachedPoint, System.Single delay) (at <3667516eca04491190309312066e5d05>:0) CharacterState.RemoveFromSpawnPoint () (at <3667516eca04491190309312066e5d05>:0) MonsterManager.SetCharacterPreviewState (CharacterState+CombatPreviewState previewState) (at <3667516eca04491190309312066e5d05>:0) CombatManager.SetCharacterPreviewState (CharacterState+CombatPreviewState previewState) (at <3667516eca04491190309312066e5d05>:0) CombatManager+d139.MoveNext () (at <3667516eca04491190309312066e5d05>:0) ShinyShoe.EnumeratorStack.Advance () (at <3667516eca04491190309312066e5d05>:0) ShinyShoe.EnumeratorStack.RunOnce () (at <3667516eca04491190309312066e5d05>:0) ShinyShoe.CoroutineController+d__12.MoveNext () (at <3667516eca04491190309312066e5d05>:0) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <4a24a4d00a4a4c199fb9b7176a22a2d7>:0)

CoroutineController callstack:

Tempus commented 3 years ago

Fixed