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 :WeatherTweaks] Failed to change fog: System.NullReferenceException: Object reference not set to an instance of an object #18

Closed CoolLKKPS closed 6 months ago

CoolLKKPS commented 6 months ago

[Error : Loadstone(Harmony)] The assembly "WeatherTweaks" has patched the method "Void SpawnOutsideHazards()" with a transpiler using "System.Collections.Generic.IEnumerable`1[HarmonyLib.CodeInstruction] SpawnOutsideHazardsPatch(System.Collections.Generic.IEnumerable`1[HarmonyLib.CodeInstruction])", which we also modify. Unexpected behaviour may occur

[Error :WeatherTweaks] Failed to change fog: System.NullReferenceException: Object reference not set to an instance of an object at WeatherTweaks.BasegameWeatherPatch.ChangeFog (System.Single meanFreePath) [0x0000c] in <2e4b076e21a044408ed1781dec5515b8>:IL_000C [Error :WeatherTweaks] Landing at 8 Titan with weather {"Name":"Stormy","weatherType":2,"Weathers":[2],"Type":0}

CoolLKKPS commented 6 months ago

@AndreyMrovol

CoolLKKPS commented 6 months ago

and also i bring another issue about LLL: https://thunderstore.io/c/lethal-company/p/Zhelderon/LethalLevelLoaderFixed this can run with v50 actually but the page are not found now, idk why LLL author really care about the license and there's no other custom levelloader are better than LLL, so i will save that LLL version for better gaming experience in my opinion, LLL should update rn

AndreyMrovol commented 6 months ago

@CoolLKKPS

[Error : Loadstone(Harmony)] The assembly "WeatherTweaks" has patched the method "Void SpawnOutsideHazards()" with a transpiler using "System.Collections.Generic.IEnumerable1[HarmonyLib.CodeInstruction] SpawnOutsideHazardsPatch(System.Collections.Generic.IEnumerable1[HarmonyLib.CodeInstruction])", which we also modify. Unexpected behaviour may occur

I'll look at this, thanks for reporting

[Error :WeatherTweaks] Failed to change fog: System.NullReferenceException: Object reference not set to an instance of an object at WeatherTweaks.BasegameWeatherPatch.ChangeFog (System.Single meanFreePath) [0x0000c] in <2e4b076e21a044408ed1781dec5515b8>:IL_000C

This is sometimes happening, I'll change it to be a warning rather than error - it's not impacting the game in any way

[Error :WeatherTweaks] Landing at 8 Titan with weather {"Name":"Stormy","weatherType":2,"Weathers":[2],"Type":0}

I've added that because I got a few .logs without debug logging and I need some information on where to look for bugs, this error can be safely ignored, it's for me only 👍

and also i bring another issue about LLL: https://thunderstore.io/c/lethal-company/p/Zhelderon/LethalLevelLoaderFixed this can run with v50 actually but the page are not found now, idk why LLL author really care about the license and there's no other custom levelloader are better than LLL, so i will save that LLL version for better gaming experience in my opinion, LLL should update rn

It was taken down because it was an ugly reupload of LLLFixed, it was running the v49 version of LLL on v50 - the actual v50 LLL is still in the works and actually changing a ton of stuff, so this time is for all the creators to port their things

CoolLKKPS commented 6 months ago

It was taken down because it was an ugly reupload of LLLFixed, it was running the v49 version of LLL on v50 - the actual v50 LLL is still in the works and actually changing a ton of stuff, so this time is for all the creators to port their things

thx to let me know that, yea bc that fix version didn't throw any error, so i thought that can work so i didn't think much deeper

and thx for ur reply :)

AndreyMrovol commented 6 months ago

[Error : Loadstone(Harmony)] The assembly "WeatherTweaks" has patched the method "Void SpawnOutsideHazards()" with a transpiler using "System.Collections.Generic.IEnumerable1[HarmonyLib.CodeInstruction] SpawnOutsideHazardsPatch(System.Collections.Generic.IEnumerable1[HarmonyLib.CodeInstruction])", which we also modify. Unexpected behaviour may occur

Alright, i've checked: seems like there's not gonna be any conflicts between the two methods: