TweakScale / Companion_Frameworks

Adds (up to date) TweakScale /L patches for Add'Ons that adds features to KSP itself, as Waterfall
GNU General Public License v2.0
1 stars 0 forks source link

Race Condition while initialising the PartModule #2

Closed Lisias closed 2 years ago

Lisias commented 2 years ago

It's raining Exceptions on Editor Scene:

[EXC 00:41:44.686] NullReferenceException: Object reference not set to an instance of an object
        TweakScaleCompanion.Visuals.Waterfall.TweakScalerWaterfallFX.InitInternalData () (at <3ee8574adb1f4b748e603a6ba53273ed>:0)
        TweakScaleCompanion.Visuals.Waterfall.TweakScalerWaterfallFX.Update () (at <3ee8574adb1f4b748e603a6ba53273ed>:0)
        UnityEngine.DebugLogHandler:LogException(Exception, Object)
        KSPe.Util.Log.UnityLogDecorator:UnityEngine.ILogHandler.LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
        UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
Lisias commented 2 years ago

Fixed on commit https://github.com/net-lisias-ksp/TweakScaleCompanion_Visuals/commit/1ee05b59a72da5ca43b93f509167eb327a2a6ec4

Lisias commented 2 years ago

Nice! FINALLY a clean log!

I'm not sure this is due something I made wrong anymore, apparently WaterfallFX is refusing to "talk to me" on Editing time… Anyway, now it's fixed on commit https://github.com/net-lisias-ksp/TweakScaleCompanion_Visuals/commit/31c7965227573f655c0d7a5227b28ce089b20bf3

KSP.log

Boy, this is nice! :)

waterfall+ts