AndreyMrovol / LethalWeatherRegistry

A Lethal Company mod for controlling game's weather system.
https://thunderstore.io/c/lethal-company/p/mrov/WeatherRegistry/
GNU Lesser General Public License v3.0
1 stars 4 forks source link

After launching back into orbit, the ship still says "Ship in Motion" #9

Open Vladtheosis opened 2 hours ago

Vladtheosis commented 2 hours ago

Pretty weird bug it was fine at first but it broke after for some reason, probably conflicting with some other mods

Game runs perfectly fine when I remove this mod

When I first launched ship to land

[15:35:56.1771930] [Error  :WeatherRegistry] SunAnimator exception: Value cannot be null.
Parameter name: source
[15:35:56.1771930] [Warning:WeatherRegistry] PLEASE report this issue to the mod developer with your modpack code and this log!

This is when I launched the ship to go back into orbit

[15:37:01.3751250] [Error  : Unity Log] ArgumentException: An item with the same key has already been added. Key: 112 Aquatis
Stack trace:
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <787acc3c9a4c471ba7d971300105af24>:IL_015A)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <787acc3c9a4c471ba7d971300105af24>:IL_0000)
System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <dab7f68612224ba3ae40f651d44f9d4c>:IL_009E)
System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector) (at <dab7f68612224ba3ae40f651d44f9d4c>:IL_0000)
WeatherRegistry.Definitions.CurrentWeathers.get_SerializedEntries () (at ./Definitions/CurrentWeathers.cs:66)
WeatherRegistry.Definitions.CurrentWeathers.CallSync () (at ./Definitions/CurrentWeathers.cs:81)
WeatherRegistry.Definitions.CurrentWeathers.SetWeathers (System.Collections.Generic.Dictionary`2[TKey,TValue] weathers) (at ./Definitions/CurrentWeathers.cs:129)
WeatherRegistry.Patches.SetPlanetsWeatherPatch.GameMethodPatch (System.Int32 connectedPlayersOnServer, StartOfRound __instance) (at ./Patches/SetPlanetsWeather.cs:66)
(wrapper dynamic-method) StartOfRound.DMD<StartOfRound::SetPlanetsWeather>(StartOfRound,int)
TimeOfDay.OnDayChanged () (at <d491ed1d4cc34874a2498af41192fe04>:IL_0012)
(wrapper dynamic-method) StartOfRound.DMD<StartOfRound::PassTimeToNextDay>(StartOfRound,int)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Trampoline<StartOfRound::PassTimeToNextDay>?303450294(StartOfRound,int)
LethalThings.MonoBehaviours.FatalitiesSign.StartOfRound_PassTimeToNextDay (On.StartOfRound+orig_PassTimeToNextDay orig, StartOfRound self, System.Int32 connectedPlayersOnServer) (at O:/github/LethalThings/LethalThings/MonoBehaviours/FatalitiesSign.cs:34)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Hook<StartOfRound::PassTimeToNextDay>?-1487551028(StartOfRound,int)
(wrapper dynamic-method) StartOfRound+<EndOfGame>d__279.DMD<StartOfRound+<EndOfGame>d__279::MoveNext>(StartOfRound/<EndOfGame>d__279)
UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <e27997765c1848b09d8073e5d642717a>:IL_0026)

Also heres the code for the Modpack (its 202 mods) 01935ed8-61dd-ab03-b9ab-dc376d50e57c

AndreyMrovol commented 2 hours ago

Hey, thanks for reporting the issue, I'll look into it 😅