edbmods / EdBPrepareCarefully

EdB Prepare Carefully, a RimWorld mod
MIT License
232 stars 91 forks source link

Prepare carefully button does not open a window. #210

Closed PettyBitch closed 6 months ago

PettyBitch commented 6 years ago

When attempting to click on prepare carefully, the game will freeze for a minute and nothing will happen. A few things I think are worth mentioning:

On world generation, this error is spit out: Could not find player faction. Verse.Log:Error(String) RimWorld.Faction:get_OfPlayer() RimWorld.Planet.TileFinder:RandomStartingTile() ThatsAMoon.WorldGenStep_Moons:AddDestroyedMoon() ThatsAMoon.WorldGenStep_Moons:GenerateFresh(String) RimWorld.Planet.WorldGenerator:GenerateWorld(Single, String, OverallRainfall, OverallTemperature) RimWorld.Page_CreateWorldParams:m0() Verse.LongEventHandler:RunEventFromAnotherThread(Action) Verse.LongEventHandler:m1()

Clicking on the buttom will freeze the game, and after a while this error is spit out: Exception filling window for RimWorld.Page_ConfigureStartingPawns: System.NullReferenceException: Object reference not set to an instance of an object at EdB.PrepareCarefully.ProviderFactions..ctor () <0x000fe> at EdB.PrepareCarefully.PrepareCarefully.InitializeProviders () <0x0019f> at EdB.PrepareCarefully.PrepareCarefully.Initialize () <0x00023> at EdB.PrepareCarefully.HarmonyPatches.DoWindowContentsPostfix (UnityEngine.Rect,RimWorld.Page_ConfigureStartingPawns) <0x00171> at (wrapper dynamic-method) RimWorld.Page_ConfigureStartingPawns.DoWindowContents_Patch1 (object,UnityEngine.Rect) <0x0052b> at Verse.Window/cAnonStorey0.<>m0 (int) <0x00735>

Verse.Log:Error(String) Verse.cAnonStorey0:<>m0(Int32) UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

Full log: https://pastebin.com/SvEXnnQ1

I am on Rimworld V18.722, the minimum version that PrepareCarefully will run.

edbmods commented 6 years ago

Thanks for the pastebin of the logs. That does give me an idea of where the error is happening. Can you also paste the list of mods that you are using? It's almost always a mod incompatibility that causes these problems, and I can't fix it unless I know the mod list and the mod load order.

edbmods commented 6 months ago

Going through and closing old issues that are probably no longer relevant.