voxeltycoon / issues

17 stars 4 forks source link

The cargo platform was destroyed #983

Closed isPoto closed 1 year ago

isPoto commented 1 year ago

Describe the bug Stations are always destroyed and the error at the top of the screen prompts causes.

When I click on a destroyed building, its building window shows that your building has been destroyed and then a red banner appears at the top of the screen warning you that an error has occurred. Then I can't close the destroyed building window, and I can feel a significant drop in responsiveness. And it still says your building is destroyed even if I delete it and rebuild it. No longer able to play properly

Steps to reproduce image image image

Build version v0.87.2.0

Platform Win10 21H1

Reproducibility often

Logs/saves ArgumentException: At least one object must implement IComparable. System.Collections.Comparer.Compare (System.Object a, System.Object b) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Collections.Generic.ObjectComparer1[T].Compare (T x, T y) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Linq.EnumerableSorter2[TElement,TKey].CompareAnyKeys (System.Int32 index1, System.Int32 index2) (at <523a924aba464755b1747653b71e5189>:0) System.Linq.EnumerableSorter2[TElement,TKey].CompareAnyKeys (System.Int32 index1, System.Int32 index2) (at <523a924aba464755b1747653b71e5189>:0) System.Collections.Generic.ComparisonComparer1[T].Compare (T x, T y) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Collections.Generic.ArraySortHelper1[T].SwapIfGreater (T[] keys, System.Comparison1[T] comparer, System.Int32 a, System.Int32 b) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Collections.Generic.ArraySortHelper1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison1[T] comparer) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Collections.Generic.ArraySortHelper1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison1[T] comparer) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Collections.Generic.ArraySortHelper1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Collections.Generic.IComparer1[T] comparer) (at <9aad1b3a47484d63ba2b3985692d80e9>: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.Collections.Generic.IComparer1[T] comparer) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Array.Sort[T] (T[] array, System.Int32 index, System.Int32 length, System.Collections.Generic.IComparer1[T] comparer) (at <9aad1b3a47484d63ba2b3985692d80e9>:0) System.Linq.EnumerableSorter2[TElement,TKey].QuickSort (System.Int32[] keys, System.Int32 lo, System.Int32 hi) (at <523a924aba464755b1747653b71e5189>:0) System.Linq.EnumerableSorter1[TElement].Sort (TElement[] elements, System.Int32 count) (at <523a924aba464755b1747653b71e5189>:0) System.Linq.OrderedEnumerable1[TElement].SortedMap (System.Linq.Buffer1[TElement] buffer) (at <523a924aba464755b1747653b71e5189>:0) System.Linq.OrderedEnumerable1[TElement].ToList () (at <523a924aba464755b1747653b71e5189>:0) System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) (at <523a924aba464755b1747653b71e5189>:0) VoxelTycoon.Game.UI.StorageNetworking.StorageNetworkTabHelper.InvalidateSourcesAndTargets (VoxelTycoon.IStorageNetworkNode currentNode, System.Collections.Generic.List1[T] sourceNodes, System.Collections.Generic.List`1[T] targetNodes, UnityEngine.Transform sourcesContainer, UnityEngine.Transform sourcesItemsContainer, UnityEngine.Transform targetsContainer, UnityEngine.Transform targetsItemsContainer) (at :0) VoxelTycoon.Game.UI.StationWindowOverviewTab.InvalidateSourcesAndTargets () (at :0) VoxelTycoon.Game.UI.StationWindowOverviewTab.Update () (at :0)

andrewpey commented 1 year ago

Can I ask you to share a save file with a broken station please?

isPoto commented 1 year ago

Can I ask you to share a save file with a broken station please?

How do I find this file?

andrewpey commented 1 year ago

@isPoto Load game -> Tree dots in the top right corner -> Share. image

andrewpey commented 1 year ago

Nvm, we've located the issue, and it will be fixed with the next beta update. Thank you.

andrewpey commented 1 year ago

Fix available on the beta branch.