OneSaltyPringle / OPM-Parallax

This is the REPO for OneSaltyPringle's OPM Parallax 2.0 Configs
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

Parallax KeyNotFoundException Prevents Game from Starting when Kcalbeloh System v1.1.8 and Other Worlds v1.0.6 is also installed #2

Open Mercuri opened 2 months ago

Mercuri commented 2 months ago

KSP will load all patches/mods and then freeze with a black screen and the "Loading" spinner in the bottom corner and never reach the main menu.

Maybe I'm the idiot for trying to get multiple planet packs working together but this was working before the latest Kcalbeloh System update to v1.1.8 and OPM update to v2.2.11.

I've tested these mod combinations and found that they work:

So it's specifically the OPM + OPM-Parallax + Kcalbeloh System v1.1.8 + Other Worlds combination that causes issues and it appears to be due to a Parallax issue

edu.log shows this error which I believe is the main issue as it is not present without OPM-Parallax:

Condition:  KeyNotFoundException: The given key was not present in the dictionary.
StackTrace: System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <9577ac7a62ef43179789031239ba8798>:0)
ParallaxOptimized.SubdivisionData.DetermineMaterial () (at <0e26430d33fd4934bd1a6a58ed73bfc6>:0)
ParallaxOptimized.SubdivisionData..ctor (PQ quad, System.Int32 subdivisionLevel, System.Single subdivisionRadius, System.Boolean subdividable) (at <0e26430d33fd4934bd1a6a58ed73bfc6>:0)
ParallaxOptimized.PQSMod_Subdivide.OnQuadBuilt (PQ quad) (at <0e26430d33fd4934bd1a6a58ed73bfc6>:0)
PQS.Mod_OnQuadBuilt (PQ quad) (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQS.BuildQuad (PQ quad) (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.Build () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.SetVisible () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.UpdateVisibility () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.UpdateSubdivision () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.UpdateSubdivision () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.UpdateSubdivision () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.UpdateSubdivision () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQ.UpdateSubdivision () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PQS.UpdateQuadsInit () (at <4b449f2841f84227adfaad3149c8fdba>:0)
(wrapper dynamic-method) PQS.PQS.StartSphere_Patch0(PQS,bool)
PQS.ForceStart () (at <4b449f2841f84227adfaad3149c8fdba>:0)
PSystemSetup.ForceInitPQS (PQS pqsIn, UnityEngine.Transform target) (at <4b449f2841f84227adfaad3149c8fdba>:0)
PSystemSetup+<SetupLaunchSites>d__38.MoveNext () (at <4b449f2841f84227adfaad3149c8fdba>:0)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <12e76cd50cc64cf19e759e981cb725af>:0)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Here are the EDU logs from both a working and broken run as well as full logs from a broken run edu-broken.log edu-working.log Logs.zip

These are the only mods I have installed in my test:

Breaking Ground (BreakingGround-DLC 1.7.1)
ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.21)
Community Terrain Texture Pack (CommunityTerrainTexturePack 1:1.0.5)
ExceptionDetectorUpdated (EDU) (ExceptionDetectorUpdated 0.2_alpha_update)
Harmony 2 (Harmony2 2.2.1.0)
HyperEdit (HyperEdit 1.5.8.0)
Kcalbeloh System (KcalbelohSystem v1.1.8)
Kcalbeloh System 8k Textures (KcalbelohSystem-Textures-8k v1.1.8)
Kopernicus Expansion Continued-er (KopernicusExpansionContinueder Beta9.1.1)
Kopernicus Planetary System Modifier (Kopernicus 2:release-1.12.1-214)
KSP AVC (KSP-AVC 1.4.1.9)
KSP Community Fixes (KSPCommunityFixes 1.35.2)
Making History (MakingHistory-DLC 1.12.1)
ModularFlightIntegrator (ModularFlightIntegrator 1.2.10.0)
Module Manager (ModuleManager 4.2.3)
Other Worlds - Story and Planet Mod (OtherWorlds 1:1.0.6)
Outer Planets Mod (OuterPlanetsMod 2:2.2.11)
Outer Planets Mod - Parallax with Scatters (Parallax-OuterPlanetsMod v1.0.5)
Parallax (Parallax 2.0.8)
Parallax - Stock Planet Textures (Parallax-StockTextures 2.0.8)
Parallax - Stock Scatter Textures (Parallax-StockScatterTextures 2.0.8)
Scatterer (Scatterer 3:v0.0878)
Scatterer Default Config (Scatterer-config 3:v0.0878)
Scatterer Sunflare (Scatterer-sunflare 3:v0.0878)
Singularity (Singularity 0.991)
Toolbar (Toolbar 1:1.8.1.1)
Toolbar Controller (ToolbarController 1:0.1.9.11)
Vertex Mitchell-Netravali Filtered Heightmap (VertexMitchellNetravaliHeightMap 0.3)
VertexColorMapEmissive (VertexColorMapEmissive 1.0.0)
WasdEditorCameraContinued (WasdEditorCameraContinued 0.7.3.3)
Zero MiniAVC (ZeroMiniAVC 1:1.1.3.2)

Let me know if there's anything else I can do to help

Mercuri commented 2 months ago

After looking at the Kcalbeloh issues, seems this is a Parallax ordering issue. Chaning the OPM_Parallax directory name to zzzOPM_Parallax so it loads later seems to fix the issue.