SamboyCoding / RimworldBetterLoading

Mod for the game RimWorld to add a fancier loading screen.
https://steamcommunity.com/sharedfiles/filedetails/?id=1999454301
22 stars 11 forks source link

Saving game is not proceeding #6

Closed LecrisUT closed 4 years ago

LecrisUT commented 4 years ago

Under certain conditions, this mod breaks the game saving. Using only BetterLoading, Harmony and HugsLib, all the most recent versions.

Steps to reproduce: QuickStart a colony, Save a game Symptoms:

I hope @UnlimitedHugs can pitch in as well.

SamboyCoding commented 4 years ago

Narrowed down to HugsLib not calling all the mod finalising methods when it has quickstart enabled, so betterloading doesn't think it's finished.

Fix implemented and tested working in https://github.com/SamboyCoding/RimworldBetterLoading/commit/26d689822157405881daa0b2725f1eb57f0723ac, will be released soon. Leaving open so I remember.

UnlimitedHugs commented 4 years ago

@SamboyCoding Which missing method call are you referring to?

SamboyCoding commented 4 years ago

@UnlimitedHugs Damn, I missed this, but it seems like one or more of HugsLibController#EnumerateChildMods, UpdateFeatureManager#InspectActiveMod, or one of the child mods' Initialize or DefsLoaded methods isn't being called when quickstarting, because the number it expects to be called is not equal to the number actually being called (which causes BL to get stuck without the HugsLib stage ever finishing).

As you can see in the workaround, I now just forcibly finish the stage once HugsLibController#LoadReloadInitialize finishes - which works fine.

UnlimitedHugs commented 4 years ago

@SamboyCoding All right, thanks for the info. I might need to investigate that on my end.