bbradson / Performance-Fish

Performance Mod for RimWorld
Mozilla Public License 2.0
423 stars 34 forks source link

Map generation error #35

Closed Saehlos closed 2 months ago

Saehlos commented 2 months ago

I deleted performance fish and fishery today to download a new version, and after the download I could no longer load my colony. The icon is on the world map, but I could not zoom in or play. Did some testing with new files, and the game sends me back to main menu saying there is a map generation error.

Below is the only error log after attempting to open a test file

Exception from asynchronous event: System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array. at (wrapper stelemref) System.Object.virt_stelemref_class_small_idepth(intptr,object) at System.Array.Fill[T] (T[] array, T value) [0x00012] in :0 at FisheryLib.Collections.FishSet1[T].Initialize (System.Int32 minimumCapacity) [0x0001b] in <92c6fafc44344426b2485444b51df09b>:0 at FisheryLib.Collections.FishSet1[T]..ctor (System.Int32 minimumCapacity) [0x00032] in <92c6fafc44344426b2485444b51df09b>:0 at FisheryLib.Collections.FishSet1[T]..ctor () [0x00000] in <92c6fafc44344426b2485444b51df09b>:0 at PerformanceFish.ParallelNoAlloc.RegisterBackgroundWaitingWorkers (System.Action[] actions) [0x0001c] in <3831104e5e5349baa6f3d3690501cf77>:0 at PerformanceFish.PrepatcherFields.CreateGroupMonitorObject () [0x00005] in <3831104e5e5349baa6f3d3690501cf77>:0 at Verse.Map..ctor () [0x00048] in <0f44124915ec469b8a0ef6daf05b1c19>:0 at (wrapper dynamic-method) Verse.MapGenerator.Verse.MapGenerator.GenerateMap_Patch8(Verse.IntVec3,RimWorld.Planet.MapParent,Verse.MapGeneratorDef,System.Collections.Generic.IEnumerable1,System.Action`1) at (wrapper dynamic-method) Verse.Game.Verse.Game.InitNewGame_Patch5(Verse.Game) at Verse.Root_Play+<>c.b1_2 () [0x00011] in <0f44124915ec469b8a0ef6daf05b1c19>:0 at Verse.LongEventHandler.RunEventFromAnotherThread (System.Action action) [0x00008] in <0f44124915ec469b8a0ef6daf05b1c19>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) Verse.LongEventHandler:RunEventFromAnotherThread (System.Action) Verse.LongEventHandler/<>c:b27_0 () System.Threading.ThreadHelper:ThreadStart_Context (object) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object) System.Threading.ThreadHelper:ThreadStart ()

bbradson commented 2 months ago

Should be fixed now, with this commit: https://github.com/bbradson/Fishery/commit/040a756d2eadfb09e565d75014eb5eef540c3555