AndreyMrovol / LethalWeatherTweaks

Changes to weather system in Lethal Company.
https://thunderstore.io/c/lethal-company/p/mrov/WeatherTweaks/
Other
3 stars 0 forks source link

[Error : Unity Log] NullReferenceException (beta version) #23

Closed CoolLKKPS closed 5 months ago

CoolLKKPS commented 5 months ago

[Error : Unity Log] NullReferenceException Stack trace: WeatherRegistry.ImprovedWeatherEffect.set_EffectEnabled (System.Boolean value) (at :IL_002C) WeatherRegistry.ImprovedWeatherEffect.DisableEffect (System.Boolean permament) (at :IL_0007) WeatherTweaks.GameInteraction.SetWeatherEffects (TimeOfDay timeOfDay, System.Collections.Generic.List1[T] weatherEffects) (at <eb0cc75e9f7548d8aca138be8d63b656>:IL_014F) WeatherTweaks.NetworkedConfig.WeatherEffectsReceived (System.String weatherEffects) (at <eb0cc75e9f7548d8aca138be8d63b656>:IL_00F2) LethalNetworkAPI.LethalNetworkVariable1[TData].set_Value (TData value) (at ./Variable/LethalNetworkVariable.cs:104) WeatherTweaks.NetworkedConfig.SetWeatherEffects (System.Collections.Generic.List`1[T] weathers) (at :IL_00A1) WeatherTweaks.OpeningDoorsSequencePatch.SetWeatherEffects () (at :IL_007D) (wrapper dynamic-method) WeatherRegistry.OpeningDoorsSequencePatch.DMD() (wrapper dynamic-method) StartOfRound+d248.DMD<StartOfRound+d248::MoveNext>(StartOfRound/d__248) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :IL_0026)

CoolLKKPS commented 5 months ago

@AndreyMrovol

CoolLKKPS commented 5 months ago

LogOutput.txt

CoolLKKPS commented 5 months ago

ok i will roll back to 1.14.11, even have those error

[Error : Unity Log] InvalidOperationException: Sequence contains no matching element Stack trace: System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at :IL_0011) WeatherTweaks.Variables.GetLevelWeatherVariable (LevelWeatherType weatherType, System.Boolean variable2) (at <1669d189bc794b3f8a76f9e835c41fbc>:IL_0045) (wrapper dynamic-method) FloodWeather.DMD(FloodWeather) UnityEngine.GameObject:SetActive(GameObject, Boolean) OopsAllFlooded.Patches.RoundPatch:FloodSpawnPatch() StartOfRound:DMD(StartOfRound)

d__248:DMDd__248::MoveNext>(d__248) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
AndreyMrovol commented 5 months ago

Hey, I've uploaded new versions of weather registry and weathertweaks, please let me know if it fixes your issue

CoolLKKPS commented 5 months ago

@AndreyMrovol uh nothing change? [Error : Unity Log] NullReferenceException Stack trace: WeatherRegistry.ImprovedWeatherEffect.set_EffectEnabled (System.Boolean value) (at <5b5aeb57b4bd459f8986fb1cf11a544b>:IL_002C) WeatherRegistry.ImprovedWeatherEffect.DisableEffect (System.Boolean permament) (at <5b5aeb57b4bd459f8986fb1cf11a544b>:IL_0007) WeatherTweaks.GameInteraction.SetWeatherEffects (TimeOfDay timeOfDay, System.Collections.Generic.List1[T] weatherEffects) (at <2417152be7b841de9942a6e52483b834>:IL_014F) WeatherTweaks.NetworkedConfig.WeatherEffectsReceived (System.String weatherEffects) (at <2417152be7b841de9942a6e52483b834>:IL_00F2) LethalNetworkAPI.LethalNetworkVariable1[TData].set_Value (TData value) (at ./Variable/LethalNetworkVariable.cs:104) WeatherTweaks.NetworkedConfig.SetWeatherEffects (System.Collections.Generic.List`1[T] weathers) (at <2417152be7b841de9942a6e52483b834>:IL_00C7) WeatherTweaks.OpeningDoorsSequencePatch.SetWeatherEffects () (at <2417152be7b841de9942a6e52483b834>:IL_007D) (wrapper dynamic-method) WeatherRegistry.OpeningDoorsSequencePatch.DMD() (wrapper dynamic-method) StartOfRound+d248.DMD<StartOfRound+d248::MoveNext>(StartOfRound/d__248) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :IL_0026)

CoolLKKPS commented 5 months ago

maybe u need my modpack? bc now 3 different error log directly showing this mod has compatibility? issues

AndreyMrovol commented 5 months ago

I've managed to find the issue, I'll push the fix shortly

CoolLKKPS commented 5 months ago

so for me, to reproduce just pull the lever to start the game, once enter the game u can just quit to main menu and re-create a lobby, then start the game again, and after that the ship door should be won't automatically open and the day of time in the game won't functional

AndreyMrovol commented 5 months ago

I've uploaded a fix (v. 0.20.3) - please let me know if it fixes your issue!

CoolLKKPS commented 5 months ago

@AndreyMrovol ok this issue fixed, but can u investigate why i still can get this error? [Error : Unity Log] InvalidOperationException: Sequence contains no matching element Stack trace: System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at :IL_0011) WeatherTweaks.Variables.GetLevelWeatherVariable (LevelWeatherType weatherType, System.Boolean variable2) (at <2417152be7b841de9942a6e52483b834>:IL_0045) (wrapper dynamic-method) FloodWeather.DMD(FloodWeather) UnityEngine.GameObject:SetActive(GameObject, Boolean) OopsAllFlooded.Patches.RoundPatch:FloodSpawnPatch() StartOfRound:DMD(StartOfRound)

d__248:DMDd__248::MoveNext>(d__248) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
AndreyMrovol commented 5 months ago

@AndreyMrovol ok this issue fixed, but can u investigate why i still can get this error? [Error : Unity Log] InvalidOperationException: Sequence contains no matching element Stack trace: System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) (at :IL_0011) WeatherTweaks.Variables.GetLevelWeatherVariable (LevelWeatherType weatherType, System.Boolean variable2) (at <2417152be7b841de9942a6e52483b834>:IL_0045) (wrapper dynamic-method) FloodWeather.DMDFloodWeather::OnEnable(FloodWeather) UnityEngine.GameObject:SetActive(GameObject, Boolean) OopsAllFlooded.Patches.RoundPatch:FloodSpawnPatch() StartOfRound:DMDStartOfRound::OnShipLandedMiscEvents(StartOfRound) d248:DMD<StartOfRound+d248::MoveNext>(d__248) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

oh, was that not fixed by my previous patch? it should only show up when the current weather is not in randomWeathers of the level (something i've fixed)

CoolLKKPS commented 5 months ago

uh but i got this error, when in stomy weather, monitor are display foggy? it should be not random weather i think